From owner-freebsd-hackers Thu Jan 11 10:25:45 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 5967137B402; Thu, 11 Jan 2001 10:25:28 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id f0BIPPY00924; Thu, 11 Jan 2001 10:25:25 -0800 Date: Thu, 11 Jan 2001 10:25:25 -0800 From: Brooks Davis To: "Donald J . Maddox" Cc: Robert Watson , freebsd-hackers@FreeBSD.ORG Subject: Re: Setting default hostname to localhost Message-ID: <20010111102525.B28915@Odin.AC.HMC.Edu> References: <20010110213538.A668@cae88-102-101.sc.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010110213538.A668@cae88-102-101.sc.rr.com>; from dmaddox@sc.rr.com on Wed, Jan 10, 2001 at 09:35:38PM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jan 10, 2001 at 09:35:38PM -0500, Donald J . Maddox wrote: > On Wed, Jan 10, 2001 at 09:23:13PM -0500, Robert Watson wrote: > > /etc/default/rc.conf to change the default hostname to "localhost". If > > the user configures a hostname, or DHCP provides one, it will be > > overridden, of course, so should not impact any configuration but one > > where the hostname is left undefined. > > A cursory glance at /sbin/dhclient-script seems to indicate that > DHCP will NOT override the hostname unless it is an empty string. I submitted one possiable solution to this problem in PR:conf/18583 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=18583 Other solutions include just letting DHCP smash the hostname all the time or having a variable like dhcp_override_hostname in rc.conf. While I understand the concern that we don't want to maintain out own dhcp version, dhclient-script isn't on the vendor branch anyway. -- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message