Using networkmanager and dnsmasq.
When I'm at work I have a wifi connection that is statically configured with IP, dns server, and domain search.
When I connect, resolv.conf
has both the server and the domain search, along with the dnsmasq
entry of 127.0.1.1.
When I go home and get on my dhcp wifi connection, the domain search is removed from resolv.conf
, but the work dns server isn't removed. As a result all my browsing drags. I can manually remove the entry, but when resolv.conf
gets rebuilt it's back in there again (I expect that).
I think the real problem is that when NM connects to the work wifi it should hand the dns server to dnsmasq, not put it in resolv.conf, as a result when I disconnect it doesn't take it out.
root@rplp2:/etc# cat /etc/dnsmasq.conf cat: /etc/dnsmasq.conf: No such file or directory
ls -l /run/resolvconf/interface
.