Interface DnsResolver

All Known Implementing Classes:
InMemoryDnsResolver, SystemDefaultDnsResolver

@Contract(threading=STATELESS) public interface DnsResolver
Users may implement this interface to override the normal DNS lookup offered by the OS.
Since:
4.2
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the IP address for the specified host name, or null if the given host is not recognized or the associated IP address cannot be used to build an InetAddress instance.
    resolve(String host, int port)
    Returns a list of InetSocketAddress for the given host with the given port.
    Gets the fully qualified domain name for given host name.