From 82f7a0e9396e1a3eb1ff035c43868a193e0a0551 Mon Sep 17 00:00:00 2001 From: sandeep <8293321+ehsandeep@users.noreply.github.com> Date: Wed, 3 May 2023 21:50:06 +0530 Subject: [PATCH] added any dns query --- v2/pkg/protocols/dns/dns.go | 2 ++ v2/pkg/protocols/dns/dns_types.go | 3 +++ 2 files changed, 5 insertions(+) diff --git a/v2/pkg/protocols/dns/dns.go b/v2/pkg/protocols/dns/dns.go index a14e5bbff..8dff2143c 100644 --- a/v2/pkg/protocols/dns/dns.go +++ b/v2/pkg/protocols/dns/dns.go @@ -226,6 +226,8 @@ func questionTypeToInt(questionType string) uint16 { question = dns.TypeCAA case "TLSA": question = dns.TypeTLSA + case "ANY": + question = dns.TypeANY } return question } diff --git a/v2/pkg/protocols/dns/dns_types.go b/v2/pkg/protocols/dns/dns_types.go index 2341e7591..7f1f94ab3 100644 --- a/v2/pkg/protocols/dns/dns_types.go +++ b/v2/pkg/protocols/dns/dns_types.go @@ -35,6 +35,8 @@ const ( CAA // name:TLSA TLSA + // name:ANY + ANY limit ) @@ -51,6 +53,7 @@ var DNSRequestTypeMapping = map[DNSRequestType]string{ AAAA: "AAAA", CAA: "CAA", TLSA: "TLSA", + ANY: "ANY", } // GetSupportedDNSRequestTypes returns list of supported types