One reason for not doing that is that the FAQ is for RedHat, not for Ubuntu.
Another reason for not doing that is that it fails to specify unambiguously
what the IP address of "myhostname" is. If the resolver decides that
127.0.0.1 is the IP address for myhostname (because that line happens
to come first?) then a reverse lookup will yield the result that "localhost"
is the canonical hostname for "myhostname".
goto wrote: localdomain localhost myhostname www.faqs. org/docs/ securing/ chap9sec95. html
> Erm, why not just have:
>
> 127.0.0.1 localhost.
> 10.20.21.22 myhostname
>
> like at http://
One reason for not doing that is that the FAQ is for RedHat, not for Ubuntu.
Another reason for not doing that is that it fails to specify unambiguously
what the IP address of "myhostname" is. If the resolver decides that
127.0.0.1 is the IP address for myhostname (because that line happens
to come first?) then a reverse lookup will yield the result that "localhost"
is the canonical hostname for "myhostname".
People should also read hosts(5).