Package org.opennms.netmgt.utils
Class DnsUtils
- java.lang.Object
-
- org.opennms.netmgt.utils.DnsUtils
-
public abstract class DnsUtils extends java.lang.Object
- Author:
- Seth
-
-
Constructor Summary
Constructors Constructor Description DnsUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.net.InetAddress
resolveHostname(java.lang.String hostname)
static java.net.InetAddress
resolveHostname(java.lang.String hostname, boolean preferInet6Address)
static java.net.InetAddress
resolveHostname(java.lang.String hostname, boolean preferInet6Address, boolean throwException)
This function is used inside XSLT documents, do a string search before refactoring.
-
-
-
Method Detail
-
resolveHostname
public static java.net.InetAddress resolveHostname(java.lang.String hostname) throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
-
resolveHostname
public static java.net.InetAddress resolveHostname(java.lang.String hostname, boolean preferInet6Address) throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
-
resolveHostname
public static java.net.InetAddress resolveHostname(java.lang.String hostname, boolean preferInet6Address, boolean throwException) throws java.net.UnknownHostException
This function is used inside XSLT documents, do a string search before refactoring.- Throws:
java.net.UnknownHostException
-
-