Thoughts on dhcp-client automatically determining the hostname?

Chuck Anderson cra at WPI.EDU
Mon Jan 14 15:43:54 UTC 2008


On Mon, Jan 14, 2008 at 12:46:26PM +1000, Andrew Pollock wrote:
> The full bug details are at http://bugs.debian.org/151820
> 
> What happens if the user then changes the hostname? Well now they've got to
> go change it in dhclient.conf as well.

In Fedora, a patch has been added which does this:

       -H <host-name>
              Specify the host-name option to send to the  DHCP  server.   The
              host-name  string only contains the client’s hostname prefix, to
              which the server will append the ddns-domainname or  domain-name
              options,  if  any,  to derive the fully qualified domain name of
              the client.  The -H option cannot be used with the -F option.

Here is the changelog entry:

* Sat May 06 2006 Jason Vas Dias <jvdias at redhat.com> - 12:3.0.4-1
- Upgrade to upstream version 3.0.4, released Friday 2006-05-05 .
- Add new dhclient command line arguments:
  -H <host-name> : parse as dhclient.conf 'send host-name "<host-name>";'
  -F <fqdn>      : parse as dhclient.conf 'send fqdn.fqdn "<fqdn>";'
  -T <timeout>   : parse as dhclient.conf 'timeout <timeout>;'

The patch is in Fedora CVS here:

http://cvs.fedoraproject.org/viewcvs/rpms/dhcp/F-8/dhcp-3.0.6-options.patch?rev=1.1&view=markup


More information about the dhcp-users mailing list