Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 289971

Summary: net-misc/dhcp-3.1.2_p1: domain-search option is not used to make resolv.conf
Product: Gentoo Linux Reporter: Michel Wilson <michel>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to add domain-search handling to /sbin/dhclient-script
ebuild which uses attached patch

Description Michel Wilson 2009-10-21 08:54:08 UTC
The new domain-search option is not used to populate the search option in /etc/resolv.conf; currently the domain is (mis)used as search option.

Reproducible: Always

Steps to Reproduce:
1. Configure the dhcp server with option domain-name "foo.example.com" and option domain-search "foo.example.com example.com"
2. Acquire a lease

Actual Results:  
/etc/resolv.conf contains "search foo.example.com"

Expected Results:  
/etc/resolv.conf should contain "domain foo.example.com" and "search foo.example.com. example.com."

I will try to attach a patch and new ebuild using this patch.
Comment 1 Michel Wilson 2009-10-21 08:54:59 UTC
Created attachment 207787 [details, diff]
Patch to add domain-search handling to /sbin/dhclient-script
Comment 2 Michel Wilson 2009-10-21 08:55:39 UTC
Created attachment 207789 [details]
ebuild which uses attached patch
Comment 3 Wormo (RETIRED) gentoo-dev 2009-10-29 06:12:40 UTC
Thanks for submitting your patch! Assigning to dhcp maintainers.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-10-15 07:48:48 UTC
Please update to apply against 3.1.3_p1 and 4.1.x.
Or note if it's not required anymore.
Comment 5 SpanKY gentoo-dev 2012-10-10 03:50:47 UTC
afaict, new_domain_search is supported in dhcp-4.2.4