Network Manager – Disable DNS Used by Network Manager

dnsmasqnetwork-manager

Ubuntu uses a DNSMasq instance for Network Manager starting in 12.04 – how can I disable it?

Best Answer

Edit /etc/NetworkManager/NetworkManager.conf with the following command:

gksu gedit /etc/NetworkManager/NetworkManager.conf

Enter in your password when prompted.

Comment out the line dns=dnsmasq, so it looks like this:

#dns=dnsmasq

and then restart Network Manager with

sudo restart network-manager
# if you get /com/ubuntu/upstart: Connection refused, try:
sudo service network-manager restart

Ta-da! You're all set!