update gateway hostnames