DHCPD / Updating A Client's Hostname

David Cantrell dcantrell at redhat.com
Tue Feb 26 23:53:24 UTC 2008

On Feb 26, 2008, at 1:09 PM, Jeremy Moles wrote:

> I've been trying for some hours now to configure a server running  
> v3.0.6-Fedora (from Fedora 8) to do whatever I can gather from the
> manpages/internet is necessary to have the server give the client it's
> new hostname. I've tried everything I can think of and have, as a last
> resort, decided to post this question on the mailing list. :)
> Basically, what I'm doing is setting up a small network where every
> machine will boot with the hostname "localhost" and should, upon  
> running
> dhclient, change it's hostname to something like: dhcp101, dhcp99,
> dhcp4, etc. However, this simply isn't work at all, and I believe I  
> have
> tracked the issue down to the variable:
> 	$new_host_name
> ...not being set when dhclient-script is invoked (I do an: echo "$ 
> (env)"
> to a temp file and see every DHCP new_* variable except this one).
> My dhcpd.conf is as follows:
> --------------------------------------------------------
> allow booting;
> allow client-updates;
> ddns-update-style interim;
> ddns-domainname "example.net";
> ddns-rev-domainname "in-addr.arpa.";
> ddns-updates on;
> default-lease-time 86400;
> max-lease-time 604800;
> subnet netmask {
>        option subnet-mask;
>        option broadcast-address;
>        option domain-name "example.net";
>        option routers;
>        range dynamic-bootp;
>        next-server;
>        filename "/pxelinux.0";
> }
> --------------------------------------------------------
>> From what I can gather, this should be sufficient, but clearly I'm
> missing something vital. Can anyone shed any light as to what I'm  
> doing
> wrong? Is there something I need to enabled in dhclient.conf on the
> client?

You're probably asking in the wrong place.  In the Fedora dhcp  
package, the dhclient-script is modified to work correctly with  
Fedora's network configuration scripts.  So, it's not the default  
dhclient-script provided by ISC.

As noted in the 'dhcpd -V' output on Fedora, please report bugs for  
Fedora's dhcp package to http://bugzilla.redhat.com.  Or email me  
directly, I'm the dhcp maintainer for Fedora and RHEL.  I try to  
shield ISC from the Fedora modifications as much as possible.

What does the client get when it gets a new lease?  Contents of the  
dhclient.leases file?

David Cantrell
Red Hat / Honolulu, HI

More information about the dhcp-users mailing list