Re: dhcp overwriting resolv.conf
On Wednesday 26 October 2005 07:38 am, Siju George wrote: > Now My /etc/dhclient.conf looks like this These two lines worked fine here: --- request subnet-mask, broadcast-address, routers; supersede domain-name-servers "192.168.107.2"; --- Chris
Re: dhcp overwriting resolv.conf
On 10/26/05, Chris Smith <[EMAIL PROTECTED]> wrote: > Hello, > > Running 3.8, 2 nics, 1 statically assigned, and the other using dhcp. > Problem is that resolv.conf is always overwritten. Using > resolv.conf.tail doesn't help as the information is just tacked on at > the end of the dhcp supplied information. > > How can I prevent the overwriting of resolv.conf? > First I tried the advice on http://www.openbsd.org/faq/faq6.html#DHCP -- No matter how you start the DHCP client, you can edit the /etc/dhclient.conf file to not update your DNS according to the dhcp server's idea of DNS by first uncommenting the 'request' lines in it (they are examples of the default settings, but you need to uncomment them to override dhclient's defaults.) request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name, lpr-servers, ntp-servers; and then remove domain-name-servers. Of course, you may want to remove hostname, or other settings too. -- Thant didn't work for me :-( Now My /etc/dhclient.conf looks like this initial-interval 1; send host-name "caleb"; request subnet-mask, broadcast-address, routers, domain-name, supersede domain-name-servers 172.17.1.10; -- Now this works for me. Hope This helps Kind Regards Siju
Re: dhcp overwriting resolv.conf
On Tue, Oct 25, 2005 at 10:32:30PM -0400, Chris Smith wrote: > Hello, > > Running 3.8, 2 nics, 1 statically assigned, and the other using dhcp. > Problem is that resolv.conf is always overwritten. Using > resolv.conf.tail doesn't help as the information is just tacked on at > the end of the dhcp supplied information. > > How can I prevent the overwriting of resolv.conf? > man dhclient.conf Look at prepend, and supersede directives. -- U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong Terror - New York Times 9/3/1967
Re: dhcp overwriting resolv.conf
On Tuesday 25 October 2005 23:01, Abraham Al-Saleh wrote: > man dhclient.conf Thanks all. supercede does the trick
Re: dhcp overwriting resolv.conf
On 10/25/05, Chris Smith <[EMAIL PROTECTED]> wrote: > Hello, > > Running 3.8, 2 nics, 1 statically assigned, and the other using dhcp. > Problem is that resolv.conf is always overwritten. Using > resolv.conf.tail doesn't help as the information is just tacked on at > the end of the dhcp supplied information. > > How can I prevent the overwriting of resolv.conf? > > Thanks. > > Chris > > man dhclient.conf
Re: dhcp overwriting resolv.conf
man dhclient.conf look for "supersede" On 25/10/05, Chris Smith <[EMAIL PROTECTED]> wrote: > Hello, > > Running 3.8, 2 nics, 1 statically assigned, and the other using dhcp. > Problem is that resolv.conf is always overwritten. Using > resolv.conf.tail doesn't help as the information is just tacked on at > the end of the dhcp supplied information. > > How can I prevent the overwriting of resolv.conf? > > Thanks. > > Chris > > -- GDB has a 'break' feature; why doesn't it have 'fix' too?
dhcp overwriting resolv.conf
Hello, Running 3.8, 2 nics, 1 statically assigned, and the other using dhcp. Problem is that resolv.conf is always overwritten. Using resolv.conf.tail doesn't help as the information is just tacked on at the end of the dhcp supplied information. How can I prevent the overwriting of resolv.conf? Thanks. Chris