Comment 13 for bug 8980

Revision history for this message
Tim Frost (timfrost) wrote :

I have a system that started as breezy, and has been updated to dapper then edgy.
My hostname is 'marvin'.

By default, the first entry in /etc/hosts read
127.0.0.1 localhost.localdomain localhost marvin

A later entry reads
192.168.13.2 marvin.chile.gen.nz marvin

If I move the localhost entry to the end of the file, hostname -f returns 'marvin.chile.gen.nz' rather than 'localhost.localdomain'. This suggests that the order of entries in /etc/hosts is critical.