From bf3e786bbc2369bc69f5e0b37bc2f7e0f563f4c0 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 6 Oct 2020 10:04:14 -0700 Subject: [PATCH] add comment on NSEC downcasing to avoid future confusion --- dns/rdtypes/ANY/NSEC.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dns/rdtypes/ANY/NSEC.py b/dns/rdtypes/ANY/NSEC.py index 45c22f03..dc31f4c4 100644 --- a/dns/rdtypes/ANY/NSEC.py +++ b/dns/rdtypes/ANY/NSEC.py @@ -55,6 +55,8 @@ class NSEC(dns.rdata.Rdata): return cls(rdclass, rdtype, next, windows) def _to_wire(self, file, compress=None, origin=None, canonicalize=False): + # Note that NSEC downcasing, originally mandated by RFC 4034 + # section 6.2 was removed by RFC 6840 section 5.1. self.next.to_wire(file, None, origin, False) Bitmap(self.windows).to_wire(file) -- 2.47.3