[SOLVED] I have lost my dns resolution
by hazel from LinuxQuestions.org on (#5NAWH)
Suddenly dns resolution does not work any more in AntiX-19.
My /etc/resolv.conf file turns out to be a link to /run/connman/resolv.conf, which doesn't exist. /run/resolvconf/resolv.conf does exist but is empty, with a warning not to edit it.
How do I get resolution working again?
PS: I have a temporary fix by editing a nameserver into /run/resolvconf/resolv.conf (after all, it's only a temporary filesystem so no permanent damage can be done), and relinking /etc/resolv.conf to it. But that's not a proper solution.
Fixed now! I was able to run an apt update with this "jury rig" and one of the packages updated was connman. Now the file /run/connman/resolv.conf exists again and the update script has relinked /etc/resolv.conf to it. Everything works again. Whew!


My /etc/resolv.conf file turns out to be a link to /run/connman/resolv.conf, which doesn't exist. /run/resolvconf/resolv.conf does exist but is empty, with a warning not to edit it.
How do I get resolution working again?
PS: I have a temporary fix by editing a nameserver into /run/resolvconf/resolv.conf (after all, it's only a temporary filesystem so no permanent damage can be done), and relinking /etc/resolv.conf to it. But that's not a proper solution.
Fixed now! I was able to run an apt update with this "jury rig" and one of the packages updated was connman. Now the file /run/connman/resolv.conf exists again and the update script has relinked /etc/resolv.conf to it. Everything works again. Whew!