Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 1998 12:00:28 +0000
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Malartre <malartre@aei.ca>
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>
In-Reply-To: <36623D06.54B454BC@aei.ca>
References:  <3660A1F0.A1C246F4@aei.ca> <19981129124434.A9959@rucus.ru.ac.za> <36623D06.54B454BC@aei.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981130120028.A15989>