dns.dnssec.validate_nsec3_no_ds

dns.dnssec

validate_nsec3_no_ds(nsec3_records, zone, child) -> ok, err, insecure

Validate NSEC3 proves a delegation to child has no DS

The proof of RFC 5155 §8.9, from the NSEC3 records of the parent zone. Either a record matches the hash of child, with NS set and DS and SOA clear. Or a closest encloser proof holds for child, and the record that covers the next closer name has the opt-out flag set.

insecure is true when the records' iteration count is over NSEC3_MAX_ITERATIONS. No hash is computed then, and the caller reads the referral as insecure.