Bug#284755: acknowledged by developer
Andreas Metzler
Andreas Metzler <ametzler@downhill.at.eu.org>, 284755@bugs.debian.org
Wed, 8 Dec 2004 17:56:05 +0100
On 2004-12-08 Ivar Zarans <ivar@init.ee> wrote:
[...]
> My apologies, it appears to be bug (or misunderstanding) in hostname and
> /etc/hosts file. At some moment we added "gw" as alias to 127.0.0.1.
> If /etc/hosts has local host name (here "gw") as one of aliases for
> 127.0.0.1, then hostname gets confused.
> Examples:
> /etc/hosts: 127.0.0.1 localhost.localdomain localhost gw
> $ hostname --fqdn
> $ localhost.localdomain
The format of /etc/hosts is
Ip-Address canonical-name alias1 alias2 ....
Therefore if you set your hostname to "gw" and hostname (or exim)
tries to find the associated FQDN it comes up with
localhost.localdomain.
> /etc/hosts: 127.0.0.1 localhost.localdomain localhost test
> $ hostname --fqdn
> $ gw.reisiekspert.ee
[...]
You could use
127.0.0.2 gw.reisiekspert.ee gw
or set the fully qualified domainname in /etc/hostname.
hth, cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"