Refactor resolution of network gateway names for more efficiency (#39836)
Refactor resolution of network gateway names for more efficiency (#39836)

* Refactor resolution of network gateway names for more efficiency

* Fix lint

* Fix DNS record type switch
istio/istio,istio/istio,istio/istio,istio/istio,istio/istio