From e9b3fda775c0c48372a63cea5e9905d39505e7cf Mon Sep 17 00:00:00 2001 From: xaitx Date: Thu, 7 Nov 2024 13:25:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B38.8.8..8=E9=80=92=E5=BD=92?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=A4=A7=E5=B0=8F=E5=86=99=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E8=AE=B0=E5=BD=95=E8=AF=B7=E6=B1=82=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dns/Core.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dns/Core.go b/Dns/Core.go index c5deab0..460fee6 100644 --- a/Dns/Core.go +++ b/Dns/Core.go @@ -4,12 +4,13 @@ import ( "DnsLog/Core" "encoding/json" "fmt" - "golang.org/x/net/dns/dnsmessage" "log" "net" "strings" "sync" "time" + + "golang.org/x/net/dns/dnsmessage" ) var DnsData = make(map[string][]DnsInfo) @@ -54,7 +55,7 @@ func serverDNS(addr *net.UDPAddr, conn *net.UDPConn, msg dnsmessage.Message) { } question := msg.Questions[0] var ( - queryNameStr = question.Name.String() + queryNameStr = strings.ToLower(question.Name.String()) queryType = question.Type queryName, _ = dnsmessage.NewName(queryNameStr) resource dnsmessage.Resource