dhcp hostname

Carl Karsten carl at personnelware.com
Tue Mar 7 00:33:45 UTC 2006


Thilo Six wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
> 
> Carl Karsten schrieb am 06.03.2006 09:53:
> 
>>That is close to what I want, only it isn't "the hostname", but a copy
>>that would have to be updated if the hostname gets updated.
>>
>>Is there some way to do:
>>
>>send host-name $(hostname);
>>
>>Thanks,
>>
>>^C
> 
> $ echo $HOSTNAME
> ubuntu
> 
> Does it work with:
> send host-name $HOSTNAME
> 
> ?
> I do not have DHCP here. Since I assume this script will work inside
> some kind of shell?? it should work.
> 

That's what I was hoping for, but no luck.  send host-name goes in a config 
file, so it isnt "run."

The good news is I know to stop trying:

>    *** From dhcp-server -- To unsubscribe, see the end of this message. ***
> 
> On Sun, Mar 05, 2006 at 01:46:25AM -0600, Carl Karsten wrote:
> 
>>> /etc/dhcp3/dhclient.conf
>>> send host-name "andare.fugue.com";
>>> 
>>> Is there some way to make that pickup the current hostname?
> 
> 
> Not yet, it's on the feature request list.
> 
> -- David W. Hankins - Internet Systems Consortium, Inc.





More information about the ubuntu-users mailing list