From 1d30c099577bda192609049bab4510cf6f69a972 Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Tue, 5 Mar 2024 17:14:02 +0300 Subject: [PATCH] all: missing ip in logs --- CHANGELOG.md | 2 ++ internal/dnsforward/stats.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b14062402e..910d886781d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,6 +61,8 @@ NOTE: Add new changes BELOW THIS COMMENT. ### Fixed +- Missing IP addresses in logs when querying for domain names from the ignore + lists. - Wrong algorithm for caching bootstrapped upstream addresses ([#6723]). - Incorrect tracking of the system hosts file's changes ([#6711]). diff --git a/internal/dnsforward/stats.go b/internal/dnsforward/stats.go index 6a6b9853e8a..220f151c0cb 100644 --- a/internal/dnsforward/stats.go +++ b/internal/dnsforward/stats.go @@ -46,7 +46,7 @@ func (s *Server) processQueryLogsAndStats(dctx *dnsContext) (rc resultCode) { dns.Class(cl), dns.Type(qt), host, - ip, + ipStr, ) } @@ -58,7 +58,7 @@ func (s *Server) processQueryLogsAndStats(dctx *dnsContext) (rc resultCode) { dns.Class(cl), dns.Type(qt), host, - ip, + ipStr, ) }