resolv.conf and dhclient
patrick
patrick at cyberwizards.nl
Mon Jun 5 12:57:06 UTC 2006
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
More information about the freebsd-stable
mailing list