DNS_PROBE_FINISHED_BAD_CONFIG error in Ubuntu Linux

DNS_PROBE_FINISHED_BAD_CONFIG error in Ubuntu Linux, 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. I hope this helps you if you have similar issue.