Why does NetworkManager change my hostname to "linux.local"?
My computer's hostname is 'coral'. However, whenever I acquire a Wifi connection and DHCP lease with NetworkManager, the hostname gets reset to "linux.local" and I have to reset it manually. Why?
$ hostname
coral
$ ## re-acquire DHCP lease using NetworkManager
$ hostname
linux.local
$ cat /etc/hostname
coral
$ cat /etc/hosts
127.0.0.1 linux.local localhost.
127.0.1.1 coral
# 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
ff02::3 ip6-allhosts
$ sudo hostname coral
$ hostname
coral
$
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask johnnynyquist for more information if necessary.