weird /etc/hosts behavior in redhat 6.1

From: Chad Glendenin (ccg@promethium.org)
Date: Sat Jan 08 2000 - 14:02:46 EST


I just finished installing my brand-new Redhat 6.1 on one of my Intel
boxes yesterday. Today I noticed that whenever I tried to connect to that
machine from another Unix machine on my network, it took several minutes
before it asked for my login information. Just out of curiosity, I tried
running tcpdmatch, but it locked up after warning about hostname aliases.
I configured my networking on the Redhat box using the old netcfg program.
It generated an /etc/hosts like this:

127.0.0.1 localhost.localdomain localhost
10.0.0.10 abcd.mydomain.com abcd
10.0.0.20 efgh.mydomain.com efgh

This is how I had it under Redhat 6.0, and it used to work fine. But
under Redhat 6.1, as soon as I swapped the phoney FQDNs with the
hostnames, like this:

127.0.0.1 localhost.localdomain localhost
10.0.0.10 abcd abcd.mydomain.com
10.0.0.20 efgh efgh.mydomain.com

it all worked fine. Could someone explain this? I don't think I've seen
this behavior before.

Thanks,
Chad



This archive was generated by hypermail 2b29 : Wed Apr 27 2005 - 03:30:03 EDT