Added TYPE65534 record type so that zone scanning doesn't die upon encountering one. Fixed DNSSEC signature verification.
This commit is contained in:
parent
7d715c6657
commit
edd235088a
|
@ -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
1
msg.go
|
@ -150,6 +150,7 @@ var TypeToString = map[uint16]string{
|
|||
TypeURI: "URI",
|
||||
TypeWKS: "WKS",
|
||||
TypeX25: "X25",
|
||||
Type65534: "TYPE65534",
|
||||
}
|
||||
|
||||
// Reverse, needed for string parsing.
|
||||
|
|
Loading…
Reference in New Issue