From owner-freebsd-questions@FreeBSD.ORG Tue Nov 23 04:14:32 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 BB2A716A4CE for ; Tue, 23 Nov 2004 04:14:32 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE98643D31 for ; Tue, 23 Nov 2004 04:14:31 +0000 (GMT) (envelope-from oliverfuchs@onlinehome.de) Received: from [212.227.126.155] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CWS4U-0005Xw-00 for freebsd-questions@freebsd.org; Tue, 23 Nov 2004 05:14:30 +0100 Received: from [217.246.201.15] (helo=oliverfuchs.onlinehome.de) (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 1CWS4Q-0001nW-00 for freebsd-questions@freebsd.org; Tue, 23 Nov 2004 05:14:28 +0100 Received: from oliverfuchs.onlinehome.de (oliverfuchs.onlinehome.de [127.0.0.1])iAN4EK6A002031 for ; Tue, 23 Nov 2004 05:14:20 +0100 (CET) (envelope-from oliverfuchs1@oliverfuchs.onlinehome.de) Received: (from oliverfuchs1@localhost)iAN42ePq001799 for freebsd-questions@freebsd.org; Tue, 23 Nov 2004 05:02:40 +0100 (CET) (envelope-from oliverfuchs1) Date: Tue, 23 Nov 2004 05:02:40 +0100 From: Oliver Fuchs To: FreeBSD Questions Message-ID: <20041123040240.GB1452@oliverfuchs.onlinehome.de> Mail-Followup-To: FreeBSD Questions References: <20041122202506.GA2534@oliverfuchs.onlinehome.de> <20041122211044.GQ22677@lb.tenfour> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20041122211044.GQ22677@lb.tenfour> User-Agent: Mutt/1.4.1i X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:c2b2791553508cc938db2bcf18721a3c 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: Tue, 23 Nov 2004 04:14:33 -0000 On Mon, 22 Nov 2004, Dick Davies wrote: > * Oliver Fuchs [1107 21:07]: > > > # 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 > > This sets your hostname to point to the localhost address - is that what you > want? Normally, you set your hostname to a public IP (or at least a network > connected IP) > > i.e. > > ::1 localhost localhost.and.I > 127.0.0.1 localhost localhost.and.I > 1.2.3.4 I.and.I What I would like to know is the localhost entry. I always thought you absolutely need this entry in /etc/hosts and it is the first entry to be made? But I am not quiet sure about the way how to set the localhost name right in /etc/hosts. From what I have read I found three possibilities: ::1 I.and.I I localhost 127.0.0.1 I.and.I I localhost ::1 localhost localhost.and.I 127.0.0.1 localhost localhost.and.I ::1 localhost I.and.I 127.0.0.1 localhost I.and.I Which one is the correct way to define localhost? Oliver > > Jah love. > > > -- > Oh how awful. Did he at least die peacefully? ....To shreds you say, tsk tsk tsk. > Well, how's his wife holding up? ....To shreds, you say... - Prof. Farnsworth > Rasputin :: Jack of All Trades - Master of Nuns > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- ... don't touch the bang bang fruit