replace dots in hostnames