Comment 9 for bug 8980

Revision history for this message
Thomas Hood (jdthood) wrote :

> e.g, standard Debian:
> 127.0.0.1 nanook localhost
>
> vs Ubuntu:
> 127.0.0.1 localhost.localdomain localhost nanook

The latter is also how Debian sarge sets up /etc/hosts.

This won't be changed for sarge.

I believe that a better solution is

127.0.0.1 localhost.localdomain localhost
127.0.1.1 nanook.nanooksdomain nanook

so that localhost.localdomain is the canonical hostname for
localhost.localdomain and localhost
and nanook.nanooksdomain is the canonical hostname for nanook.nanooksdomain and
nanook.
Obviously, if the machine has a permanent network adapter with a static IP
address then
the latter IP address should be used instead of 127.0.1.1.

In any case, I hope that Debian and Ubuntu adopt the same policy on this issue.