dhcp hostname

Thilo Six T.Six at gmx.de
Tue Mar 7 20:51:38 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Carl Karsten schrieb am 07.03.2006 01:33:
> 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);

<snip>

> That's what I was hoping for, but no luck.  send host-name goes in a
> config file, so it isnt "run."
> 
OK then. How about to write a little shell script to change both
hostnames in
/etc/hostname and /etc/dhcp3/dhclient.conf in once?

I have experimented with:
$ grep --invert-match "send host-name" /etc/dhcp3/dhclient.conf

But i couldnĀ“t get a shell script working, to exchange this line.
Once this is done it should be easy to update those files.

Maybe someone else can help out with this.

bye Thilo

- --
i am on Ubuntu 2.6 KDE
- - some friend of mine
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEDfJYzeyTbiZA74IRAw+cAJ4/PKwxNnmxpm4uEVd/nLABJ1uWrgCffaEs
DiJgHXA3+1W2bycz01mgF7o=
=zMjz
-----END PGP SIGNATURE-----





More information about the ubuntu-users mailing list