mirror of
https://github.com/miekg/dns.git
synced 2025-08-11 20:16:58 +02:00
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,
|
// NS, MD, MF, CNAME, SOA, MB, MG, MR, PTR,
|
||||||
// HINFO, MINFO, MX, RP, AFSDB, RT, SIG, PX, NXT, NAPTR, KX,
|
// HINFO, MINFO, MX, RP, AFSDB, RT, SIG, PX, NXT, NAPTR, KX,
|
||||||
// SRV, DNAME, A6
|
// SRV, DNAME, A6
|
||||||
switch x := r.(type) {
|
switch x := r1.(type) {
|
||||||
case *NS:
|
case *NS:
|
||||||
x.Ns = strings.ToLower(x.Ns)
|
x.Ns = strings.ToLower(x.Ns)
|
||||||
case *CNAME:
|
case *CNAME:
|
||||||
|
1
msg.go
1
msg.go
@ -150,6 +150,7 @@ var TypeToString = map[uint16]string{
|
|||||||
TypeURI: "URI",
|
TypeURI: "URI",
|
||||||
TypeWKS: "WKS",
|
TypeWKS: "WKS",
|
||||||
TypeX25: "X25",
|
TypeX25: "X25",
|
||||||
|
Type65534: "TYPE65534",
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reverse, needed for string parsing.
|
// Reverse, needed for string parsing.
|
||||||
|
1
types.go
1
types.go
@ -104,6 +104,7 @@ const (
|
|||||||
TypeCAA uint16 = 257
|
TypeCAA uint16 = 257
|
||||||
TypeTA uint16 = 32768
|
TypeTA uint16 = 32768
|
||||||
TypeDLV uint16 = 32769
|
TypeDLV uint16 = 32769
|
||||||
|
Type65534 uint16 = 65534
|
||||||
TypeReserved uint16 = 65535
|
TypeReserved uint16 = 65535
|
||||||
|
|
||||||
// valid Question.Qclass
|
// valid Question.Qclass
|
||||||
|
Loading…
Reference in New Issue
Block a user