Bug 122732 - Modifying hostname doesn't update /etc/hosts
Summary: Modifying hostname doesn't update /etc/hosts
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: redhat-config-network
Version: 3.0
Hardware: i686
OS: Linux
medium
low
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 86560
TreeView+ depends on / blocked
 
Reported: 2004-05-07 15:32 UTC by Louis Aslett
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-09-02 03:15:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2004:318 0 normal SHIPPED_LIVE Updated redhat-config-network packages 2004-09-01 04:00:00 UTC

Description Louis Aslett 2004-05-07 15:32:24 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET 
CLR 1.1.4322)

Description of problem:
When you go to the DNS tab and modify the hostname field, then go 
File->Save and restart network services the /etc/hosts file is not 
updated to reflect the fact that 127.0.0.1 is the new hostname.


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

How reproducible:
Always

Steps to Reproduce:
1. During install hostname set to "hostone"
2. After install use GUI to set hostname to "hosttwo"

Actual Results:  /etc/hosts still says "hostone" is the localhost 
instead of "hosttwo"

Expected Results:  /etc/hosts should say "hosttwo" is the localhost, 
for 127.0.0.1

Additional info:

Comment 1 Harald Hoyer 2004-05-10 07:43:23 UTC
right, /etc/hosts should be modified... but /etc/sysconfig/network is
modified. In real networks the IP address should not be 127.0.0.1
anyway...

Comment 2 Marie Lund 2004-06-16 13:36:53 UTC
In Fedora Core 2, both /etc/sysconfig/network and /etc/hosts are not
updated by system-config-network when trying to change hostname.

Comment 3 Jay Turner 2004-09-02 03:15:47 UTC
An errata 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 the 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-2004-318.html



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