Tame Ubuntu's DNS config

I am a big fan of Linux Mint and happily using it. However, since it's based on Ubuntu, they sometimes have convinient, but non-standard ways of doing things. One thing is DNS.

You will have the following "features":
  • You will only have 127.0.1.1 in your /etc/resolv.conf
  • there listenes dnsmasq and forwards your DNS requests
  • any further config in /etc/resolv.conf is ignored by dnsmasq
  • /etc/hosts is ignored
  • you can't find a config file for dnsmasq
  • dnsmasq is configured via D-Bus by NetworkManager
So to figure out which DNS server(s) you are actually using you have to either look in your log file or use some tools like nm-tool:
root@system ~ # nm-tool
.....
  IPv4 Settings:
    Address:         192.168.1.246
    Prefix:          24 (255.255.255.0)
    Gateway:         192.168.1.1

    DNS:             192.168.1.1
.....

Links: