Recently my DNS settings stopped working. They are the same settings I've had for a while now, and I don't know what has changed. Now each time I restart my system, I have no internet connection, getting a "This site can't be reached" Error from my browser, and the contents of /etc/resolv.conf
are reset to :
# Generated by NetworkManager
nameserver 127.0.1.1
The automatically generated file does not leave me with a working configuration, even when I delete the below DNS addresses from the 'DNS Servers' field. I had to write a script to update resolv.conf on each restart, which is OK, and works, but it's not ideal, since I don't like not understanding what the problem really is.
I get that my immediate problem is the resolv.conf file is being reset each boot, and I don't know how to stop that. I don't get why it only just started happening, and I don't get why my internet no longer works without the new DNS servers being present in resolv.conf.. as that wasn't an issue before, it seemed to just default to the DNS of my ISP, but this is no longer the case it would seem.
Current settings:
sudo rm /etc/resolv.conf ; sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
solve your problem? (confirm if you have a /run/resolvconf/resolv.conf file first)