dhclient.conf 'send host-name' with args

Chuck Anderson cra at WPI.EDU
Tue Feb 3 14:00:11 UTC 2009

On Tue, Feb 03, 2009 at 08:37:21AM -0500, VR wrote:
> How would I pluck out the hostname that is set via /etc/hostname of a
> debian system and use it in a "send host-name "$HOSTNAME";
> declaration instead?

Instead of using dhclient.conf, you could use -H like this:

dhclient -H `cat /etc/hostname`

More information about the dhcp-users mailing list