Domain Name System (DNS)

Override DHCP Nameservers (Debian/ Ubuntu)
sudo nano /etc/dhcp/dhclient.confAdd the following line replacing 8.8.8.8 with the IP of your server.
supersede domain-name-servers 8.8.8.8;Restart Networking so the change takes affect.
sudo service networking restartYou can test the change by running something like dig google.com then check that SERVER: matches the value you added to dhclient.conf above.
Last updated
Was this helpful?