Red Hat Bugzilla – Bug 128459
Default /etc/hosts isn't in correct format (alias before canonical_hostname)
Last modified: 2007-11-30 17:07:03 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7)
Description of problem:
The default /etc/hosts file isn't in the correct format. According to
'man hosts', our own documentatation, GLS training material, and the
RFC, the format is as follows:
IP_address canonical_hostname aliases
from the man page:
"Aliases provide for name changes, alternate spellings, shorter host-
names, or generic hostnames (for example, localhost)."
Our current file is as follows:
127.0.0.1 localhost localhost.localdomain
I.e, the alias is before the canonical hostname.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2.Look at default /etc/hosts file
3.Compare to documentation
Actual Results: The file is in the wrong format - the alias is in the
first column, the canonical_hostname is in the second.
Expected Results: The file should be as documented.
*** This bug has been marked as a duplicate of 128458 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.