I think the two issues here should be disentangled. In particular I think the problem with NetworkManager should be split out and tracked as a separate bug.
To be clear the problem with NetworkManager is that it doesn't take the complete set of actions necessary so that "hostname -f" and gethostbyname(2) return the correct domainname. In NetworkManager cases the /etc/network/interfaces is just:
auto lo
iface lo inet loopback
Everything else is handled by NetworkManager. NetworkManager correctly constructs /etc/resolv.conf. It needs to do something else: either rewrite /etc/hosts or something.
Users should NOT be required to edit /etc/hosts unless they have special requirements when using NetworkManager. All the info comes from DHCP.
I think the two issues here should be disentangled. In particular I think the problem with NetworkManager should be split out and tracked as a separate bug.
To be clear the problem with NetworkManager is that it doesn't take the complete set of actions necessary so that "hostname -f" and gethostbyname(2) return the correct domainname. In NetworkManager cases the /etc/network/ interfaces is just:
auto lo
iface lo inet loopback
Everything else is handled by NetworkManager. NetworkManager correctly constructs /etc/resolv.conf. It needs to do something else: either rewrite /etc/hosts or something.
Users should NOT be required to edit /etc/hosts unless they have special requirements when using NetworkManager. All the info comes from DHCP.