Class DnssecHostResolver

java.lang.Object
org.microproxy.dns.DnssecHostResolver
All Implemented Interfaces:
HostResolver

public final class DnssecHostResolver extends Object implements HostResolver
A HostResolver that validates answers with DNSSEC, the replacement for LittleProxy's dnssec4j-based DnsSecServerResolver.

Queries go to a recursive resolver (by default those in /etc/resolv.conf) with the DO and CD bits set; every answer is validated locally against the root zone trust anchors (KSK-2017 and KSK-2024). With the default DnssecHostResolver.Policy.REJECT_BOGUS, names in signed zones resolve only with valid signatures, names in provably unsigned zones resolve normally, and anything else fails with DnssecValidationException. Network failures also fail resolution: there is no silent fallback to unvalidated lookups.

IP literals and localhost are returned without a lookup. Answers, zone keys and delegation facts are cached for their TTL, up to an hour.