public interface DnsResolver
| Modifier and Type | Method and Description |
|---|---|
static DnsResolver |
jvmDefault()
Java VM default resolver.
|
InetAddress[] |
resolve(String host)
Returns the IP address for the specified host name.
|
static DnsResolver |
unresolved()
Non-resolving
DnsResolver. |
static DnsResolver jvmDefault()
static DnsResolver unresolved()
DnsResolver. Returns an empty InetAddress to indicate an unresolved address.InetSocketAddress.createUnresolved(String, int)InetAddress[] resolve(String host) throws UnknownHostException
host - the hostname, must not be empty or null.adresses. An empty array indicates that DNS resolution is not supported
by this DnsResolver and should happen by netty, see
InetSocketAddress.createUnresolved(String, int).UnknownHostException - if the given host is not recognized or the associated IP address cannot be used to build an
InetAddress instanceCopyright © 2021 lettuce.io. All rights reserved.