On Ubuntu 10.04, should /etc/hostname contain the server's fully-qualified domain name?
Linux – On Ubuntu 10.04, should /etc/hostname contain the server’s FQDN
hostnamelinuxUbuntu
Related Topic
- Hostname vs FQDN – Difference Between Hostname and Fully Qualified Domain Name
- Setting the Hostname: FQDN or Short Name?
- Hostname Appears as 127.0.1.1 Instead of 127.0.0.1 in /etc/hosts
- Apache – Fixing Undefined Config Variable on Ubuntu
- Use an FQDN instead of the server’s IP address
- OpenSUSE – Should /etc/HOSTNAME Be Short Name or FQDN?
Best Answer
No, just the hostname portion. According to Ubuntu's man pages,
/etc/hostname
should contain only the hostname portion of the hostname, not the FQDN: