public interface DnsResolver
DnsResolver is used for DNS resolving to establish socket connection| Modifier and Type | Field and Description |
|---|---|
static DnsResolver |
SYSTEM
The system wide DNS resolver
|
| Modifier and Type | Method and Description |
|---|---|
List<InetAddress> |
resolve(String hostname)
Resolve the specified hostname as IP address
|
static final DnsResolver SYSTEM
List<InetAddress> resolve(String hostname) throws UnknownHostException
hostname - The hostname to be resolvedUnknownHostException - if the hostname could not be resolvedCopyright © 2015–2017 SDKLite. All rights reserved.