cvs commit: src/etc/rc.d hostname

Daniel O'Connor doconnor at
Tue Feb 13 05:29:04 UTC 2007

On Monday 12 February 2007 22:39, Yar Tikhiy wrote:
> I have no idea how many Unix hosts allow their hostname to be set
> via DHCP.  I prefer to think that a Unix host is like a good ship:
> it never changes its name while furrowing the network seas.  A DHCP
> assigned hostname better fits crippled hosts such as diskless
> stations etc.

My laptop's name changes depending which network it's on. (ie the domain 

It would be nice if it would try to get the name specified in hostname via 
DHCP (for dynamic DNS setups), if that fails check what the DHCP server gave 
it, failing that do a reverse lookup on the IP.

Unfortunately it's not easy to do that because of how /etc/rc.d/* and dhclient 
interact.. Furthermore X (for one) gets really annoyed when you change 

(I can dream :)

Daniel O'Connor software and network engineer
for Genesis Software -
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the cvs-src mailing list