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

_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to