From ff7c715c5fb0e20042d285c49e27afd02ebc6e49 Mon Sep 17 00:00:00 2001 From: Eugene Burkov Date: Thu, 11 Apr 2024 14:03:37 +0300 Subject: [PATCH] Pull request 2193: AGDNS-1982 Upd proxy Closes #6854.Updates #6875. Squashed commit of the following: commit b98adbc0cc6eeaffb262d57775c487e03b1d5ba5 Author: Eugene Burkov Date: Wed Apr 10 19:21:44 2024 +0300 dnsforward: upd proxy, imp code, docs commit 4de1eb2bca1047426e02ba680c212f46782e5616 Author: Eugene Burkov Date: Wed Apr 10 16:09:58 2024 +0300 WIP commit afa9d61e8dc129f907dc681cd2f831cb5c3b054a Author: Eugene Burkov Date: Tue Apr 9 19:24:09 2024 +0300 all: log changes commit c8340676a448687a39acd26bc8ce5f94473e441f Author: Eugene Burkov Date: Tue Apr 9 19:06:10 2024 +0300 dnsforward: move code commit 08bb7d43d2a3f689ef2ef2409935dc3946752e94 Author: Eugene Burkov Date: Tue Apr 9 18:09:46 2024 +0300 dnsforward: imp code commit b27547ec806dd9bce502d3c6a7c28f33693ed575 Merge: b7efca788 6f36ebc06 Author: Eugene Burkov Date: Tue Apr 9 17:33:19 2024 +0300 Merge branch 'master' into AGDNS-1982-upd-proxy commit b7efca788b66aa672598b088040d4534ce2e55b0 Author: Eugene Burkov Date: Tue Apr 9 17:27:14 2024 +0300 all: upd proxy finally commit 3e16fa87befe4c0ef3a3e7a638d7add28627f9b6 Author: Eugene Burkov Date: Fri Apr 5 18:20:13 2024 +0300 dnsforward: upd proxy commit f3cdfc86334a182effcd0de22fac5e678fa53ea7 Author: Eugene Burkov Date: Thu Apr 4 20:37:32 2024 +0300 all: upd proxy, golibs commit a79298d6d0504521893ee11fdc3a23c098aea911 Merge: 9feeba5c7 fd25dcacb Author: Eugene Burkov Date: Thu Apr 4 20:34:01 2024 +0300 Merge branch 'master' into AGDNS-1982-upd-proxy commit 9feeba5c7f24ff1d308a216608d985cb2a7b7588 Author: Eugene Burkov Date: Thu Apr 4 20:25:57 2024 +0300 all: imp code, docs commit 6c68d463db64293eb9c5e29ff91879fd68920a77 Merge: d8108e651 ee619b2db Author: Eugene Burkov Date: Thu Apr 4 18:46:11 2024 +0300 Merge branch 'master' into AGDNS-1982-upd-proxy commit d8108e65164df8d67aa4e95154a8768a06255b78 Author: Eugene Burkov Date: Wed Apr 3 19:25:27 2024 +0300 all: imp code commit 20461565801c9fcd06a652c6066b524b06c80433 Author: Eugene Burkov Date: Wed Apr 3 17:10:33 2024 +0300 all: remove private rdns logic --- CHANGELOG.md | 10 + go.mod | 10 +- go.sum | 26 +- internal/dnsforward/beforerequest.go | 113 +++++ internal/dnsforward/clientid.go | 40 -- internal/dnsforward/config.go | 79 ++-- internal/dnsforward/dns64_test.go | 73 +++- internal/dnsforward/dnsforward.go | 267 ++++++------ internal/dnsforward/dnsrewrite.go | 2 +- internal/dnsforward/filter.go | 40 -- internal/dnsforward/http.go | 118 +++--- internal/dnsforward/http_test.go | 57 +-- internal/dnsforward/msg.go | 127 +++--- internal/dnsforward/process.go | 287 ++----------- internal/dnsforward/process_internal_test.go | 388 +++++++----------- internal/dnsforward/recursiondetector.go | 115 ------ internal/dnsforward/recursiondetector_test.go | 148 ------- internal/dnsforward/upstreams.go | 211 ++++------ internal/home/dns.go | 11 +- 19 files changed, 761 insertions(+), 1361 deletions(-) create mode 100644 internal/dnsforward/beforerequest.go delete mode 100644 internal/dnsforward/recursiondetector.go delete mode 100644 internal/dnsforward/recursiondetector_test.go diff --git a/CHANGELOG.md b/CHANGELOG.md index dd068218d5c..09d21602381 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,7 +27,17 @@ NOTE: Add new changes BELOW THIS COMMENT. - Support for comments in the ipset file ([#5345]). +### Fixed + +- Subdomains of `in-addr.arpa` and `ip6.arpa` containing zero-length prefix + incorrectly considered invalid when specified for private RDNS upstream + servers ([#6854]). +- Unspecified IP addresses aren't checked when using "Fastest IP address" mode + ([#6875]). + [#5345]: https://github.com/AdguardTeam/AdGuardHome/issues/5345 +[#6854]: https://github.com/AdguardTeam/AdGuardHome/issues/6854 +[#6875]: https://github.com/AdguardTeam/AdGuardHome/issues/6875