Jim Pryor wrote:
On Wed, Jan 20, 2010 at 07:53:10AM -0500, Baho Utot wrote:
On Friday 08 January 2010 03:54:23 Allan McRae wrote:
Ionut Biru wrote:
Yep, my /etc/hosts file was definitely changed:
#
# /etc/hosts: static lookup table for host names
#
127.0.0.1 localhost.localdomain localhost
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 arch
127.0.0.1 localhost.localdomain localhost
I was having trouble with networking several years ago and had a /etc/host
like yours. I posted to usenet and the network gurus there promptly busted me
for that layout.
They told me to do this instead:
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost
127.0.0.2 arch.<yourdomain> arch
They claim that the above conforms to the RFC's and reusing the 127.0.0.1
address can confuse some apps.
I have been using the above and it has always worked, no busted apps.
This also seems to work for me, at least the extra aliases at the end of
the line are respected:
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost arch
Yes taht is a good way also but I like to keep all the aliases on there
own line, that way I can assign a domain to the host.