From 1e939703e5455d4a1eb74ce44269f88a3a5129d9 Mon Sep 17 00:00:00 2001 From: Dimitry Kolyshev Date: Wed, 9 Aug 2023 16:27:21 +0300 Subject: [PATCH] Pull request: 6053-https-filtering Updates #6053. Squashed commit of the following: commit b71957f87eca93e9827d027c246d2ca9d7a7f45a Author: Dimitry Kolyshev Date: Wed Aug 9 16:12:10 2023 +0300 all: docs commit 3e394fb2d723c4e305ea91f10fffc866f0b9948a Merge: f406a5ff4 c47509fab Author: Dimitry Kolyshev Date: Wed Aug 9 15:15:37 2023 +0300 all: imp code commit f406a5ff4977acdcd19557969bd405747b84ebbc Author: Dimitry Kolyshev Date: Wed Aug 9 15:05:43 2023 +0300 all: imp code commit 0de1e0e8a9f0dfd3a0ff0c9e787d6e50cf2a1ee8 Author: Dimitry Kolyshev Date: Wed Aug 9 14:45:21 2023 +0300 all: docs commit d98cbafe62edd77afcf6c760e28cb5e7632a993e Author: Dimitry Kolyshev Date: Wed Aug 9 11:54:39 2023 +0300 dnsforward: https blocked rcode commit c13ffda6182920f97fe8293a9c0b518bbf77956e Author: Dimitry Kolyshev Date: Wed Aug 9 10:45:27 2023 +0300 dnsforward: imp tests commit 9c5bc29b33d53ba82ca11f508391e5b5d534a834 Author: Dimitry Kolyshev Date: Wed Aug 9 10:08:06 2023 +0300 dnsforward: imp code commit d6ff28b9c277c24b4f273cd4b292543ead13d859 Author: Dimitry Kolyshev Date: Tue Aug 8 16:00:15 2023 +0300 all: imp code commit 832b59965d1515badd0a0650f9753fc2985dff1c Author: Dimitry Kolyshev Date: Tue Aug 8 13:32:15 2023 +0300 dnsforward: https filtering commit 6a2bdd11331ffddb13bac4e05de85b6661360783 Merge: 257a1b6b8 54aee2272 Author: Dimitry Kolyshev Date: Tue Aug 8 11:44:12 2023 +0300 Merge remote-tracking branch 'origin/master' into 6053-https-filtering # Conflicts: # CHANGELOG.md commit 257a1b6b868826cb4112c1c88b177290242d3fdd Author: Dimitry Kolyshev Date: Tue Aug 8 11:26:13 2023 +0300 dnsforward: imp tests commit edba217a72101b8b5a79e7b82614b3ea0e4c1f09 Author: Dimitry Kolyshev Date: Fri Aug 4 15:03:02 2023 +0300 dnsforward: https filtering commit 4c93be3e0c7b98c1242b60ba5a3c45cea2775be4 Author: Dimitry Kolyshev Date: Fri Aug 4 14:36:33 2023 +0300 docs: https filtering commit 1d2d1aa3b4ce7a994395fade2f87b2d88d68ac63 Author: Dimitry Kolyshev Date: Fri Aug 4 12:54:05 2023 +0300 all: https filtering hints --- CHANGELOG.md | 6 + internal/aghtest/aghtest.go | 8 + internal/dnsforward/dnsforward_test.go | 11 ++ internal/dnsforward/filter.go | 65 ++++++- internal/dnsforward/filter_test.go | 229 +++++++++++++++++++++++-- internal/dnsforward/msg.go | 16 +- 6 files changed, 313 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba9d6854..cf360a41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ NOTE: Add new changes BELOW THIS COMMENT. ### Added +- The ability to filter DNS HTTPS records including IPv4/v6 hints. ([#6053]). - Two new metrics showing total number of responses from each upstream DNS server and their average processing time in the Web UI ([#1453]). - The ability to set the port for the `pprof` debug API, see configuration @@ -32,6 +33,10 @@ NOTE: Add new changes BELOW THIS COMMENT. ### Changed +- For non-A and non-AAAA requests, which has been filtered, the NODATA response + is returned if the blocking mode isn't set to `Null IP`. In previous versions + it returned NXDOMAIN response in such cases. + #### Configuration Changes In this release, the schema version has changed from 24 to 25. @@ -63,6 +68,7 @@ In this release, the schema version has changed from 24 to 25. [#1453]: https://github.com/AdguardTeam/AdGuardHome/issues/1453 [#5948]: https://github.com/AdguardTeam/AdGuardHome/issues/5948 +[#6053]: https://github.com/AdguardTeam/AdGuardHome/issues/6053