Skip to content

Ubuntu: Making resolv.conf entries permanent

Edit following file:

root@ubuntu:/etc/dhcp# vim /etc/dhcp/dhclient.conf

Change/Add (uncomment) following line:

prepend domain-name-servers 8.8.8.8;

Note that you may need to change 8.8.8.8 to your own DNS server ip.

Share