Re: Question on /etc/hosts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jul 4, 2010 at 11:00 AM, Doron Bar Zeev <doronbr770@xxxxxxxxx> 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@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.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux