From owner-freebsd-questions Mon Nov 30 08:38:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA13396 for freebsd-questions-outgoing; Mon, 30 Nov 1998 08:38:54 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA13376 for ; Mon, 30 Nov 1998 08:38:50 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.054 #3) id 0zkS0C-0004AJ-00; Mon, 30 Nov 1998 12:00:28 +0000 Date: Mon, 30 Nov 1998 12:00:28 +0000 From: Ben Smithurst To: Malartre Cc: questions@FreeBSD.ORG Subject: Re: Weird problem with "talk" about an "Unknown host". Both user are logged on the same machine! Message-ID: <19981130120028.A15989@scientia.demon.co.uk> References: <3660A1F0.A1C246F4@aei.ca> <19981129124434.A9959@rucus.ru.ac.za> <36623D06.54B454BC@aei.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <36623D06.54B454BC@aei.ca> User-Agent: Mutt/0.94.17i (FreeBSD/3.0-CURRENT) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Malartre wrote: > And then did that: /etc/hosts > > # 127.0.0.1 localhost localhost.my.domain myname.my.domain > 127.0.0.1 f00f.org It might be a good idea to have something like 127.0.0.1 localhost f00f.org Some things may rely on being able to resolve "localhost", and others may even want the first name for 127.0.0.1 to be "localhost". f00f.org will still resolve to 127.0.0.1 using the above line. In my /etc/hosts I have: 212.228.14.13 scientia.demon.co.uk scientia 127.0.0.1 localhost 158.152.1.222 demon-du.demon.co.uk demon-du So I can access my machine as either scientia.demon.co.uk (its real name), scientia, or localhost. The demon-du line is just to prevent dialups when the daily script does "netstat -i", and tries to resolve 158.152.1.222 (the remote IP for tun0). > PS: I did a kill -HUP 1 before testing the new config I'm not sure why, but it won't hurt anything :-) -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message