Red Hat Bugzilla – Bug 91729
dhclient doesn't handle multiple DNS search domains
Last modified: 2007-04-18 12:54:03 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
Description of problem:
According to my network administrator, our DHCP servers are returning four DNS
search domains, but dhclient included with RHL 9 is not adding them to
/etc/resolv.conf. Looking at /sbin/dhclient-script, it appears that there is,
in fact, no support for multiple domains.
Might I also say, having now looked at dhclient to some degree, that it's utter
crap! Some sort of debugging mode would be nice, to see what data the client is
actually receiving from the server. I know this isn't Red Hat's problem, though.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Configure DHCP server to provide multiple DNS search domains.
2. Configure dhclient to configure resolver from server-provided config.
3. Run dhclient.
4. Note missing DNS search paths in /etc/resolv.conf.
Actual Results: As described above.
Expected Results: Multiple domain names in the "search" line in
/etc/resolv.conf following a successful DHCP lease renewal.
Pump and dhcpcd seems to work better than this. A DNS search path is
dhcpd does not support passing of the search parameter. However you might be
able to modify the domain_name parameter and make it a space separated list
which would then update the /etc/resolv.conf on the clients with the search path.
I am not sure if this will hurt anything but it should work.