From edd235088a0bb3ae9e47f11c2039ba8a24a10e2d Mon Sep 17 00:00:00 2001 From: "Skinner, Alex" Date: Wed, 4 Dec 2013 12:58:20 -0500 Subject: [PATCH] Added TYPE65534 record type so that zone scanning doesn't die upon encountering one. Fixed DNSSEC signature verification. --- dnssec.go | 2 +- msg.go | 1 + types.go | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dnssec.go b/dnssec.go index d8446cc9..98b6b237 100644 --- a/dnssec.go +++ b/dnssec.go @@ -654,7 +654,7 @@ func rawSignatureData(rrset []RR, s *RRSIG) (buf []byte) { // NS, MD, MF, CNAME, SOA, MB, MG, MR, PTR, // HINFO, MINFO, MX, RP, AFSDB, RT, SIG, PX, NXT, NAPTR, KX, // SRV, DNAME, A6 - switch x := r.(type) { + switch x := r1.(type) { case *NS: x.Ns = strings.ToLower(x.Ns) case *CNAME: diff --git a/msg.go b/msg.go index 7dc0f5dd..1d10facd 100644 --- a/msg.go +++ b/msg.go @@ -150,6 +150,7 @@ var TypeToString = map[uint16]string{ TypeURI: "URI", TypeWKS: "WKS", TypeX25: "X25", + Type65534: "TYPE65534", } // Reverse, needed for string parsing. diff --git a/types.go b/types.go index 335acc29..eac6d43d 100644 --- a/types.go +++ b/types.go @@ -104,6 +104,7 @@ const ( TypeCAA uint16 = 257 TypeTA uint16 = 32768 TypeDLV uint16 = 32769 + Type65534 uint16 = 65534 TypeReserved uint16 = 65535 // valid Question.Qclass