@InterfaceAudience.Private public final class DNS extends Object
| 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.
|
public static String getDefaultHost(String strInterface, String nameserver) throws UnknownHostException
strInterface - The network interface to query.nameserver - The DNS host name.UnknownHostExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.