hostname --fqdn returns a wrong hostname due to an error in the documentation. In /etc/hosts, one should set <LOCALIP> to the real hostname, e.g. 192.168.0.1 myhost.mydomain myhost This isn't mentioned in the documentation, IIRC... Reproducible: Always Steps to Reproduce: 1. 2. 3.
*** Bug 40206 has been marked as a duplicate of this bug. ***
Could anyone point out to me what is wrong? Afaik, the documentation doesn't tell any lies: """ 127.0.0.1 localhost 192.168.0.5 jenny 192.168.0.6 benny 192.168.0.7 tux """
I don't know... With 192.168.0.1 myhost.mydomain myhost it works, with 192.168.0.1 myhost it doesn't. Cf. my other bugs regarding this issue.
Okay, I've updated the handbook to deal with this. It now reads: """ 127.0.0.1 localhost 192.168.0.5 jenny.homenetwork jenny 192.168.0.6 benny.homenetwork benny 192.168.0.7 tux.homenetwork tux """ Is this sufficient?
I think so, yes! However, my other bug regarding the "myhostname.(none)" display in /etc/issue is still not resolved by this. :)
Well that's a different bug :)