Modifier and Type | Field and Description |
---|---|
private static Method |
GET_DEFAULT_HOST_METHOD |
private static boolean |
HAS_NEW_DNS_GET_DEFAULT_HOST_API |
Modifier | Constructor and Description |
---|---|
private |
DNS() |
Modifier and Type | Method and Description |
---|---|
static String |
getDefaultHost(String strInterface,
String nameserver)
Wrapper around DNS.getDefaultHost(String, String), calling
DNS.getDefaultHost(String, String, boolean) when available.
|
private static boolean HAS_NEW_DNS_GET_DEFAULT_HOST_API
private static Method GET_DEFAULT_HOST_METHOD
private DNS()
public static String getDefaultHost(String strInterface, String nameserver) throws UnknownHostException
strInterface
- The network interface to query.nameserver
- The DNS host name.UnknownHostException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.