public class DnsLookup extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
forward(String hostname)
Resolve a host name to an IPv4 address.
|
static String |
reverseDns(String hostIp)
Resolve an IP address to a host name.
|
public static String reverseDns(String hostIp) throws IOException
hostIp - dotted decimal IPv4 address.IOException - from infrastructure.public static String forward(String hostname) throws IOException
hostname - hostname to resolve to IPIOException - from infrastructure or no resolution.Copyright © 2019 DuraSpace. All rights reserved.