Ok so it looks like this isn't quite the same thing. FWIW, I can make sure the domain name and hostname appear properly in hostname / hostname -f by setting /etc/domainname as well as /etc/hostname, and in that case NM properly add a line for both in /etc/hosts:
10.10.10.16 demeter.cyphermox.net demeter # Added by NetworkManager However, this doesn't fix the issue that /etc/hosts gets changed, and bug 632896 still applies. There is a possible workaround in adding: [keyfile] hostname = <hostname> in /etc/NetworkManager/nm-system-settings.conf, but I wasn't able to have that work to stop /etc/hosts from being modified. ** Changed in: network-manager (Ubuntu) Status: New => Confirmed -- network-manager updates /etc/hosts, breaks hostname -f https://bugs.launchpad.net/bugs/645648 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs