fix possibly unqualified or truncated hostname, given the fqdn of the host that we got the information from.