13 DecCustom DNS in DHCP Configuration

Often, I find that I have a perfectly working DHCP configuration, but I want to set custom Internet-based DNS. One way to do this for all connections no matter what, is to find a file called dhclient.conf (in current Debian Testing, it’s in /etc/dhcp3), and add the following line to the end:

prepend domain-name-servers 208.67.222.222,208.67.220.220,8.8.8.8,8.8.4.4;

If you need your system to automatically use the DNS servers on a LAN at each DHCP connection, this is not for you, but if you want really good Internet DNS no matter where you go, this is a great shortcut. The above servers are kept by OpenDNS and Google.

No comments

Place your comment

Please fill your data and comment below.
Name
Email
Website
Your comment