Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] NetBSD dhclient...



>> Somewhere around 10 Apr 2002 18:20:34 +0900, Stephen J. Turnbull wrote:
> >>>>> "Michael" == Michael Doughty <Doughty_Michael@example.com> writes:
> The Debian linux dhclient-script (originally from NetBSD) contains
> this function
> 
> make_resolv_conf() {
>   echo search $new_domain_name >/etc/resolv.conf
>   for nameserver in $new_domain_name_servers; do
>     echo nameserver $nameserver >>/etc/resolv.conf
>   done
> }
> <lots of stuff snipped>
> Look familiar?
> 

Unfortunately, no.  Not really.  But I did find the problem last night
looking through the dhclient-script with my brother.  Apparently NetBSD
thinks that if a DHCP server isn't going to tell you which domain name
to use, it has no business telling you where DNS servers are.  It has
a little statement in the dhclient-script that looks like:
(From memory, but should give the general idea)
if [ [ ! -z $DOMAIN_NAME ] -a
	[ ! -z $DOMAIN_NAME_SERVERS ] ];
before the part where it updates resolv.conf.  So I made my dhcp server
specify a domain name, and suddenly all was grand.  Personally, I think
this classifies as a bug, but we will see what the NetBSD community 
thinks.

Michael


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links