NS records from AUTHORITY aren't validated. The iterator seems a
better place, as that's where delegations are handled, etc.
/* TODO: this classifier of authoritativity may not be perfect yet. */
return KR_RANK_INITIAL | KR_RANK_AUTH;
} else {
- return KR_RANK_INITIAL;
+ return rr->type == KNOT_RRTYPE_NS ? KR_RANK_OMIT : KR_RANK_INITIAL;
}
}
kr_rank_set(&entry->rank, KR_RANK_OMIT);
continue;
}
- if ((rr->type == KNOT_RRTYPE_NS) && (vctx->section_id == KNOT_AUTHORITY)) {
- kr_rank_set(&entry->rank, KR_RANK_OMIT);
- continue;
- }
+
validation_result = kr_rrset_validate(vctx, rr);
if (validation_result == kr_ok()) {
kr_rank_set(&entry->rank, KR_RANK_SECURE);