Comment 26 for bug 94048

Revision history for this message
Florian Zeitz (florian-zeitz) wrote :

I get some "interresting" behaviour, when I do hostname and hostname -f:
hostname:
"myHostName"
hostname -f:
"hostname: Unknown host"

In my /etc/hosts I have:
"127.0.0.1 localhost
127.0.1.1 myHostName.localdomain.xx

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts"

It seems the system is not able to resolve the short hostname myHostName (a ping shows this behaviour too).
Adding myHostName to either the 127.0.0.1 or the 127.0.1.1 line makes it possible to resolve the hostname.