From owner-freebsd-net@FreeBSD.ORG Tue Oct 24 14:42:19 2006 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0652B16A580; Tue, 24 Oct 2006 14:42:19 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from sccmmhc91.asp.att.net (sccmmhc91.asp.att.net [204.127.203.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20D3543D7E; Tue, 24 Oct 2006 14:41:54 +0000 (GMT) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net ([12.207.12.9]) by sccmmhc91.asp.att.net (sccmmhc91) with ESMTP id <20061024144037m9100em72me>; Tue, 24 Oct 2006 14:40:48 +0000 Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.8/8.13.8) with ESMTP id k9OEdjmc052413; Tue, 24 Oct 2006 09:39:45 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.8/8.13.8/Submit) id k9OEdiKv052412; Tue, 24 Oct 2006 09:39:44 -0500 (CDT) (envelope-from brooks) Date: Tue, 24 Oct 2006 09:39:40 -0500 From: Brooks Davis To: Harti Brandt Message-ID: <20061024143940.GA52335@lor.one-eyed-alien.net> References: <453C0E42.4010604@joeholden.co.uk> <453C5386.5080102@FreeBSD.org> <453C5979.4050408@yandex.ru> <453D35AB.3000908@joeholden.co.uk> <20061024091523.G45134@knop-beagle.kn.op.dlr.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline In-Reply-To: <20061024091523.G45134@knop-beagle.kn.op.dlr.de> User-Agent: Mutt/1.5.11 Cc: "Andrey V. Elsukov" , net@freebsd.org, Joe Holden , Doug Barton Subject: Re: Instructing dhclient to set hostname of client X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Oct 2006 14:42:19 -0000 --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 24, 2006 at 09:16:07AM +0200, Harti Brandt wrote: > On Mon, 23 Oct 2006, Joe Holden wrote: >=20 > JH>Andrey V. Elsukov wrote: > JH>> Doug Barton wrote: > JH>>> If you're talking about a laptop where you're not sure what the DHCP > JH>>> server is going to send you, then I have this in /etc/rc.local: > JH>>=20 > JH>> Hi, Doug. > JH>>=20 > JH>> What you think about adding a new feature to dhclient - Alternate IP > JH>> Configuration. This configuration can be specified in dhclient.conf > JH>> and take effect when a DHCP server not respond. MS Windows have a > JH>> similar feature. > JH>>=20 > JH>Really I was hoping dhclient would have this sort of functionality whe= re > JH>it would resolve the ip given and set that as hostname, as as far as im > JH>aware, isc-dhcpd will not send hostnames? >=20 > Sure it does. On my machines I set hostname to "" in rc.conf and let=20 > dhclient set it. Works fine. Once upon a time I implemented some code to add a default_hostname variable to rc.conf which was then used by the startup scripts and dhclient-script to allow the local network to override the name if desired while insuring that the system had a name at all times (required for laptop use). I'd take patches to do this. -- Brooks P.S. hacking this into rc.local won't work longterm because addresses will be assigned in a totally different context. --0OAP2g/MAC+5xKAE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFPiWsXY6L6fI4GtQRAvskAJ9JdU2qlWZBcQmFe/7jN7WfIg50BACg0uTC EG8TmTJf+l8UBU7z/BGuD0I= =dQEc -----END PGP SIGNATURE----- --0OAP2g/MAC+5xKAE--