replace hostname by fqdn