Prefer public dns for layer connections.