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 192.168.1.10, 192.168.1.11; supersede netbios-name-servers 192.168.1.10, 192.168.1.11; 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,
Terry.
http://haven.selterra.com/ ----------------------------------------------------------------- Public GPG Key: http://www.selterra.com/pubkeys/tcarney.asc
http://wecanstopspam.org
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]