From 40884624c2f1d0fa447718a7e56c7c480b014805 Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Tue, 11 Jul 2023 20:42:40 +0300 Subject: [PATCH] Pull request 1916: 5990-root-ignore Updates #5990. Squashed commit of the following: commit 1d5d3451c855681a631b85652417ee1bebadab01 Author: Ainar Garipov Date: Tue Jul 11 20:11:45 2023 +0300 all: allow ignoring root in querylog and stats --- CHANGELOG.md | 6 ++++ internal/aghnet/addr.go | 43 ++++++++++++++++++++++++++ internal/aghnet/addr_test.go | 59 ++++++++++++++++++++++++++++++++++++ internal/aghnet/hostgen.go | 32 ++----------------- internal/dnsforward/stats.go | 19 +++++------- internal/home/config.go | 1 + internal/querylog/qlog.go | 6 +--- internal/stats/http_test.go | 4 +-- 8 files changed, 122 insertions(+), 48 deletions(-) create mode 100644 internal/aghnet/addr.go create mode 100644 internal/aghnet/addr_test.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 52aef95c..dc965b83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,11 @@ See also the [v0.107.34 GitHub milestone][ms-v0.107.34]. NOTE: Add new changes BELOW THIS COMMENT. --> +### Added + +- Ability to ignore queries for the root domain, such as `NS .` queries + ([#5990]). + ### Changed - Improved CPU and RAM consumption during updates of filtering-rule lists. @@ -83,6 +88,7 @@ In this release, the schema version has changed from 23 to 24. [#5896]: https://github.com/AdguardTeam/AdGuardHome/issues/5896 [#5972]: https://github.com/AdguardTeam/AdGuardHome/issues/5972 +[#5990]: https://github.com/AdguardTeam/AdGuardHome/issues/5990