Adding nameserver to dhcp

 Today i came a cross a bit of a problem. At one of my customers im doing some testing on a lab system and needed to be patched into the labnetwork.

Its all handled by dhcp so thats ok, but for some strange network reason the dns lookup was very slow. So I needed to and another DHCP server to my /etc/resolv.conf. But this got overwritten as soon as the dhcp client got information again. So how do you fix that?

Easy!

Edit /etc/dhcp3/dhclient.conf and add a line (or uncomment the on in there):

That will fix it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.