From owner-freebsd-questions@FreeBSD.ORG Thu Feb 12 13:18:54 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8986116A4CE for ; Thu, 12 Feb 2004 13:18:54 -0800 (PST) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8260543D2F for ; Thu, 12 Feb 2004 13:18:54 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.no-ip.com ([66.30.196.44]) by comcast.net (rwcrmhc11) with ESMTP id <2004021221185401300g4e90e>; Thu, 12 Feb 2004 21:18:54 +0000 Received: by be-well.no-ip.com (Postfix, from userid 1147) id AF56311; Thu, 12 Feb 2004 16:18:53 -0500 (EST) Sender: lowell@be-well.ilk.org To: "Evan Dower" References: From: Lowell Gilbert Date: 12 Feb 2004 16:18:53 -0500 In-Reply-To: Message-ID: <444qtw2dz6.fsf@be-well.ilk.org> Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions-local@be-well.ilk.org cc: freebsd-questions@freebsd.org Subject: Re: hostname and dhcp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2004 21:18:54 -0000 "Evan Dower" writes: > Hmm... That is what I expected it to do, but when I tried it, I ended > up with an empty hostname. Of course, I don't remember now if I > commented out that line or just set it to empty. Actually, looking at > /etc/defaults/rc.conf I see that if I comment it out in /etc/rc.conf > it gets set to the empty string in the default, so it shouldn't > matter. Anyway, like I said, I tried that and just ended up with an > empty hostname. Perhaps that indicates something is wrong with my > configuration... Well, I didn't *try* it, I just read through dhclient-script. I'll try to take a closer look. > Thanks very much for the help (any other ideas?), You could always just create you *own* script (using the dhclient-exit-hooks script, ideally) which sets hostname on the new name unconditionally.