Project

General

Profile

Actions

Bug #1176

closed

NWAM handling of multiple DHCP-assigned DNS domains broken

Added by Hans Rosenfeld almost 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
High
Category:
lib - userland libraries
Start date:
2011-07-02
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

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

net-loc.diff (494 Bytes) net-loc.diff Hans Rosenfeld, 2011-07-02 02:56 PM
Actions #1

Updated by Garrett D'Amore almost 11 years ago

  • Status changed from New to Resolved

Resolved in:

garrett@thinkpad{22}> hg head
changeset: 13418:ddddd898d92e
tag: tip
user: Hans Rosenfeld <>
date: Thu Aug 04 17:26:54 2011 -0700
description:
1176 NWAM handling of multiple DHCP-assigned DNS domains broken
Reviewed by: Gordon Ross <>
Reviewed by: Albert Lee <>
Approved by: Garrett D'Amore <>

Actions

Also available in: Atom PDF