Red Hat Bugzilla – Bug 454152
dhclient-script ignores SEARCH=dom1 dom2... in ifcfg-eth$n
Last modified: 2008-09-16 19:21:58 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):
Steps to Reproduce:
1. Add a line
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
"search" in /etc/resolv.conf contains only the domain
returned by the dhcp server.
/etc/resolv.conf should have "mydomain other.domain" in the search line
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
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.
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
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.