From owner-freebsd-stable Mon May 13 14:43:21 2002 Delivered-To: freebsd-stable@freebsd.org Received: from empty1.ekahuna.com (empty1.ekahuna.com [198.144.200.196]) by hub.freebsd.org (Postfix) with ESMTP id 6A8D637B406 for ; Mon, 13 May 2002 14:43:15 -0700 (PDT) Received: from pc-02 (pc02.ekahuna.com [198.144.200.197]) by empty1.ekahuna.com (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id com for ; Mon, 13 May 2002 14:43:15 -0700 From: "Philip J. Koenig" Organization: The Electric Kahuna Organization To: stable@FreeBSD.ORG Date: Mon, 13 May 2002 14:43:14 -0700 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: hosts file question Reply-To: pjklist@ekahuna.com In-reply-to: X-mailer: Pegasus Mail for Win32 (v3.12c) Message-ID: <20020513214315231.AAA1067@empty1.ekahuna.com@pc02.ekahuna.com> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Date: Sun, 12 May 2002 15:00:46 -0700 > From: Gregory Neil Shapiro > > mikes> I found a new way to shoot myself in the foot: > mikes> I assume that the entry in /etc/hosts of the form > > mikes> ::1 localhost.my.domain localhost > > mikes> is the IPv6 version of localhost. If this is not correctly configured > mikes> to the machine's local domain then the version of sendmail that comes > mikes> with 4.6-PRERELEASE uses this name as the host name and, of course, > mikes> nothing can be received or sent. > > Actually, only: > > ::1 localhost > > is required (or a running DNS server that can resolve localhost). I'd like to clarify this. In upgrading a 4.3-Stable box yesterday, I noted that there seems to be conflicting info in the hosts file about how to format the localhost entry. Stranger yet, the syntax for regular entries seems to be reversed from the localhost syntax. (ie the 'friendly name for localhost comes first in the template, last for regular hostnames?) This is how things were in 4.1: # 127.0.0.1 localhost.my.domain localhost This is the template from 4.3: # ::1 localhost localhost.my.domain myname.my.domain # 127.0.0.1 localhost localhost.my.domain myname.my.domain This is the template from 4.5/4.6-PR: # ::1 localhost localhost.my.domain # 127.0.0.1 localhost localhost.my.domain # # Imaginary network. #10.0.0.2 myname.my.domain myname #10.0.0.3 myfriend.my.domain myfriend -- Philip J. Koenig pjklist@ekahuna.com Electric Kahuna Systems -- Computers & Communications for the New Millenium To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message