I just applied this patch to a system to fix this problem and it does not appear to be fixed. NetworkManager still does not remove the host entry when the network changes.
Specifically:
My user has a host named zenith. His own hostname is in his hosts file.
143.232.109.41 zenith.arc.nasa.gov zenith
When he switches to wireless, network manager adds an entry:
198.123.51.105 zenith.arc.nasa.gov zenith # Added by NetworkManager
When he then plugs back into the wired network, NetworkManager fails to remove this address. This makes things break (specifically flexlm), since his hostname now resolves to an incorrect ip.
I just applied this patch to a system to fix this problem and it does not appear to be fixed. NetworkManager still does not remove the host entry when the network changes.
Specifically:
My user has a host named zenith. His own hostname is in his hosts file.
143.232.109.41 zenith.arc.nasa.gov zenith
When he switches to wireless, network manager adds an entry:
198.123.51.105 zenith.arc.nasa.gov zenith # Added by NetworkManager
When he then plugs back into the wired network, NetworkManager fails to remove this address. This makes things break (specifically flexlm), since his hostname now resolves to an incorrect ip.
[root@zenith ~]# uname -r 6-47.fc13. x86_64 gnome-0. 8.1-9.git201008 31.fc13. x86_64 glib-0. 8.1-9.git201008 31.fc13. x86_64 0.8.1-9. git20100831. fc13.x86_ 64
2.6.34.
[root@zenith ~]# rpm -qa 'NetworkManager*'
NetworkManager-
NetworkManager-
NetworkManager-