From owner-freebsd-hackers Wed Jan 17 12:25:20 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 57D3037B404 for ; Wed, 17 Jan 2001 12:25:01 -0800 (PST) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.1/8.11.1) with SMTP id f0HKOk772562; Wed, 17 Jan 2001 15:24:46 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Wed, 17 Jan 2001 15:24:45 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: mouss Cc: Archie Cobbs , Warner Losh , freebsd-hackers@FreeBSD.ORG Subject: Re: Setting default hostname to localhost In-Reply-To: <4.3.0.20010117202543.04e28280@pop.free.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 17 Jan 2001, mouss wrote: > At 21:16 16/01/01 -0500, Robert Watson wrote: > >The nice thing about "localhost" is that it already appears in > >/etc/hosts, and is a relatively reserved name, so unlikely to conflict too > >much based on resolution order. I.e., amnesiac.res.cmu.edu is not an > >unlikely name. > > sure, but I consider that the "hostname" variable has nothing to do with > resolution. > you can call your host amnesiac and still "ping localhost" thanks to > /etc/localhost. > > in other words, callin it "amnesiac" has nothing to do with "amnesiac.foo.bar". On the contrary, there are many applications that expect the results of a gethostname() to resolve, and point to the local machine. It's arguable that these applications are broken, but there are enough of them to raise consideration. They include lpd, sdr, and cvsup. Consider that currently you can't run the printer spooler if you don't have a hostname that resolves to an IP; you can't use sdr without a resolvable hostname, and you can't use the cvsup graphical interface without a resolvable hostname. I'd like to see these fixed of course--DHCP doesn't always provide a hostname, but it's a continuing problem. Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message