write hosts data to hosts_2 file