Sourcearrow-up-right
Add the following line replacing 8.8.8.8 with the IP of your server.
8.8.8.8
Restart Networking so the change takes affect.
You can test the change by running something like dig google.com then check that SERVER: matches the value you added to dhclient.conf above.
dig google.com
SERVER:
dhclient.conf
Last updated 4 years ago
Was this helpful?
sudo nano /etc/dhcp/dhclient.conf
supersede domain-name-servers 8.8.8.8;
sudo service networking restart