Bug 449053

Summary: handle multiple nameservers in DHCPv6 reply
Product: Red Hat Enterprise Linux 5 Reporter: David Cantrell <dcantrell>
Component: dhcpv6Assignee: David Cantrell <dcantrell>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: urgent    
Version: 5.2CC: ryang
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-20 21:38:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 253764, 449327    

Description David Cantrell 2008-05-30 03:19:14 UTC
Handle multiple nameservers in option 23 in a DHCPv6 reply.

Do not print all nameserver addresses on one 'nameserver' line in /etc/resolv.conf.  Print each one on its 
own line, so we can handle an arbitrary number of nameservers in the reply.

Fix already upstream.

Comment 7 David Cantrell 2008-09-17 00:10:46 UTC
The patch for this problem was first available in dhcpv6-1.0.10-5.el5 and is still there.

Comment 10 David Cantrell 2008-09-25 22:05:48 UTC
You will need to create an /etc/dhcp6c.conf file and make sure the following lines are in the file:

interface INTERFACE {
    request domain-name-servers;
};

Where INTERFACE is something like 'eth0'.  dhcp6c will update /etc/resolv.conf only if it has a 'request domain-name-servers' option and/or a 'request domain-search-list' option in the configuration file for the interface you are using.

On the server, make sure you have this line in /etc/dhcp6s.conf:

option dns_servers <list of DNS servers>;

For example:

option dns_servers 2003::6:1 2003::6:2;

Just specify multiple name servers on the 'option dns_servers' line, separate the server addresses by a space.

Hope that helps.

Comment 15 errata-xmlrpc 2009-01-20 21:38:38 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0165.html