Comment 32 for bug 8980

Revision history for this message
Colin Watson (cjwatson) wrote :

Ah, I see what the problem is! network-manager overwrites /etc/hosts with a bogus version that:

  * sticks the short hostname into 127.0.0.1, when it was already in 127.0.1.1 previously
  * gratuitously adds localhost.localdomain

The result of this is indeed that 'hostname -f' stops returning the FQDN.

I haven't been able to trigger this behaviour on demand, but looking into network-manager it does still appear to be present. Alexander, could you sync up the update_etc_hosts function in NetworkManager with the behaviour described by Thomas Hood in the comment before this one, implemented by netcfg, so that we can have a single standard policy for /etc/hosts across the distribution?