← Back to team overview

registry team mailing list archive

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

 

Certainly.

1. Original copy of /etc/hosts before starting network-manager:

"""
127.0.0.1	localhost
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
"""

2. /etc/hosts after starting network-manager, but before connecting to a
network:

"""
127.0.0.1	balanced-tree	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
"""

3. /etc/hosts after connecting to a network:

"""
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
"""

4. /etc/hosts after disconnecting from the network:
(same as #3, where “18.111.118.108 balanced-tree” is now unreachable)

anders@balanced-tree:~$ ping `hostname`
connect: Network is unreachable

5. /etc/hosts after stopping network-manager:
(same as #3 and #4)

-- 
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 Registry
Administrators, which is the registrant for Fedora.



References