Write fqdn to hosts file