From owner-freebsd-questions@FreeBSD.ORG Mon Nov 22 23:50:00 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67F1E16A4CE for ; Mon, 22 Nov 2004 23:50:00 +0000 (GMT) Received: from sccimhc92.asp.att.net (sccimhc92.asp.att.net [63.240.76.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08A0243D5A for ; Mon, 22 Nov 2004 23:50:00 +0000 (GMT) (envelope-from freebsd@nbritton.org) Received: from [192.168.1.10] (12-223-129-46.client.insightbb.com[12.223.129.46]) by sccimhc92.asp.att.net (sccimhc92) with ESMTP id <20041122234958i92002b2vje>; Mon, 22 Nov 2004 23:49:59 +0000 Message-ID: <41A27B24.7040700@nbritton.org> Date: Mon, 22 Nov 2004 17:49:56 -0600 From: Nikolas Britton User-Agent: Mozilla Thunderbird 0.9 (X11/20041119) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Oliver Fuchs References: <20041122202506.GA2534@oliverfuchs.onlinehome.de> In-Reply-To: <20041122202506.GA2534@oliverfuchs.onlinehome.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: unsure about /etc/hosts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2004 23:50:00 -0000 Oliver Fuchs wrote: >Hi, > >I am at the moment unsure about the localhost entries in my /etc/hosts. From >/usr/src/etc/hosts I have found this one: > ># Host Database ># ># This file should contain the addresses and aliases for local hosts that ># share this file. Replace 'my.domain' below with the domainname of your ># machine. ># ># >::1 localhost localhost.my.domain >127.0.0.1 localhost localhost.my.domain > >So my hostname is I.and.I so the /etc/hosts entry must be: >::1 localhost localhost.and.I >127.0.0.1 localhost localhost.and.I > >Now regarding some programs (e.g. mutt) this option is not able to deliver >mail locally instead putting it in /var/spool/mqueue or >/var/spool/clientmqueue. > >If I use this: >::1 localhost I.and.I >127.0.0.1 localhost I.and.I > >I have no problems with sending the mail locally. So I am a little bit >confused about what is the correct way to define the localhost in >/etc/hosts. > >Thanx in advance > >Oliver > > I'd like to know this too as I have seen meny diffrent ways too layout the hosts file. here what I got in mine: ::1 localhost localhost.intranet 127.0.0.1 localhost localhost.intranet ::1 spectra spectra.intranet 127.0.0.1 spectra spectra.intranet but this same hosts file also says to do it like this: # Imaginary network. #10.0.0.2 myname.my.domain myname #10.0.0.3 myfriend.my.domain myfriend So which way do you list them. And say spectra.intranet (me) am I suppost to list it as localhost or the real ip address?