On a CentOS 5.7 VM running under VirtualBox I have created the file /etc/dhclient-eth0.conf I have the line:
append domain-search "mysub.domain.com";
The version of DHCP client is: isc-dhclient-V3.0.5-RedHat
In /var/log/messages it shows an error that "domain-search" is not recognized. This works on CentOS 6.X but that is running ISC DHCP 4.X instead of 3.X.
I have not been able to find if this declaration is supported in ISC DHCP 3.x. If not does anyone have a suggestion other than building and installing ISC DHCP 4.x.
CentOS 5.7 dhclient-eth0.conf declaration not working
CentOS 5.7 dhclient-eth0.conf declaration not working
The example in `man dhclient.conf` on a CentOS 5.7 system uses
[code]
supersede domain-name "fugue.com rc.vix.com home.vix.com";
[/code]
but I suspect that append should work too.
[code]
supersede domain-name "fugue.com rc.vix.com home.vix.com";
[/code]
but I suspect that append should work too.
Re: CentOS 5.7 dhclient-eth0.conf declaration not working
I thought that the domain-search directive was for setting the resolv.conf search entry and domain-name directive was for setting the domain entry. I will give it a try.
[Solved] Re: CentOS 5.7 dhclient-eth0.conf declaration not working
OK, that worked. I guess in DHCP 4 they separated out the domain-search from the domain-name directive.
Thanks!
Thanks!
Re: CentOS 5.7 dhclient-eth0.conf declaration not working
I'm only guessing from the list of entries in the example that this is what it's for so let us know if it works :-)
Re: CentOS 5.7 dhclient-eth0.conf declaration not working
Looking at the release notes for ISC DHCP it looks like the domain-search directive has be in the code since at least 3.1