1

When I connect to a network (e.g. home or work network), I have to manually enter the nameserver adresses in /etc/resolv.conf every time (I change to a new network). It used to be automatic. Any ideas how to change this back to automatic again ?

2 Answers2

1

/etc/resolv.conf should be a symbolic link to /run/resolvconf/resolv.conf which is updated automatically by resolvconf when the network configuration changes. Your /etc/resolv.conf is probably a separate file.

Just check it with:

ls -l /etc/resolv.conf

Rename or delete this file and make a symbolic link to /run/resolvconf/resolv.conf

ln -s /run/resolvconf/resolv.conf /etc/resolv.conf
Greenonline
  • 2,235
  • 11
  • 24
  • 30
Oleg Bolden
  • 1,687
  • 14
  • 14
0

Change Default DNS 127.0.0.53 To your NEW DNS (Changes the default DNS automatically on reboot) In Terminal:

sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo reboot
Stephen Rauch
  • 3,091
  • 10
  • 23
  • 26