public class DnsLookup
extends java.lang.Object
| Constructor and Description |
|---|
DnsLookup() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
forward(java.lang.String hostname)
Resolve a host name to an IPv4 address.
|
static java.lang.String |
reverseDns(java.lang.String hostIp)
Resolve an IP address to a host name.
|
public static java.lang.String reverseDns(java.lang.String hostIp)
throws java.io.IOException
hostIp - dotted decimal IPv4 address.java.io.IOException - from infrastructure.public static java.lang.String forward(java.lang.String hostname)
throws java.io.IOException
java.io.IOException - from infrastructure or no resolution.Copyright © 2013 DuraSpace. All Rights Reserved.