DNS – How to Fix DNS_PROBE_FINISHED_BAD_CONFIG Error in Ubuntu 14.04

14.04dns

I am running Ubuntu 14.04 LTS on my Dell M3800.

I am having problems connecting to the Internet.

I getDNS_PROBE_FINISHED_BAD_CONFIG in my browser when trying to navigate to any site, but I am able to navigate to any site by using its IP.

So, for example, I am able to navigate to google.com by using http://173.194.121.16. So I think somewhere my DNS settings got messed up.

Any pointer on resolving this issue is appreciated. Please, let me know if you need any more information.

Best Answer

So I figured out what the problem was. When I ran the following command sudo resolvconf -u I got this error:

/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf`

I solved this error by deleting /etc/resolv.conf and recreating the symbolic link. You can do that using the following commands:

sudo rm /etc/resolv.conf
sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
sudo resolvconf -u

This resolved the DNS error I was getting.

Related Question