|
Changes by last author: You might run into this problem when installing something that refuses to start because "You have no domain name" (am-utils, for instance). "hostname --fqdn" will tell you what this program is complaining about.
Just forget about /etc/hostname and other distractions - it's the resolver's job to figure out your domain name. If you're on a LAN with a competent DNS server (notably, if you get your address through dhcp), just make sure your own host is *not* in /etc/hosts, and "hostname --fqdn" will go ask DNS. If you have a static address (like if you're setting up a home network), just add yourself, domain name and all, to /etc/hosts. If you're getting a dynamic IP but the DNS server isn't giving you the right thing - well, cry, I guess.
|