saltstack-formulas/resolver-formula

RFE: NetworkManager compatibility

noelmcloughlin opened this issue · 1 comments

NetworkManager (NM) is a service on few Linux distros. By default NM automates dynamic IPv4/6 addresses for clients, and discovers the /etc/resolv.conf configuration in an "out-of-the-box" fashion. In scenarios where we want NM to stop managing name resolution details, we manually edit /etc/NetworkManager/NetworkManager.conf and add dns=none to the [main] section.

To make this formula compatible with NM this task should be automated - NM will get dhcp address but resolver-formula will manage name resolution (override dhcp service settings).

From NetworkManager.conf(5) manpage.

       dns
           Set the DNS (resolv.conf) processing mode.

           default: The default if the key is not specified. NetworkManager will update resolv.conf to reflect the nameservers
           provided by currently active connections.

           dnsmasq: NetworkManager will run dnsmasq as a local caching nameserver, using a "split DNS" configuration if you
           are connected to a VPN, and then update resolv.conf to point to the local nameserver.

           unbound: NetworkManager will talk to unbound and dnssec-triggerd, providing a "split DNS" configuration with DNSSEC
           support. The /etc/resolv.conf will be managed by dnssec-trigger daemon.

           none: NetworkManager will not modify resolv.conf. This implies rc-manager unmanaged