0.8.1+git.20100810t184654.ab580f4-0ubuntu2.1 breaks my /etc/hosts by attaching hostname to localhost
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: network-manager
---
Related SRU bug is bug 659872.
---
0.8.1+git.
It is my understanding that a machine's local host name should NOT be associated with the 127.0.0.1 or ::1 IP addresses, but rather some other address that the machine holds. The 127.0.0.1 / ::1 IP addresses should be identified as localhost / localhost6.
The recent maverick-proposed network manager has led to my machine's /etc/hosts being broken by NM, by introducing the short hostname of the machine as the first entry against 127.0.0.1 and ::1 -
127.0.0.1 altimeter localhost.
::1 altimeter localhost6.
192.168.2.180 altimeter.
Technical correctness aside, this caused my previously functioning Exim installation to start rejecting mail, because its determination of the machine's primary_hostname switched from "altimeter.
Weird, since the whole idea is to very much avoid messing with /etc/hosts; however, the first pass when switching between the two versions may have caused this.
Also note that your hostname shouldn't be against 127.0.0.1, it is set by the installer to 127.0.1.1.
If you set it back correctly, does NM keep modifying the entry?