Bug 679000
| Summary: | /etc/hosts file shoulde be updated when changing hostname by system-config-network | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Hu Xiang <cnhuxiang> |
| Component: | system-config-network | Assignee: | Harald Hoyer <harald> |
| Status: | CLOSED ERRATA | QA Contact: | Branislav Blaškovič <bblaskov> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.5 | CC: | bblaskov, cnhuxiang, harald, lmiksik, psklenar |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Previously, when changing host names using the system-config-network service, the service did not remove the old host name from the /etc/hosts/ directory and did not add the new host name. This update applies a patch to fix this bug so that /etc/hosts now contains the updated host name as expected.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-09-16 00:17:52 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1049888 | ||
|
Description
Hu Xiang
2011-02-21 09:04:13 UTC
If I change hostname, /etc/hosts line with localhost is just appending with new hostname. No matter if there is this hostname already. After some hostname playing it can look like this: 127.0.0.1 localhost.localdomain localhost rhel5 rhel5changed rhel5 Is this desired? I would prefer the way: > remove old hostname, > add new hostname (In reply to Branislav Blaškovič from comment #4) > If I change hostname, /etc/hosts line with localhost is just appending with > new hostname. No matter if there is this hostname already. After some > hostname playing it can look like this: > > 127.0.0.1 localhost.localdomain localhost rhel5 rhel5changed rhel5 > > Is this desired? > > I would prefer the way: > remove old hostname, > add new hostname yes. bug. will fix Thank you. Switching to assigned. system-config-network-1.3.99.23-1.el5 Great, now it works without duplicates. Testing on system-config-network-1.3.99.23-1.el5 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1195.html |