Question on /etc/hosts

Robert Myers rbmyersusa at
Sun Jul 4 15:08:33 UTC 2010

On Sun, Jul 4, 2010 at 11:00 AM, Doron Bar Zeev <doronbr770 at>wrote:

> On 07/04/2010 10:34 AM, Timothy Murphy wrote:
>> > Should the entry from the machine in question
>> > be given under
>> > or under its IP address on the local LAN?
>> >
>> should only have localhost stuff
> I'm don't think so.
> [doron at doronpc /]$ cat /etc/hosts
>    doronpc.doron.home    localhost.localdomain    localhost
which is three different ways of referring to localhost, all on the same
line for the loopback address,, which is exclusively for the use
of the local machine.

All other machines will have a line with a subnet address and one or more
aliases by which the machine that uses that address might be known: someotherbox someotherbox.localdomain

or similar.

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the users mailing list