Question on /etc/hosts

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


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

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

192.168.1.13 someotherbox someotherbox.localdomain

or similar.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20100704/df59b9e8/attachment.html 


More information about the users mailing list