adding dns srv type

dev
mzack 2024-04-11 18:57:50 +02:00
parent 721ddda915
commit 2ed33e4723
2 changed files with 5 additions and 0 deletions

View File

@ -275,6 +275,8 @@ func questionTypeToInt(questionType string) uint16 {
question = dns.TypeTLSA
case "ANY":
question = dns.TypeANY
case "SRV":
question = dns.TypeSRV
}
return question
}

View File

@ -37,6 +37,8 @@ const (
TLSA
// name:ANY
ANY
// name:SRV
SRV
limit
)
@ -54,6 +56,7 @@ var DNSRequestTypeMapping = map[DNSRequestType]string{
CAA: "CAA",
TLSA: "TLSA",
ANY: "ANY",
SRV: "SRV",
}
// GetSupportedDNSRequestTypes returns list of supported types