write hosts file