public class DnssecClient
extends org.minidns.iterative.ReliableDnsClient
| Constructor and Description |
|---|
DnssecClient()
Create a new DNSSEC aware DNS client using the global default cache.
|
DnssecClient(org.minidns.DnsCache cache)
Create a new DNSSEC aware DNS client with the given DNS cache.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSecureEntryPoint(org.minidns.dnsname.DnsName name,
byte[] key)
Add a new secure entry point to the list of known secure entry points.
|
void |
clearSecureEntryPoints()
Clears the list of known secure entry points.
|
void |
configureLookasideValidation(org.minidns.dnsname.DnsName dlv)
Enables DNSSEC Lookaside Validation (DLV) using the given DLV service.
|
void |
disableLookasideValidation()
Disables DNSSEC Lookaside Validation (DLV).
|
void |
enableLookasideValidation()
Enables DNSSEC Lookaside Validation (DLV) using the default DLV service at dlv.isc.org.
|
protected java.lang.String |
isResponseAcceptable(org.minidns.dnsmessage.DnsMessage response) |
protected boolean |
isResponseCacheable(org.minidns.dnsmessage.Question q,
org.minidns.dnsmessage.DnsMessage dnsMessage) |
boolean |
isStripSignatureRecords()
Whether signature records (RRSIG) are stripped from the resulting
DnsMessage. |
protected org.minidns.dnsmessage.DnsMessage.Builder |
newQuestion(org.minidns.dnsmessage.DnsMessage.Builder message) |
org.minidns.dnsmessage.DnsMessage |
query(org.minidns.dnsmessage.Question q) |
DnssecMessage |
queryDnssec(java.lang.CharSequence name,
org.minidns.record.Record.TYPE type) |
DnssecMessage |
queryDnssec(org.minidns.dnsmessage.Question q) |
void |
removeSecureEntryPoint(org.minidns.dnsname.DnsName name)
Remove the secure entry point stored for a domain name.
|
void |
setStripSignatureRecords(boolean stripSignatureRecords)
Enable or disable stripping of signature records (RRSIG) from the result
DnsMessage. |
getCache, getCachedIPv4AddressesFor, getCachedIPv4NameserverAddressesFor, getCachedIPv6AddressesFor, getCachedIPv6NameserverAddressesFor, getCachedNameserverRecordsFor, getDataSource, getPreferedIpVersion, getQueryFor, query, query, query, query, query, query, query, query, query, query, queryAsync, queryAsync, queryAsync, queryAsync, queryAsync, setDefaultIpVersion, setPreferedIpVersionpublic DnssecClient()
public DnssecClient(org.minidns.DnsCache cache)
cache - The backend DNS cache.public org.minidns.dnsmessage.DnsMessage query(org.minidns.dnsmessage.Question q)
throws java.io.IOException
query in class org.minidns.AbstractDnsClientjava.io.IOExceptionpublic DnssecMessage queryDnssec(java.lang.CharSequence name, org.minidns.record.Record.TYPE type) throws java.io.IOException
java.io.IOExceptionpublic DnssecMessage queryDnssec(org.minidns.dnsmessage.Question q) throws java.io.IOException
java.io.IOExceptionprotected boolean isResponseCacheable(org.minidns.dnsmessage.Question q,
org.minidns.dnsmessage.DnsMessage dnsMessage)
isResponseCacheable in class org.minidns.iterative.ReliableDnsClientprotected org.minidns.dnsmessage.DnsMessage.Builder newQuestion(org.minidns.dnsmessage.DnsMessage.Builder message)
newQuestion in class org.minidns.iterative.ReliableDnsClientprotected java.lang.String isResponseAcceptable(org.minidns.dnsmessage.DnsMessage response)
isResponseAcceptable in class org.minidns.iterative.ReliableDnsClientpublic void addSecureEntryPoint(org.minidns.dnsname.DnsName name,
byte[] key)
name - The domain name originating the key. Once the secure entry point for this domain is requested,
the resolver will use this key without further verification instead of using the DNS system to
verify the key.key - The secure entry point corresponding to the domain name. This key can be retrieved by requesting
the DNSKEY record for the domain and using the key with first flags bit set
(also called key signing key)public void removeSecureEntryPoint(org.minidns.dnsname.DnsName name)
name - The domain name of which the corresponding secure entry point shall be removed. For the root zone,
use the empty string here.public void clearSecureEntryPoints()
public boolean isStripSignatureRecords()
DnsMessage.
Default is true.public void setStripSignatureRecords(boolean stripSignatureRecords)
DnsMessage.stripSignatureRecords - Whether signature records shall be stripped.public void enableLookasideValidation()
public void disableLookasideValidation()
enableLookasideValidation() was used before.public void configureLookasideValidation(org.minidns.dnsname.DnsName dlv)
dlv - The domain name of the DLV service to be used or null to disable DLV.