Comment 0 for bug 729091

Revision history for this message
Max Bowsher (maxb) wrote :

Binary package hint: network-manager

0.8.1+git.20100810t184654.ab580f4-0ubuntu2.1 breaks my /etc/hosts by attaching my local host's hostname to localhost

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.localdomain localhost
::1 altimeter localhost6.localdomain6 localhost6 ip6-localhost ip6-loopback
192.168.2.180 altimeter.mxtelecom.com 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.mxtelecom.com" to "altimeter".