-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Milestone
Description
Describe what you would like to know or do
I want to specify a custome DNS resolver, like apache http client
/**
* Users may implement this interface to override the normal DNS lookup offered
* by the OS.
*
* @since 4.2
*/
public interface DnsResolver {
/**
* 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.
*
* @see InetAddress
*
* @param host
* The host name to be resolved by this resolver.
* @return The IP address associated to the given host name, or null if the
* host name is not known by the implementation class.
*/
InetAddress[] resolve(String host) throws UnknownHostException;
}