code: static List<Endpoint> of(final List<URI> uris, final DnsResolver dnsResolver) {
      final ImmutableList.Builder<Endpoint> endpoints = ImmutableList.builder();
      for (final URI uri : uris) {
        try {
          for (final InetAddress ip : dnsResolver.resolve(uri.getHost())) {
            endpoints.add(new DefaultEndpoint(uri, ip));
          }
        } catch (UnknownHostException e) {
          log.warn("Unable to resolve hostname {} into IP address", uri.getHost(), e);
        }
      }
  
      return endpoints.build();
    }
docs: Returns a list of {@link Endpoint}.
  
  @param uris        A list of URIs.
  @param dnsResolver An instance of {@link DnsResolver}
  
  @return A list of Endpoints.