-
Notifications
You must be signed in to change notification settings - Fork 64
Set permanent DNS nameservers
trinib edited this page Nov 10, 2022
·
5 revisions
To regain temporary internet access for package installation, open sudo nano /etc/resolv.conf and add a DNS server for example nameserver 8.8.8.8
Install the resolvconf package:
sudo apt install resolvconfEnable and start the resolvconf service:
sudo systemctl enable resolvconf.service && sudo systemctl start resolvconf.serviceOpen resolv.conf using head file and enter your nameservers:
sudo nano /etc/resolvconf/resolv.conf.d/head192.168.100.1 is my ISP default DNS/gateway address

Update resolv.conf nameservers:
sudo resolvconf -uOpen resolv.conf to confirm new nameservers have been written:
sudo nano /etc/resolv.conf
Can reboot to confirm it remains