From owner-freebsd-hackers Mon Jul 7 09:50:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA22906 for hackers-outgoing; Mon, 7 Jul 1997 09:50:47 -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 JAA22879 for ; Mon, 7 Jul 1997 09:50:41 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA02325; Mon, 7 Jul 1997 12:50:09 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Mon, 7 Jul 1997 12:50 EDT Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.water.net (8.8.5/8.7.3) with ESMTP id HAA12218; Mon, 7 Jul 1997 07:33:05 -0400 (EDT) Received: (from rivers@localhost) by lakes.water.net (8.8.5/8.6.9) id HAA01460; Mon, 7 Jul 1997 07:41:32 -0400 (EDT) Date: Mon, 7 Jul 1997 07:41:32 -0400 (EDT) From: Thomas David Rivers Message-Id: <199707071141.HAA01460@lakes.water.net> To: ponds!lakes.water.net!rivers, ponds!sdf.com!tom Subject: Re: 127.1 and "localhost" (name resolution problem.) Cc: ponds!freebsd.org!freebsd-hackers Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > On Sun, 6 Jul 1997, Thomas David Rivers wrote: > > > 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...) > > I suspect that you put it there. The last change to the /etc/hosts file > was made in 96/03/20. Yes - it seems I did put it there. The /etc/hosts that comes from an install appears to say 127.0.0.1 > > > If someone happens to be poking around in /etc/hosts resolution > > code; I'd be interested in knowning why this didn't work... > > Is it supposed to? It is not a behaviour that seems useful in anyway. I believe the IP dot-notation indicates this is supposed to work. If you don't have an entire quad; you're supposed to fill in with zeros from the middle (not from the end as you might expect.) So, 127.1 => 127.0.0.1 127.10.1 => 127.0.10.1 127 => 127.0.0.0 - Dave Rivers -