public class IterativeDnsClient
extends org.minidns.AbstractDnsClient
| Modifier and Type | Field and Description |
|---|---|
protected static java.net.Inet4Address[] |
IPV4_ROOT_SERVERS |
protected static java.net.Inet6Address[] |
IPV6_ROOT_SERVERS |
| Constructor and Description |
|---|
IterativeDnsClient()
Create a new recursive DNS client using the global default cache.
|
IterativeDnsClient(org.minidns.DnsCache cache)
Create a new recursive DNS client with the given DNS cache.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
abortIfFatal(java.io.IOException ioException) |
static java.util.List<java.net.InetAddress> |
getRootServer(char rootServerId) |
static java.util.List<java.net.InetAddress> |
getRootServer(char rootServerId,
org.minidns.AbstractDnsClient.IpVersionSetting setting) |
protected boolean |
isResponseCacheable(org.minidns.dnsmessage.Question q,
org.minidns.dnsmessage.DnsMessage dnsMessage) |
protected org.minidns.dnsmessage.DnsMessage.Builder |
newQuestion(org.minidns.dnsmessage.DnsMessage.Builder message) |
protected org.minidns.dnsmessage.DnsMessage |
query(org.minidns.dnsmessage.DnsMessage.Builder queryBuilder)
Recursively query the DNS system for one entry.
|
getCache, getCachedIPv4AddressesFor, getCachedIPv4NameserverAddressesFor, getCachedIPv6AddressesFor, getCachedIPv6NameserverAddressesFor, getCachedNameserverRecordsFor, getDataSource, getPreferedIpVersion, getQueryFor, query, query, query, query, query, query, query, query, query, query, query, queryAsync, queryAsync, queryAsync, queryAsync, queryAsync, setDataSource, setDefaultIpVersion, setPreferedIpVersionprotected static final java.net.Inet4Address[] IPV4_ROOT_SERVERS
protected static final java.net.Inet6Address[] IPV6_ROOT_SERVERS
public IterativeDnsClient()
public IterativeDnsClient(org.minidns.DnsCache cache)
cache - The backend DNS cache.protected org.minidns.dnsmessage.DnsMessage query(org.minidns.dnsmessage.DnsMessage.Builder queryBuilder)
throws java.io.IOException
query in class org.minidns.AbstractDnsClientqueryBuilder - The query DNS message builder.java.io.IOException - if an IO error occurs.public static java.util.List<java.net.InetAddress> getRootServer(char rootServerId)
public static java.util.List<java.net.InetAddress> getRootServer(char rootServerId,
org.minidns.AbstractDnsClient.IpVersionSetting setting)
protected boolean isResponseCacheable(org.minidns.dnsmessage.Question q,
org.minidns.dnsmessage.DnsMessage dnsMessage)
isResponseCacheable in class org.minidns.AbstractDnsClientprotected org.minidns.dnsmessage.DnsMessage.Builder newQuestion(org.minidns.dnsmessage.DnsMessage.Builder message)
newQuestion in class org.minidns.AbstractDnsClientprotected static void abortIfFatal(java.io.IOException ioException)
throws java.io.IOException
java.io.IOException