mirror of
https://github.com/NLnetLabs/dnst.git
synced 2026-09-10 03:47:45 +02:00
Strip ZONEMD RRs on load so that signing without ZONEMD doesn't leave an incorrect ZONEMD RR in the output.
This commit is contained in:
@@ -1004,9 +1004,16 @@ impl SignZone {
|
||||
// once, while our current implementation only supports
|
||||
// having either NSEC or NSEC3 in the zone at any one
|
||||
// time.
|
||||
//
|
||||
// TODO: NSEC3PARAM and ZONEMD should only be ignored at
|
||||
// the apex (the only place RFCs define them to be valid).
|
||||
if !matches!(
|
||||
record.rtype(),
|
||||
Rtype::NSEC | Rtype::NSEC3 | Rtype::NSEC3PARAM | Rtype::RRSIG
|
||||
Rtype::NSEC
|
||||
| Rtype::NSEC3
|
||||
| Rtype::NSEC3PARAM
|
||||
| Rtype::RRSIG
|
||||
| Rtype::ZONEMD
|
||||
) {
|
||||
let _ = records.insert(record);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user