replace hostname with ipaddresses