From owner-freebsd-questions@FreeBSD.ORG Mon Feb 16 11:57:09 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 C5DA516A4CE for ; Mon, 16 Feb 2004 11:57:09 -0800 (PST) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92A0643D41 for ; Mon, 16 Feb 2004 11:57:09 -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 (sccrmhc12) with ESMTP id <2004021619570901200mkmq2e>; Mon, 16 Feb 2004 19:57:09 +0000 Received: by be-well.no-ip.com (Postfix, from userid 1147) id E2376E; Mon, 16 Feb 2004 14:57:08 -0500 (EST) Sender: lowell@be-well.ilk.org To: "Evan Dower" References: <444qtw2dz6.fsf@be-well.ilk.org> From: Lowell Gilbert Date: 16 Feb 2004 14:57:08 -0500 In-Reply-To: <444qtw2dz6.fsf@be-well.ilk.org> Message-ID: <44fzdaer1n.fsf@be-well.ilk.org> Lines: 25 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@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: Mon, 16 Feb 2004 19:57:09 -0000 Lowell Gilbert writes: > "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. I checked it out on my home network, and found that my DHCP server wasn't sending the hostname back at all. I am running my own DHCP server (using the ISC port), so I configured it to do that (with the "get-lease-hostnames" option). If you don't run your own server, you can't do anything about that, so if you want your hostname set to the correct FQDN, you'd need to do a reverse lookup on the IP address you found.