Question
How to set FQDN in Ubuntu
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×I think that this is not the Ubuntu recommended way to set the FQDN. From http://manpages.ubuntu.com/manpages/trusty/man1/hostname.1.html:
The recommended method of setting the FQDN is to make the hostname be an alias for the
fully qualified name using /etc/hosts, DNS, or NIS. For example, if the hostname was
“ursula”, one might have a line in /etc/hosts which reads
127.0.1.1 ursula.example.com ursula