Deduce hostnames for both RFC3164 (short name) and RFC5424 (FQDN)