Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a DHCP server running ISC dhcpd which offers the option domain-search "domain.local"; option.

This is being ignored by a particular CentOS 5 dhclient which is removing the search parameter in resolv.conf even if I add it in manually and restart networking.

When looking at the dhclient lease in /var/lib/dhclient/dhclient-eth0.leases I notice that the option domain-search is not among the options it's received from the DHCP server.

I'm aware that you can set a dhclient.conf file to locally override options received from DHCP servers but there doesn't appear to be an /etc/dhclient.conf or /etc/dhcp/dhclient.conf

It's strange that it's being actively overwritten and not in the local leases file. CentOS 6 guests appear to be receiving the option ok.

Anyone aware of any other conditions where this might happen?
OS is CentOS 5.8 64bit and dhclient 12:3.0.5-33.el5_9

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Solved! Basically it appears that dhclient with CentOS 5 doesn't recognise the domain-search option from dhcpd, whereas CentOS 6 does.

I additionally specified the domain-name option in dhcpd.conf and a networking restart on the CentOS guests got the search parameter added to /etc/resolv.conf

Hope this helps someone out.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.