Bug 591566 - /etc/hosts misconfigured localhost
/etc/hosts misconfigured localhost
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: setup (Show other bugs)
6.0
All Linux
low Severity medium
: rc
: ---
Assigned To: Ondrej Vasik
qe-baseos-daemons
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-12 10:55 EDT by John Gorman
Modified: 2010-05-12 13:50 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-05-12 13:50:20 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description John Gorman 2010-05-12 10:55:11 EDT
Description of problem:

/etc/hosts is misconfigured for localhost.

localhost is configured for both an IPV4 address and an IPV6 address.

This breaks networking for libmemcached-0.40 when running
"memcached -l 127.0.0.1" and "memdump --servers localhost".

Version-Release number of selected component (if applicable):

$ cat /etc/redhat-release 
Red Hat Enterprise Linux release 6.0 Beta (Santiago)

How reproducible:

Always.

Steps to Reproduce:
1. Install RHEL6 Beta
2. cat /etc/hosts
  
Actual results:

# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

Expected results:

# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost6 localhost6.localdomain6

Additional info:
Comment 2 RHEL Product and Program Management 2010-05-12 12:54:35 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.
Comment 3 Ondrej Vasik 2010-05-12 13:50:20 EDT
It is not misconfigured - see https://bugzilla.redhat.com/show_bug.cgi?id=486461 why it was done that way. Option "multi on" is in /etc/host.conf and programs should be able to recognize IPv4/IPv6 correctly. You should report those issues against libmemcached - as this is the application which could and should handle it.

Note You need to log in before you can comment on or make changes to this bug.