I configured my hostname according to Gentoo Handbool (in /etc/hostname), but it was keep changing nevertheless to IP address instead. Reproducible: Always Steps to Reproduce: 1. Set hostname in /etc/hostname 2. Wait for Wi-Fi network connection 3. Check output for `hostname` Actual Results: `hostname` != `cat /etc/hostname` Expected Results: `hostname` == `cat /etc/hostname` Fixed using following configuration: ``` $ cat /etc/NetworkManager/NetworkManager.conf [main] hostname-mode=none ```
I think that's just how NetworkManager works by default. You should complain upstream if you don't like it.