Skip to content
Snippets Groups Projects
Commit 60990950 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

DNSSEC/DDNS: Do not remove DNSSEC records when deleting whole RRSet using DDNS.

parent bb204e52
No related branches found
No related tags found
2 merge requests!123DNSSEC - NSEC/NSEC3 chain fix,!122DNSSEC: NSEC/NSEC3 chain fixing
......@@ -1637,13 +1637,14 @@ static int knot_ddns_process_rem_all(knot_node_t *node,
dbg_ddns_verb("Removing all RRSets (count: %d).\n", count);
for (int i = 0; i < count; ++i) {
// If the node is apex, skip NS, SOA and DNSSEC records
// Skip DNSSEC records - automatic signing will handle this
if (knot_rrtype_is_ddns_forbidden(rrsets[i]->type)) {
continue;
}
// If the node is apex, skip NS and SOA as well
if (is_apex &&
(knot_rrset_type(rrsets[i]) == KNOT_RRTYPE_SOA
|| knot_rrset_type(rrsets[i]) == KNOT_RRTYPE_NS
|| knot_rrtype_is_ddns_forbidden(
knot_rrset_type(rrsets[i])))) {
/* Do not remove these RRSets, nor their RRSIGs. */
|| knot_rrset_type(rrsets[i]) == KNOT_RRTYPE_NS)) {
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment