[bugs] [illumos gate - Bug #1176] (New) NWAM handling of multiple DHCP-assigned DNS domains broken
illumos bugs
bugs at lists.illumos.org
Sat Jul 2 07:56:10 PDT 2011
Issue #1176 has been reported by Hans Rosenfeld.
----------------------------------------
Bug #1176: NWAM handling of multiple DHCP-assigned DNS domains broken
https://www.illumos.org/issues/1176
Author: Hans Rosenfeld
Status: New
Priority: High
Assignee: Hans Rosenfeld
Category: lib - userland libraries
Target version:
Difficulty: Bite-size
Tags: needs-triage
The dhcp server at work gives me three domain names: foo.bar.com, bar.com and baz.com. On OpenSolaris b134 that resulted in a single "domain foo.bar.com" statement in /etc/resolv.conf.
Since I upgraded to OI, which includes the new NWAM stuff that was integrated into ONNV about a year ago, that results in three domain statements in /etc/resolv.conf:
domain foo.bar.com
domain bar.com
domain baz.com
nameserver ...
Resolv.conf(4) states that only one domain or search statement is allowed, and that the last one found is used if there is more than one. So I now get a DNS domain and search list of "baz.com", and the other domains are ignored. This is just differently broken than in b134.
According to usr/src/lib/libresolv/res_init.c, the only difference between search and domain is that search allows specification of more than one domain, and first one is assumed to be the local domain name. Therefore, all DNS domains received from the DHCP server should be used in a single search statement in /etc/resolv.conf.
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://www.illumos.org/my/account
More information about the bugs
mailing list