NetworkManager dnsmasq plugin and docker


I am using NetworkManager with dnsmasq with this confguration:

cat > '/etc/NetworkManager/conf.d/dns.conf' <<EOF

Therefore my resolv.conf looks like this:

# Generated by NetworkManager
search ...

This makes docker use the Google nameservers in containers by default, see

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 Maas
Ansible RHEL Networking System Role Maintainer
Red Hat GmbH

Red Hat GmbH,, 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]