If no hostname is set default to fqdn