Bug 454152

Summary: dhclient-script ignores SEARCH=dom1 dom2... in ifcfg-eth$n
Product: [Fedora] Fedora Reporter: Jón Fairbairn <jon.fairbairn>
Component: dhcpAssignee: David Cantrell <dcantrell>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 9CC: wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-16 19:21:58 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Jón Fairbairn 2008-07-05 10:33:24 EDT
Description of problem:
dhclient-script fails to copy the contents of the SEARCH variable set in 
/etc/sysconfig/network-scripts/ifcfg-eth$n into /etc/resolv.conf

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Add a line 

SEARCH="mydomain other.domain"

to /etc/sysconfig/network-scripts/ifcfg-eth$n (or
/etc/sysconfig/networking/devices/ifcfg-eth$n or whatever).
system-config-network can be used to do this by entering
"mydomain other.domain" in the "DNS search path" field of
the DNS tab

2. restart the network

Actual results:

"search" in /etc/resolv.conf contains only the domain
returned by the dhcp server.

Expected results:
/etc/resolv.conf should have "mydomain other.domain" in the search line

Additional info:

If you are using NetworkManager, setting the search domains
via nm-applet sort-of gets this right, though on my laptop
it seems to have put the search domains in twice at the
moment.  I'm not using NetworkManager on the machine in
This bug affects Bug #183338 -- if system-config-network is reading from
/etc/resolv.conf rather than ifcfg-eth$n, it loses the domains when it writes
the ifcfg file
Comment 1 David Cantrell 2008-08-01 15:47:22 EDT
I've modified the dhclient-script to allow the SEARCH variable in the ifcfg script to override the search path 
provided in the DHCP lease.

An update will be provided as dhcp-4.0.0-17.fc9.

Thanks for the report.
Comment 2 Fedora Update System 2008-08-07 19:58:02 EDT
dhcp-4.0.0-17.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dhcp'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-7105
Comment 3 Fedora Update System 2008-09-16 19:21:48 EDT
dhcp-4.0.0-17.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.