Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289971 - net-misc/dhcp-3.1.2_p1: domain-search option is not used to make resolv.conf
Summary: net-misc/dhcp-3.1.2_p1: domain-search option is not used to make resolv.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-21 08:54 UTC by Michel Wilson
Modified: 2012-10-10 03:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to add domain-search handling to /sbin/dhclient-script (dhclient-domain-search.patch,5.16 KB, patch)
2009-10-21 08:54 UTC, Michel Wilson
Details | Diff
ebuild which uses attached patch (dhcp-3.1.2_p1-r1.ebuild,7.56 KB, text/plain)
2009-10-21 08:55 UTC, Michel Wilson
Details

Note You need to log in before you can comment on or make changes to this bug.
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