public final class DNSUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DNSUtils.RecordType |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
exists(String hostName)
Check for existing host-name.
|
static boolean |
isMatchingIpAddress(String hostName,
String ipAddr)
Checks, if the given hostname matches the given IP-address-string.
|
static List<String> |
lookup(String hostName,
DNSUtils.RecordType record)
Get domain-records for hostname.
|
static List<String> |
lookupAll(String hostName)
Get all domain-records for hostname.
|
public static List<String> lookup(String hostName, DNSUtils.RecordType record)
Adapted from http://mowyourlawn.com/files/RecordType.java.txt.
public static List<String> lookupAll(String hostName)
public static boolean isMatchingIpAddress(String hostName, String ipAddr)
public static boolean exists(String hostName)
Created by ThK-Systems. License: LGPL