Problem with resolv.conf

Hi, my problem is that every time I reboot/shutdown and boot my pc or even if I turn on and off anonsurf, the internet connection stops working. Yesterday I reinstalled my system to make sure I didn’t broke anything accidentally but the problem is still there.

I discovered that the problem is in the /etc/resolv.conf file, that is a symlink to /run/resolvconf/resolv.conf but even if I create the file and write anything on it (for example
nameserver 8.8.8.8 nameserver 8.8.4.4
when I reboot my pc the file disappears for no reason and I cannot connect to internet 'cause I don’t have any DNS.

VERSION_ID="5.0"
VERSION="5.0 (Electro Ara)"
VERSION_CODENAME=ara

As I already explained the problem appears also when I turn on and then off anonsurf.

I hope who reads can understand what I’m talking about, thanks for reading and sorry for my terrible english.

It’s because Palinuro removed resolvconfig from preinstalled packages. In previous version (and current version), AnonSurf uses the same logic of resolvconfig: create a symlink to make system use DHCP address. Because you are not having resolvconfig so yeah your settings won’t be hold in the system. Don’t worry i’ll work with Palinuro on this.

Maybe you didn’t get what i typed so let me try to make it clear again. There are 2 problems you mentioned

  1. resolvconf was removed so your system won’t hold the settings every reboot
  2. AnonSurf can’t recreate the dns settings. I suppose I fixed 1 problem in latest version but the logic to replace resolvconf needs some research.

We might have a hotfix for you there:

Check if resolv.conf and resolv.conf.save are in /etc/, if so, stop anonsurf and type “sudo nano /etc/resolv.conf.save” in terminal and enter “nameserver 8.8.8.8” if no line like this and save it.
In terminal again,
type “rm /etc/resolv.conf”,
then “ln -s /etc/resolv.conf.save /etc/resolv.conf”.
ping www.google.com (any site). This solves if the symlink resolv.conf was broken.

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.