[KLUG Members] dhcpd domains?

Adam Tauno Williams adam at morrison-ind.com
Mon Jun 20 11:40:08 EDT 2005


> What's the correct way in dhcpd.conf to specify a _list_ of domains 
> to be put into the client's resolv.conf "search" statement?
> Multiple lines like this don't seem to work:
>  option domain-name "domain1.com";
>  option domain-name "domain2.com";

No, that won't work.

> And something like this:  
>  option domain-name "domain1.com domain2.com";
> seems to work better in some OS's than others.
> i.e.  It works OK in Linux, but not in MacOS-X,
> and I have no idea what it does to Windows.

This works on LINUX only as a side affect of the implementation.  It
should not work,  only one value may be passed as the param of
domain-name.

RFC2132 - "This option specifies the domain name that client should use
when resolving hostnames via the Domain Name System."

Note the singular case.

This option specifies the domain portion of the client's FQDN if the
client is receiving naming from the DHCP server. So the singular nature
makes perfect sense.  What I suspect you want is to specify a domain
search order for resolving short names?





More information about the Members mailing list