write_host_file