setting the DNS search string
David W. Hankins
David_Hankins at isc.org
Thu Mar 5 17:48:14 UTC 2009
On Thu, Mar 05, 2009 at 08:56:32AM -0800, Doug Chapman wrote:
> option domain-search domain-list;
This was added in 3.1.0.
> On Wed, Mar 4, 2009 at 7:37 AM, Peter Laws <plaws at ou.edu> wrote:
> > (This, FBoFW, is dhcp-3.0.5-18.el5 under RHEL 5.3.
Which does not support the domain-search option.
You can configure 'option domain-name "example.com sales.example.com";',
and on many Unixish systems, this will become a 'search' string in
/etc/resolv.conf. But it doesn't work as expected on many non-unixish
systems (they parse the spaces as part of the domain name).
But you can still configure the domain-search option by hand. The
easiest thing is to configure it without compression tags;.
option domain-search code 119 = text;
option domain-search "\003eng\007example\003com\000\007example\003com\000";
The \-escapes are octal numbers, counting the number of characters in
the following tag (eng = 3, example = 7, com = 3...). A zero count
ends one domain name and moves on to the next.
> > Yes, I should be using
> > ISC DHCP 4.x, but it's a support thing - i.e. I'm not willing to support it
> > myself! Why Redhat is *this* far behind, I have no idea. I don't want
> > bleeding edge, but this is further behind than necessary.)
In their defense, 3.1, 4.0, and 4.1 all came out within a year of each
other, in a veritable feast of DHCPv6 related development.
--
David W. Hankins "If you don't do it right the first time,
Software Engineer you'll just have to do it again."
Internet Systems Consortium, Inc. -- Jack T. Hankins
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20090305/567b11e8/attachment.bin>
More information about the dhcp-users
mailing list