Bug 128459

Summary: Default /etc/hosts isn't in correct format (alias before canonical_hostname)
Product: Red Hat Enterprise Linux 3 Reporter: Mike MacCana <mmaccana>
Component: anacondaAssignee: Jeremy Katz <katzj>
Status: CLOSED DUPLICATE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: nobody+pnasrat
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 19:04:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mike MacCana 2004-07-23 06:22:06 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7)
Gecko/20040706 Firefox/0.9

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):


How reproducible:
Always

Steps to Reproduce:
1.Install RHEL
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.

Additional info:

Comment 1 Mike MacCana 2004-07-23 06:22:48 UTC

*** This bug has been marked as a duplicate of 128458 ***

Comment 2 Red Hat Bugzilla 2006-02-21 19:04:38 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.