[Bug 632896] Re: Leaves unreachable entries in /etc/hosts when stopping network

Launchpad Bug Tracker 632896 at bugs.launchpad.net
Tue Oct 19 21:20:11 BST 2010


This bug was fixed in the package network-manager -
0.8.1+git.20100810t184654.ab580f4-0ubuntu3

---------------
network-manager (0.8.1+git.20100810t184654.ab580f4-0ubuntu3) natty; urgency=low

  [ Anders Kaseorg ]
  * Remove stale entries for the system hostname from /etc/hosts when
    bringing down interfaces.  (LP: #632896)
    - Add debian/patches/lp632896_cleanup_etc_hosts.patch

  [ Mathieu Trudel-Lapierre ]
  * Don't overwrite aliases in /etc/hosts (LP: #659872)
    - add debian/patches/lp659872_dont_overwite_hosts_aliases_ee9ce60.patch
    - update debian/patches/series
 -- Mathieu Trudel-Lapierre <mathieu-tl at ubuntu.com>   Tue, 19 Oct 2010 16:04:00 -0400

** Changed in: network-manager (Ubuntu)
       Status: In Progress => Fix Released

-- 
Leaves unreachable entries in /etc/hosts when stopping network
https://bugs.launchpad.net/bugs/632896
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.

Status in NetworkManager: Fix Released
Status in “network-manager” package in Ubuntu: Fix Released
Status in Fedora: Unknown

Bug description:
Binary package hint: network-manager

NetworkManager modifies /etc/hosts to look like this:

18.111.118.108	balanced-tree	# Added by NetworkManager
127.0.0.1	localhost.localdomain	localhost
::1	balanced-tree	localhost6.localdomain6	localhost6
127.0.1.1	balanced-tree

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

But when stopping the network, it does not undo these modifications.  This leaves the system hostname pointing at a non-routable address, which breaks various applications.





More information about the Ubuntu-sponsors mailing list