public class DnsLookup extends Object
| Constructor and Description |
|---|
DnsLookup() |
| 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
IOException - from infrastructure or no resolution.Copyright © 2022 LYRASIS. All rights reserved.