Skip to content
EN

dhclient and nameservers

When dhclient connects the server and retrieves the ip, it also overrides the resolv.conf with the dns information as received from the server.
If you're behind a router that information does not exist, dhclient has no idea what is the desired dns.

The solution:
edit /etc/dhcp3/dhclient.conf and just before the request option prepend the reliable dns servers, like this -
prepend domain-name-servers 212.117.129.3, 212.117.129.6


Next we want to speed the resolving names process. One way to do that is to install a local dns cache.
For more information read here

Post a Comment

Previous Post Next Post