change hostname to ip