Package org.minidns.dnssec
Class DnssecClient
java.lang.Object
org.minidns.AbstractDnsClient
org.minidns.iterative.ReliableDnsClient
org.minidns.dnssec.DnssecClient
- 
Nested Class SummaryNested classes/interfaces inherited from class org.minidns.iterative.ReliableDnsClientReliableDnsClient.ModeNested classes/interfaces inherited from class org.minidns.AbstractDnsClientAbstractDnsClient.IpVersionSetting
- 
Field SummaryFields inherited from class org.minidns.AbstractDnsClientcache, dataSource, DEFAULT_CACHE, DEFAULT_IP_VERSION_SETTING, insecureRandom, ipVersionSetting, LOGGER, random
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a new DNSSEC aware DNS client using the global default cache.DnssecClient(DnsCache cache) Create a new DNSSEC aware DNS client with the given DNS cache.
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidaddSecureEntryPoint(DnsName name, byte[] key) Add a new secure entry point to the list of known secure entry points.voidClears the list of known secure entry points.voidEnables DNSSEC Lookaside Validation (DLV) using the given DLV service.voidDisables DNSSEC Lookaside Validation (DLV).voidEnables DNSSEC Lookaside Validation (DLV) using the default DLV service at dlv.isc.org.protected StringisResponseAcceptable(DnsMessage response) Check if the response from the system's nameserver is acceptable.booleanWhether signature records (RRSIG) are stripped from the resultingDnsMessage.protected DnsMessage.BuildernewQuestion(DnsMessage.Builder message) queryDnssec(CharSequence name, Record.TYPE type) voidRemove the secure entry point stored for a domain name.voidsetStripSignatureRecords(boolean stripSignatureRecords) Enable or disable stripping of signature records (RRSIG) from the resultDnsMessage.Methods inherited from class org.minidns.iterative.ReliableDnsClientisResponseCacheable, query, setDataSource, setMode, setUseHardcodedDnsServersMethods inherited from class org.minidns.AbstractDnsClientgetCache, getCachedIPv4AddressesFor, getCachedIPv4NameserverAddressesFor, getCachedIPv6AddressesFor, getCachedIPv6NameserverAddressesFor, getCachedNameserverRecordsFor, getDataSource, getPreferedIpVersion, getQueryFor, query, query, query, query, query, query, query, query, query, query, queryAsync, queryAsync, queryAsync, queryAsync, queryAsync, setDefaultIpVersion, setPreferedIpVersion
- 
Constructor Details- 
DnssecClientpublic DnssecClient()Create a new DNSSEC aware DNS client using the global default cache.
- 
DnssecClientCreate a new DNSSEC aware DNS client with the given DNS cache.- Parameters:
- cache- The backend DNS cache.
 
 
- 
- 
Method Details- 
query- Overrides:
- queryin class- AbstractDnsClient
- Throws:
- IOException
 
- 
queryDnssec- Throws:
- IOException
 
- 
queryDnssec- Throws:
- IOException
 
- 
newQuestion- Overrides:
- newQuestionin class- ReliableDnsClient
 
- 
isResponseAcceptableDescription copied from class:ReliableDnsClientCheck if the response from the system's nameserver is acceptable. Must returnnullif the response is acceptable, or a String describing why it is not acceptable. If the response is not acceptable thenReliableDnsClientwill fall back to resolve the query iteratively.- Overrides:
- isResponseAcceptablein class- ReliableDnsClient
- Parameters:
- response- the response we got from the system's nameserver.
- Returns:
- nullif the response is acceptable, or a String if not.
 
- 
addSecureEntryPointAdd a new secure entry point to the list of known secure entry points. A secure entry point acts as a trust anchor. By default, the only secure entry point is the key signing key provided by the root zone.- Parameters:
- 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)
 
- 
removeSecureEntryPointRemove the secure entry point stored for a domain name.- Parameters:
- name- The domain name of which the corresponding secure entry point shall be removed. For the root zone, use the empty string here.
 
- 
clearSecureEntryPointsClears the list of known secure entry points. This will also remove the secure entry point of the root zone and thus render this instance useless until a new secure entry point is added.
- 
isStripSignatureRecordsWhether signature records (RRSIG) are stripped from the resultingDnsMessage. Default istrue.- Returns:
- Whether signature records are stripped.
 
- 
setStripSignatureRecordsEnable or disable stripping of signature records (RRSIG) from the resultDnsMessage.- Parameters:
- stripSignatureRecords- Whether signature records shall be stripped.
 
- 
enableLookasideValidationEnables DNSSEC Lookaside Validation (DLV) using the default DLV service at dlv.isc.org.
- 
disableLookasideValidationDisables DNSSEC Lookaside Validation (DLV). DLV is disabled by default, this is only required ifenableLookasideValidation()was used before.
- 
configureLookasideValidationEnables DNSSEC Lookaside Validation (DLV) using the given DLV service.- Parameters:
- dlv- The domain name of the DLV service to be used or- nullto disable DLV.
 
 
-