From f4d938460338a9a374b3202fa46b80c9f5c41ed0 Mon Sep 17 00:00:00 2001 From: adlyq Date: Tue, 17 May 2022 18:21:18 +0800 Subject: [PATCH] chore: debug log print dns result --- dns/middleware.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dns/middleware.go b/dns/middleware.go index ce410eba..415bcd1b 100644 --- a/dns/middleware.go +++ b/dns/middleware.go @@ -164,6 +164,7 @@ func withResolver(resolver *Resolver) handler { msg.SetRcode(r, msg.Rcode) msg.Authoritative = true + log.Debugln("[DNS] %s --> %s", msgToDomain(r), msgToIP(msg)) return msg, nil } }