dhclient.conf 'send host-name' with args

VR iscdhcp at iotk.net
Tue Feb 3 16:18:38 UTC 2009


Glen R. J. Neff wrote:
> On Tue, 2009-02-03 at 09:00 -0500, Chuck Anderson wrote:
> 
>> Instead of using dhclient.conf, you could use -H like this:
>>
>> dhclient -H `cat /etc/hostname`
> 
> I'm inclined to think that this would be more sane:
> 
>         dhclient -H `hostname`
> 
> -G
> 

Do you mean to call dhclient as part of the startup scripts? When I try 
dhclient from a shell as root I only get the usage options where -H is 
not listed?


myHostName:~# dhclient -H `hostname`
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Usage: dhclient [-1dqrx] [-nw] [-p <port>] [-s server]
                 [-cf config-file] [-lf lease-file][-pf pid-file] [-e 
VAR=val]
                 [-sf script-file] [interface]
lamp:~# dhclient -H `hostname`
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Usage: dhclient [-1dqrx] [-nw] [-p <port>] [-s server]
                 [-cf config-file] [-lf lease-file][-pf pid-file] [-e 
VAR=val]
                 [-sf script-file] [interface]

-----

myHostName:~# dhclient -H `cat /etc/hostname`

Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Usage: dhclient [-1dqrx] [-nw] [-p <port>] [-s server]
                 [-cf config-file] [-lf lease-file][-pf pid-file] [-e 
VAR=val]
                 [-sf script-file] [interface]



More information about the dhcp-users mailing list