Date: Tue, 16 Jan 2001 21:16:46 -0500 (EST) From: Robert Watson <rwatson@FreeBSD.ORG> To: mouss <usebsd@free.fr> Cc: Archie Cobbs <archie@dellroad.org>, Warner Losh <imp@harmony.village.org>, freebsd-hackers@FreeBSD.ORG Subject: Re: Setting default hostname to localhost Message-ID: <Pine.NEB.3.96L.1010116211552.61772B-100000@fledge.watson.org> In-Reply-To: <4.3.0.20010116124844.00ad5a60@pop.free.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1010116211552.61772B-100000>