Present Location: News >> Blog >> dhclient

Blog

> dhclient
Posted by prox, from Charlotte, on July 18, 2006 at 14:51 local (server) time

Q: How do I get dhclient to stop rewriting my resolv.conf?

A: Edit /etc/dhcp3/dhclient.conf [Debian] and add something like this:

supersede domain-name "prolixium.com";
supersede domain-name-servers 10.3.4.6, 10.3.4.4;

The incorrect way is to hack /sbin/dhclient-script.  Avoid it.

Comment by Ian Gulliver [Website] on July 19, 2006 at 00:25 local (server) time

The easy way is:

chattr +i /etc/resolv.conf

dhclient won't be able to write to it, and will move on.


> Add Comment

New comments are currently disabled for this entry.