From owner-freebsd-hackers Sun Jul 6 19:20:39 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA18442 for hackers-outgoing; Sun, 6 Jul 1997 19:20:39 -0700 (PDT) Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id TAA18432 for ; Sun, 6 Jul 1997 19:20:35 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA22018; Sun, 6 Jul 1997 22:20:03 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Sun, 6 Jul 1997 22:20 EDT Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.water.net (8.8.5/8.7.3) with ESMTP id VAA00369 for ; Sun, 6 Jul 1997 21:49:08 -0400 (EDT) Received: (from rivers@localhost) by lakes.water.net (8.8.5/8.6.9) id VAA00413 for freebsd-hackers@freefall.cdrom.com; Sun, 6 Jul 1997 21:57:33 -0400 (EDT) Date: Sun, 6 Jul 1997 21:57:33 -0400 (EDT) From: Thomas David Rivers Message-Id: <199707070157.VAA00413@lakes.water.net> To: ponds!freefall.cdrom.com!freebsd-hackers Subject: 127.1 and "localhost" (name resolution problem.) Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I just discovered this on 2.2.1+ (dated 970510) - so it may not be in 2.2.2. But, I just tried to "ping localhost" to discover it couldn't be resolved. # ping localhost ping: unknown host localhost Now - I have no name servers; /etc/host.conf is set to go to the hosts file, which contains: 127.1 localhost.water.net localhost But - If I replace that line with: 127.0.0.1 localhost.water.net localhost Everything works fine. I suggest that, until this problem is fixed, we use 127.0.0.1 in any automated generation of /etc/hosts... I'm not sure where mine came from; it could be an older installation (e.g. upgrades...) If someone happens to be poking around in /etc/hosts resolution code; I'd be interested in knowning why this didn't work... - Dave Rivers -