From owner-cvs-src@FreeBSD.ORG Tue Feb 13 07:08:38 2007 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 125EC16A47A; Tue, 13 Feb 2007 07:08:38 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id B0AE913C4C1; Tue, 13 Feb 2007 07:08:36 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.3) with ESMTP id l1D78WiH062418; Tue, 13 Feb 2007 10:08:32 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.3/Submit) id l1D78Ub6062416; Tue, 13 Feb 2007 10:08:30 +0300 (MSK) (envelope-from yar) Date: Tue, 13 Feb 2007 10:08:29 +0300 From: Yar Tikhiy To: "Daniel O'Connor" Message-ID: <20070213070829.GE58225@comp.chem.msu.su> References: <200702101313.l1ADDX8m056868@repoman.freebsd.org> <20070212034438.GA42410@lor.one-eyed-alien.net> <20070212120908.GN13808@comp.chem.msu.su> <200702131558.34590.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200702131558.34590.doconnor@gsoft.com.au> User-Agent: Mutt/1.5.9i Cc: Ceri Davies , cvs-src@freebsd.org, Brooks Davis , src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/etc/rc.d hostname X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Feb 2007 07:08:38 -0000 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 > 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.. 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. -- Yar