code: public static List<String> getServiceUrlsFromDNS(
              EmbeddedServer embeddedServer,
              ApplicationConfiguration.InstanceConfiguration instanceConfiguration,
              DiscoveryClientConfiguration discoveryClientConfiguration) {
  
          return getServiceUrlsFromDNS(
                  instanceConfiguration,
                  discoveryClientConfiguration,
                  instanceConfiguration.getZone().orElse(DEFAULT_ZONE),
                  true,
                  new InstanceInfoBasedUrlRandomizer(embeddedServer)
          );
      }
docs: Get the list of all eureka service urls from DNS for the eureka client to
  talk to. The client picks up the service url from its zone and then fails over to
  other zones randomly. If there are multiple servers in the same zone, the client once
  again picks one randomly. This way the traffic will be distributed in the case of failures.
  
  @param embeddedServer the embedded server
  @param instanceConfiguration The instance configuration
  @param discoveryClientConfiguration The discovery client configuration
  
  @return The list of all eureka service urls for the eureka client to talk to.