According to RFC 9276, if NSEC3 must be used, then an iterations count
of 0 MUST be used to alleviate computational burdens.
return (DNS_R_NSEC3BADALG);
}
- if (iter > dns_nsec3_maxiterations()) {
- ret = DNS_R_NSEC3ITERRANGE;
- }
-
- if (ret == DNS_R_NSEC3ITERRANGE) {
+ if (iter != DEFAULT_NSEC3PARAM_ITER) {
cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
"dnssec-policy: nsec3 iterations value %u "
- "out of range",
+ "not allowed, must be zero",
iter);
+ return (DNS_R_NSEC3ITERRANGE);
return (ret);
}