From owner-freebsd-hackers Tue Jan 16 18:17:25 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 5AEF337B402 for ; Tue, 16 Jan 2001 18:17:06 -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 f0H2Gk762102; Tue, 16 Jan 2001 21:16:46 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Tue, 16 Jan 2001 21:16:46 -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.20010116124844.00ad5a60@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 Tue, 16 Jan 2001, mouss wrote: > A look at /usr/src/libexec/getty/main.c shows the folowing: > if (hostname[0] == '\0') > strcpy(hostname, "Amnesiac"); > > so, coherence suggests that the default should be "Amnesiac". > Othewise, you'll get different hostnames for dhcp (and the like), and > getty sessions. 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. 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