Bug #1176
closedNWAM handling of multiple DHCP-assigned DNS domains broken
100%
Description
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.
Files
Updated by Garrett D'Amore almost 12 years ago
- Status changed from New to Resolved
Resolved in:
garrett@thinkpad{22}> hg head
changeset: 13418:ddddd898d92e
tag: tip
user: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
date: Thu Aug 04 17:26:54 2011 -0700
description:
1176 NWAM handling of multiple DHCP-assigned DNS domains broken
Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
Reviewed by: Albert Lee <trisk@nexenta.com>
Approved by: Garrett D'Amore <garrett@nexenta.com>