Added TYPE65534 record type so that zone scanning doesn't die upon encountering one. Fixed DNSSEC signature verification.

This commit is contained in:
Skinner, Alex 2013-12-04 12:58:20 -05:00
parent 7d715c6657
commit edd235088a
3 changed files with 3 additions and 1 deletions

View File

@ -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:

1
msg.go
View File

@ -150,6 +150,7 @@ var TypeToString = map[uint16]string{
TypeURI: "URI",
TypeWKS: "WKS",
TypeX25: "X25",
Type65534: "TYPE65534",
}
// Reverse, needed for string parsing.

View File

@ -104,6 +104,7 @@ const (
TypeCAA uint16 = 257
TypeTA uint16 = 32768
TypeDLV uint16 = 32769
Type65534 uint16 = 65534
TypeReserved uint16 = 65535
// valid Question.Qclass