Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jun 2006 14:56:53 +0200 (CEST)
From:      patrick <patrick@cyberwizards.nl>
To:        "Thomas T. Veldhouse" <veldy@veldy.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: resolv.conf and dhclient
Message-ID:  <20060605145226.A96694@gandalf.cyberwizards.nl>
In-Reply-To: <44842282.6050409@veldy.net>
References:  <44842282.6050409@veldy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 5 Jun 2006, Thomas T. Veldhouse wrote:

hi,

this is not the correct list to ask, but anyway.
"man dhclient.conf" would learn you to use supersede and prepend 
statements.


        interface "xl0"  {
                         supersede domain-name "yourdomainname.com";
                         prepend domain-name-servers www.xxx.yyy.zzz;
                         }

adjust xl0 to your dhclient interface,
yourdomain is search first for hostname lookups
xyz is prefered first nameserver in the resolv.conf


> What is the best approach to keep dhclient from overwriting /etc/resolv.conf 
> every time it gets a new lease on an IP address?  This has been a frustrating 
> search as Google has turned up next to nothing on the issue other than a hack 
> into a script file which should be overwritten when world is rebuilt.

grtz
patrick




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060605145226.A96694>