Question on /etc/hosts
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users