Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2007 15:58:19 +1030
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        cvs-all@freebsd.org
Cc:        Ceri Davies <ceri@submonkey.net>, Yar Tikhiy <yar@comp.chem.msu.su>, Brooks Davis <brooks@freebsd.org>, src-committers@freebsd.org, cvs-src@freebsd.org
Subject:   Re: cvs commit: src/etc/rc.d hostname
Message-ID:  <200702131558.34590.doconnor@gsoft.com.au>
In-Reply-To: <20070212120908.GN13808@comp.chem.msu.su>
References:  <200702101313.l1ADDX8m056868@repoman.freebsd.org> <20070212034438.GA42410@lor.one-eyed-alien.net> <20070212120908.GN13808@comp.chem.msu.su>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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 
part).

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 
hostname..

(I can dream :)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQBF0UyC5ZPcIHs/zowRAtebAJ0c983o39LLuMNZSmy/7dPIyCvJegCfcRXY
jaoPo4uVQYGSscyUc6QEiRc=
=0Iu8
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702131558.34590.doconnor>