I am on Ubuntu 18.04 using the
netplan configuration which renders using
# Let NetworkManager manage all devices on this system network: version: 2 renderer: NetworkManager
Every time I restart, the following output is automatically generated and written to
/etc/resolv.conf, breaking my
dnsmasq configuration in that I can no longer resolve domains on the internet:
# Generated by NetworkManager nameserver 127.0.0.53
I can fix this manually by simply commenting out the nameserver line in /etc/resolv.conf. Before I write a script to perform this commenting out every reboot, I should understand what's going on.
This is my simple
port=53 domain-needed bogus-priv strict-order server=/mydomain.net/10.0.0.2 server=/#/18.104.22.168 listen-address=127.0.0.1 bind-interfaces
1) Why is this being written by
NetworkManager every reboot?
2) Why is it breaking
dnsmasq anyway because the strict-order server settings should forward all other requests to google's DNS server? When
dnsmasq is running, does the system look in resolv.conf first or after dnsmasq.conf?