Changing DNS Servers in Ubuntu 12.04 and Later
You want to change your DNS servers, but you can’t simply edit
First, if you’re runnung Ubuntu Desktop or one of the derivatives, you need to disable dnsmasq.
Edit the file
/etc/NetworkManager/NetworkManager.conf and comment out the line
/etc/dhcp/dhclient.conf and find the line that starts with
It’s probably commented out; Fix that.
Assuming you want to always use Google DNS servers, make it look like this:
prepend domain-name-servers 188.8.131.52, 184.108.40.206;
Reboot, and you problem should be solved.