Linux – Setting FQDN hostname and dot

fqdnhostnamelinux

I was wondering if I am editing a file such as /etc/hosts or /etc/sysconfig/network should I put a . at the end of the name. such as test.example.com.

Is there a difference? Would anything break either way.

Best Answer

According to man hosts:

Host names may contain only alphanumeric characters, minus signs ("-"), and periods ("."). They must begin with an alphabetic character and end with an alphanumeric character.