NetworkManager dnsmasq plugin and docker



Hi,

I am using NetworkManager with dnsmasq with this confguration:

cat > '/etc/NetworkManager/conf.d/dns.conf' <<EOF
[main]
dns=dnsmasq
EOF

Therefore my resolv.conf looks like this:

# Generated by NetworkManager
search ...
nameserver 127.0.0.1

This makes docker use the Google nameservers in containers by default, see
https://docs.docker.com/v17.09/engine/userguide/networking/configure-dns/

To avoid this I would need NetworkManager bind dnsmasq to a different
local IP and use that IP in /etc/resolv.conf. Not sure, how to achieve
this. Any ideas or recommendations?

Kind regards
Till

-- 
Till Maas
Ansible RHEL Networking System Role Maintainer
Red Hat GmbH

Red Hat GmbH, https://www.redhat.com/de, Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Michael O'Neill, Tom Savage, Eric Shander


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]