Bug 668830 - NetworkManager adds hostname to /etc/hosts pointing to localhost
NetworkManager adds hostname to /etc/hosts pointing to localhost
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: NetworkManager (Show other bugs)
6.0
All Linux
low Severity high
: rc
: ---
Assigned To: Dan Williams
desktop-bugs@redhat.com
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-11 13:14 EST by Colin Simpson
Modified: 2011-09-23 07:57 EDT (History)
5 users (show)

See Also:
Fixed In Version: NetworkManager-0.8.1-7.el6
Doc Type: Bug Fix
Doc Text:
NetworkManager used to update /etc/hosts file, which could cause problems in some configurations. This is now fixed and NetworkManager does not modify /etc/hosts, leaving it for the administrator to set up.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-05-19 10:25:09 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Colin Simpson 2011-01-11 13:14:04 EST
Description of problem:

IPA does not completely support IPv6, and if using NetworkManager the FQDN is
added to /etc/hosts for both IPv4 & 6, pointing to localhost.

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


How reproducible:
Always

Steps to Reproduce:
1. service NetworkManager start
2.
3.
  
Actual results:

In /etc/hosts
127.0.0.1  rh6client.example.com  f13client  localhost.localdomain  localhost
::1  rh6client.example.com  f13client  localhost6.localdomain  localhost6

Expected results:
127.0.0.1  localhost.localdomain  localhost
::1  localhost6.localdomain  localhost6

Additional info:

Copied from F14 bug as this same bug occurs in RHEL 6.

https://bugzilla.redhat.com/show_bug.cgi?id=648725

also

https://bugzilla.redhat.com/show_bug.cgi?id=635440


This breaks Kerberos/GSSAPI apps.


Expected results:


Additional info:
Comment 8 Misha H. Ali 2011-04-20 04:25:29 EDT
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
NetworkManager would insert warning messages in the location /var/log/messages due to the hostname operation. This is now fixed to ensure no unnecessary warnings display during the hostname operation.
Comment 9 Jirka Klimes 2011-04-20 04:41:43 EDT
This note is not exact. I suggest a correction.
Comment 10 Jirka Klimes 2011-04-20 04:43:16 EDT
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-NetworkManager would insert warning messages in the location /var/log/messages due to the hostname operation. This is now fixed to ensure no unnecessary warnings display during the hostname operation.+NetworkManager used to update /etc/hosts file, which could cause problems in some configurations. This is now fixed and NetworkManager doesn't touch /etc/hosts, leaving it for the administrator to set it up properly.
Comment 11 Misha H. Ali 2011-04-20 04:54:30 EDT
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-NetworkManager used to update /etc/hosts file, which could cause problems in some configurations. This is now fixed and NetworkManager doesn't touch /etc/hosts, leaving it for the administrator to set it up properly.+NetworkManager used to update /etc/hosts file, which could cause problems in some configurations. This is now fixed and NetworkManager does not modify /etc/hosts, leaving it for the administrator to set up.
Comment 12 Misha H. Ali 2011-04-20 04:55:21 EDT
Thanks for technical corrections, Jirka. I've made some minor changes to your edits.
Comment 13 errata-xmlrpc 2011-05-19 10:25:09 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0769.html

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