[CentOS] /etc/hosts - hostname alias for 127.0.0.1

Kai Schaetzl maillists at conactive.com
Mon Mar 7 20:31:17 UTC 2011


Sean Carolan wrote on Mon, 7 Mar 2011 10:49:18 -0600:

> Indeed.  It does seem like a bad idea to have a single host using
> loopback, while the rest of the network refers to it by it's real IP
> address.

It doesn't matter for the other hosts, the sender ip address will always 
be the outgoing interface address and not the loopback. It only matters if 
you connect on the local host and have to troubleshoot a connectivity 
issue and confuse something ... Usually, it's rather an advantage because 
in cases where you would just get "localhost" you now get some meaningful 
name. It really depends. However, I have it set this way on all my hosts 
for ten years or more and haven't found a single case where this was a 
problem.

Kai





More information about the CentOS mailing list