[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dhcp modifies resolv.conf

On Sun, 12 Dec 2004, Bayrouni wrote:

Is there a way to prevent dhclient to modify /etc/resolv.conf on debian?

You could continue to let it modify /etc/resolv.conf and use the "supercede" option to keep your custom info intact as in the following snippet from my own (slightly obfuscated) /etc/dhcp3/dhclient.conf.

script "/etc/dhcp3/dhclient-script";
supersede domain-name-servers,;
supersede netbios-name-servers,;
supersede domain-name "myinternaldomain.lan";
interface "eth1" {
     send dhcp-client-identifier 05:05:05:05:05:05;
     request subnet-mask, broadcast-address, time-offset, routers,
                domain-name, domain-name-servers, host-name;

Hope this helps,


Public GPG Key: http://www.selterra.com/pubkeys/tcarney.asc


Reply to: