On Tue, Feb 13, 2007 at 03:58:19PM +1030, Daniel O'Connor wrote:
> 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
Yeah, there should be some apps that don't like hostname changing.
I'm afraid little can be done about them. Either you make the
hostname permanent (e.g., by telling dhclient not to change the
hostname) and break the network policy, or you let the hostname
change and break the apps.