On Thu, Apr 03, 2008 at 12:11:17PM -0600, Bdale Garbee wrote: > > On Fri, 2008-03-14 at 20:38 +0100, Lluis wrote: > > > 127.0.0.1 localhost > > 127.0.0.1 hostname.domain hostname > > I'm not accustomed to seeing two lines for the same IP address > in /etc/hosts, I'm not sure that's a good idea... it's hard to decide > what behavior should really rbe expected in this case. > > What happens if you combine the entries into one line like this? > > 127.0.0.1 hostname.domain hostname localhost Debian seems to do new installs like this: 127.0.0.1 localhost 127.0.1.1 nadir
so localhost 127.0.0.1 is the canonical name for the first loopback address, and the hostname also goes to a reasonable place (although not with the public IP address, since that isn't know and may not be constant). I think /etc/hostname is used as an index to look up in /etc/hosts, so hostname should be a public (or otherwise not loopback) IP address, so the output of hostname -f and -s is right. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]