getCanonicalHostName is returning unqualified name – CentOS
I've got a few host that return an unqualified name for InetAddress.getLocalHost().getCanonicalHostName()(Documented here) e.g. "foo" instead of "foo.example.com". What could cause this and how could I fix it? Running "hostname -f" on the command line returns the FQDN and nslookup…