]>
git.ipfire.org Git - thirdparty/pdns.git/log
Otto Moerbeek [Tue, 6 Sep 2022 07:50:52 +0000 (09:50 +0200)]
For zones having many NS records, we are not interested in all so take a sample.
(cherry picked from commit
a49b0b40a0c1c1af9531b99e9266a8c2aa89cd68 )
Otto Moerbeek [Fri, 9 Sep 2022 08:13:07 +0000 (10:13 +0200)]
Merge pull request #11897 from omoerbeek/backport-11848-to-rec-4.7.x
rec: backport 11848 to rec-4.7.x: Also check qperq limit if throttling happened, as it increases counters.
Otto Moerbeek [Thu, 11 Aug 2022 12:30:48 +0000 (14:30 +0200)]
Also check qperq limit if throttling happened, as it increases counters.
This condition would be caught when going out previously, so is
an optimisation, not a behaviour difference.
(cherry picked from commit
c75d28f2b786b986ec10675e3c853a52eec11e37 )
Otto Moerbeek [Wed, 24 Aug 2022 07:03:31 +0000 (09:03 +0200)]
Merge pull request #11879 from fredmorcos/backport-11850-to-rec-4.7.x
Backport #11850 (Fix recursor not responsive after Lua config reload) to rec 4.7.x
Fred Morcos [Fri, 12 Aug 2022 11:25:25 +0000 (13:25 +0200)]
Rec: Move FrameStreamServersInfo to rec-main
(cherry picked from commit
4354beb50caffdc4cb45ef3004402a780a0e2d81 )
Fred Morcos [Thu, 11 Aug 2022 13:35:29 +0000 (15:35 +0200)]
Rec: Asynchronously destroy old connections to dnstap servers
With @omoerbeek
Closes #11795
(cherry picked from commit
2e0757d5c661c124b58ac69e91da440ad9705c62 )
Fred Morcos [Thu, 11 Aug 2022 13:27:38 +0000 (15:27 +0200)]
Rec: Don't reload Lua config if it hasn't changed
This also groups together 1) the list of frame stream servers, 2) the config from which
the list was created and 3) the config's generation into a single struct called
FrameStreamServersInfo. The struct is used to compare the old and new configuration to
decide whether to destroy the old config object or not.
Part of #11795
(cherry picked from commit
afaf1b5d87c4a4961eadaf114855a335711c33c8 )
Otto Moerbeek [Tue, 23 Aug 2022 11:18:39 +0000 (13:18 +0200)]
Merge pull request #11847 from omoerbeek/backport-11843-to-rec-4.7.x
rec: backport 11843 to rec-4.7.x: Clear the caches *after* loading authzones.
Otto Moerbeek [Tue, 23 Aug 2022 11:18:23 +0000 (13:18 +0200)]
Merge pull request #11774 from omoerbeek/backport-11773-to-rec-4.7.x
rec: Backport 11773 to rec-4.7.x: Resize answer length to actual received length in udpQueryResponse
Otto Moerbeek [Tue, 23 Aug 2022 10:17:35 +0000 (12:17 +0200)]
Merge pull request #11877 from omoerbeek/rec-backport-to-rec-4.7.x-pb-size
Backport of protobuf PSA 2022-02 (CVE-2022-37428) to rec-4.7.x
Otto Moerbeek [Wed, 10 Aug 2022 11:30:24 +0000 (13:30 +0200)]
Clear the caches *after* loading authzones.
(cherry picked from commit
799114529470923a5e633dadc47b59c4e2a7e220 )
Otto Moerbeek [Wed, 3 Aug 2022 13:30:44 +0000 (15:30 +0200)]
Backport of protobuf PSA 2022-02 (CVE-2022-37428) to rec-4.7.x
Otto Moerbeek [Mon, 11 Jul 2022 08:22:43 +0000 (10:22 +0200)]
Add regression test for #11771 (lenght of annswer in udpQueryResponse)
(cherry picked from commit
8ca70105ddd6fda10e98b6d3d8cb67523ebc81e1 )
Otto Moerbeek [Mon, 11 Jul 2022 08:21:48 +0000 (10:21 +0200)]
Rec: Resize answer length to actual received length in udpQueryResponse
Fixes #11771
(cherry picked from commit
cbb5ac45a90e4109ff1f8536bf5d99aafd62ef0c )
Otto Moerbeek [Tue, 5 Jul 2022 07:08:15 +0000 (09:08 +0200)]
Merge pull request #11750 from omoerbeek/backport-11726-to-rec-4.7.x
rec: Backport 11726 to rec 4.7.x: Convert generic format while parsing zone files for ZoneToCache
Otto Moerbeek [Tue, 5 Jul 2022 07:08:04 +0000 (09:08 +0200)]
Merge pull request #11748 from omoerbeek/backport-11692-to-rec-4.7.x
rec: Backport 11692 to rec-4.7.x: Run tasks from houskeeping thread in a proper way.
Otto Moerbeek [Tue, 5 Jul 2022 07:07:53 +0000 (09:07 +0200)]
Merge pull request #11747 from omoerbeek/backport-11641-to-rec-4.7.x
rec: Backport 11641 to rec-4.7.x: Move to v2 for CodeQL action, v1 will be deprecated dec 2022
Otto Moerbeek [Mon, 4 Jul 2022 13:28:54 +0000 (15:28 +0200)]
Avoid log spam
Otto Moerbeek [Mon, 27 Jun 2022 09:25:06 +0000 (11:25 +0200)]
Otto Moerbeek [Mon, 27 Jun 2022 09:16:44 +0000 (11:16 +0200)]
Update structured logging for exceptions to be in line with rest of code
(cherry picked from commit
c85af1d0f0b560d1ed4150ba6d56b06eb290c913 )
Otto Moerbeek [Mon, 27 Jun 2022 09:07:45 +0000 (11:07 +0200)]
Convert generic format while parsing zone files for ZoneToCache.
Fixes #11724
(cherry picked from commit
52b2a1f2025906b34b8ac207c349773cf4e4b255 )
Otto Moerbeek [Mon, 4 Jul 2022 12:53:26 +0000 (14:53 +0200)]
Merge pull request #11740 from Habbie/backport-11735-to-rec-4.7.x
rec-4.7: dh_builddeb: force gzip compression, thanks Zash!
Otto Moerbeek [Fri, 10 Jun 2022 13:39:36 +0000 (15:39 +0200)]
Run tasks from houskeeping thread in a proper way.
Previously, this was only done if log-common-errors was true, due
to argument reversal. In general task *would* be executed, as they
are also run after each query processed by SyncRes (so not after
packet cache hits).
Thanks to @jelu!
(cherry picked from commit
c42b6632e00eaa93911ce88a0b4aa8c598441e2a )
Otto Moerbeek [Tue, 24 May 2022 10:36:28 +0000 (12:36 +0200)]
Move to v2 for CodeQL action, v1 will be deprecated dec 2022
(cherry picked from commit
a0c99342e7aa22e16a75d9e7daa4de69d087bc38 )
Peter van Dijk [Thu, 30 Jun 2022 11:51:00 +0000 (13:51 +0200)]
dh_builddeb: force gzip compression, thanks Zash!
(cherry picked from commit
bbfa37c0232b56e2227668717dbb97ce4f01d990 )
Otto Moerbeek [Fri, 17 Jun 2022 11:05:40 +0000 (13:05 +0200)]
Merge pull request #11699 from Habbie/backport-11658-to-rec-4.7.x
rec-4.7.x: protobuf: use python implementation during tests
Peter van Dijk [Tue, 31 May 2022 10:13:57 +0000 (12:13 +0200)]
protobuf: use python implementation during tests
(cherry picked from commit
2dd4d60b8103a64c796296647ad7b45226d5a5bd )
Otto Moerbeek [Wed, 25 May 2022 08:31:04 +0000 (10:31 +0200)]
Merge pull request #11645 from omoerbeek/backport-11644-to-rec-4.7.x
rec: Backport 11644 to rec-4.7.x: Deprecation warning for XPF settings.
Otto Moerbeek [Wed, 25 May 2022 07:45:08 +0000 (09:45 +0200)]
Deprecation warning for XPF settings.
(cherry picked from commit
7e32a0b96df460abd8fb98fbb63f4d336b9c3d03 )
Backport of #11644
Otto Moerbeek [Tue, 24 May 2022 06:23:54 +0000 (08:23 +0200)]
Merge pull request #11632 from omoerbeek/backport-11609-to-rec-4.7.x
rec: Backport 11609 to rec 4.7.x: Fix API issue when asking config values for allow-from or allow-notiy-from
Otto Moerbeek [Mon, 23 May 2022 13:02:38 +0000 (15:02 +0200)]
Merge pull request #11635 from omoerbeek/backport-11570-to-rec-4.7.x
rec: Backport 11570 Reduce make -j parameter from 8 to 4, as dnsdist does.
Otto Moerbeek [Fri, 22 Apr 2022 09:02:12 +0000 (11:02 +0200)]
Reduce make -j parameter from 8 to 4, as dnsdist does.
This might fix the occasional build issues with the CodeQL GH Action.
(cherry picked from commit
d6b94fbd9664a7acac00f5dd8ebbacc4119ed045 )
Otto Moerbeek [Fri, 6 May 2022 09:54:23 +0000 (11:54 +0200)]
Document meaning of empty allow-from
(cherry picked from commit
a75c8e8019462827dae4599b6a24ef7a0645c30c )
Otto Moerbeek [Thu, 5 May 2022 08:19:47 +0000 (10:19 +0200)]
Add tests for empty allow-from and allow-notify-from case
(cherry picked from commit
bfa1ae26f5c174d6fe237dc0ed9d08043518648f )
Otto Moerbeek [Thu, 5 May 2022 08:04:20 +0000 (10:04 +0200)]
Fix API issue when asking config values for allow-from or allow-notify-from
(cherry picked from commit
3aa876deef257fc6d63da32df0742ed8cf91aaa1 )
Otto Moerbeek [Tue, 26 Apr 2022 10:20:00 +0000 (12:20 +0200)]
Merge pull request #11559 from omoerbeek/backport-11539-to-rec-4.7.x
rec: Backport 11539 to rec 4.7.x: DNSSEC counters track responses sent, not actual validations performed
Otto Moerbeek [Wed, 20 Apr 2022 14:26:03 +0000 (16:26 +0200)]
Merge pull request #11560 from omoerbeek/backport-11541-to-rec-4.7.x
rec: Backport 11541 to rec 4.7.x: fix DoT port for probed authoritative servers
Otto Moerbeek [Wed, 20 Apr 2022 14:25:49 +0000 (16:25 +0200)]
Merge pull request #11558 from omoerbeek/backport-11529-to-rec-4.7.x
rec: Backport of #11529: Zap a leftover debug line in test code
Otto Moerbeek [Tue, 19 Apr 2022 07:57:23 +0000 (09:57 +0200)]
Decide to use Dot earlier.
To keep the nsspeed table good, we need to decide to use DoT earlier.
Now the lookup and updats of the speed table occur in a proper way
(using the port that is actually used for the connetion) and when
we switch from/to DoT, the old nsspeeds are cleared by the already
existing code.
(cherry picked from commit
dc777d96b2fedd5a33fbb94a8571ba1c0d11d284 )
Otto Moerbeek [Thu, 14 Apr 2022 19:36:47 +0000 (21:36 +0200)]
Missing newline in dump output, noted by ph1
(cherry picked from commit
a8bd214e7c2a9ad357beae27378f59f3007578bf )
Otto Moerbeek [Thu, 14 Apr 2022 17:44:06 +0000 (19:44 +0200)]
Fix port, as noted by ph1 on IRC
Without this, probed DoT actually becomes regular TCP.
(cherry picked from commit
9bea6fe3ee133b0075d34c30739298679393636e )
Remi Gacogne [Fri, 15 Apr 2022 09:15:02 +0000 (11:15 +0200)]
rec: Fix DNSSEC counters description in web/prometheus as well
(cherry picked from commit
d76a66060f94ccac92db5cee691f0f4bb1cde022 )
Remi Gacogne [Thu, 14 Apr 2022 15:20:15 +0000 (17:20 +0200)]
rec: DNSSEC counters track responses sent, not actual validations performed
Since 4.1 these counters are updated for every response sent, even if the DNSSEC
status was fetched from the records cache and did not involve any actual
validation.
(cherry picked from commit
3aebcb3af2cea8f85502fe070ece1da6a531f85e )
Otto Moerbeek [Wed, 13 Apr 2022 11:58:27 +0000 (13:58 +0200)]
Zap a leftover debug line in test code
(cherry picked from commit
ae901eb52569bc9eca6c4e871a3fc808c7e19002 )
Otto Moerbeek [Thu, 14 Apr 2022 11:11:19 +0000 (13:11 +0200)]
Merge pull request #11538 from omoerbeek/backport-11536-to-rec-4.7.x
rec: Backport 11536 to rec 4.7.x: Fix Coverity
1487923 Out-of-bounds read (wrong use of sizeof)
Otto Moerbeek [Thu, 14 Apr 2022 07:57:34 +0000 (09:57 +0200)]
Move to std:::array for name array, as suggested by rgacogne
(cherry picked from commit
611457a712e44f0000f8ba337c502881ea245a29 )
Otto Moerbeek [Thu, 14 Apr 2022 05:43:36 +0000 (07:43 +0200)]
Fix Coverity
1487923 Out-of-bounds read (wrong use of sizeof)
(cherry picked from commit
0aef4ca5459c907024bc83156dd19e91036e95b5 )
Otto Moerbeek [Wed, 13 Apr 2022 14:43:29 +0000 (16:43 +0200)]
Merge pull request #11528 from omoerbeek/rec-4.7.x-rec-only
rec: specialize to rec in rel/rec-4.7.x branch
Otto Moerbeek [Wed, 13 Apr 2022 11:07:53 +0000 (13:07 +0200)]
CircleCI parts for rec branch specialization
Otto Moerbeek [Wed, 13 Apr 2022 10:56:00 +0000 (12:56 +0200)]
rec: specialize to rec in rel/4.7.x branch
Otto Moerbeek [Wed, 13 Apr 2022 06:04:10 +0000 (08:04 +0200)]
Merge pull request #11487 from omoerbeek/rec-probe-auth-dot
Rec: probe auth for DoT support
Otto Moerbeek [Tue, 12 Apr 2022 12:47:40 +0000 (14:47 +0200)]
Update pdns/recursordist/docs/settings.rst
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Otto Moerbeek [Tue, 12 Apr 2022 10:26:09 +0000 (12:26 +0200)]
doResolveAtThisIP() can throw and do not throttle when DoT probing
Otto Moerbeek [Tue, 12 Apr 2022 10:25:17 +0000 (12:25 +0200)]
Review comments: document what happens on failure and use runOnce() as a building block for runTasks()
Otto Moerbeek [Tue, 12 Apr 2022 08:12:37 +0000 (10:12 +0200)]
Process review comments: use correct auth and nsname for task
Otto Moerbeek [Tue, 12 Apr 2022 07:31:18 +0000 (09:31 +0200)]
Apply suggestions from code review
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Otto Moerbeek [Wed, 6 Apr 2022 08:45:18 +0000 (10:45 +0200)]
Only probe somewhat popular auths; i.e. auths that are revisited at least once
Otto Moerbeek [Mon, 4 Apr 2022 15:27:42 +0000 (17:27 +0200)]
Docs
Otto Moerbeek [Mon, 4 Apr 2022 14:53:37 +0000 (16:53 +0200)]
Tweaks
Otto Moerbeek [Wed, 30 Mar 2022 13:41:54 +0000 (15:41 +0200)]
Add ttd pruning by using a multi-index table and update status after DoT use
Otto Moerbeek [Wed, 9 Mar 2022 13:37:16 +0000 (14:37 +0100)]
Initial code to Probe nameservers for DoT.
The ratelmiting code sure need so extra attention.
Missing: pruning, stats, tests, docs.
Otto Moerbeek [Wed, 9 Mar 2022 13:37:16 +0000 (14:37 +0100)]
wip
Otto Moerbeek [Tue, 12 Apr 2022 11:38:01 +0000 (13:38 +0200)]
Merge pull request #11525 from omoerbeek/dnsdist-docs-retain
Mention addCapabilitiesToRetain in eBPF docs.
Peter van Dijk [Tue, 12 Apr 2022 11:13:41 +0000 (13:13 +0200)]
Merge pull request #11521 from Habbie/auth-4.6.2-docs
auth-4.6.2: changelog + secpoll
Peter van Dijk [Mon, 11 Apr 2022 07:33:04 +0000 (09:33 +0200)]
auth-4.6.2: changelog + secpoll
Otto Moerbeek [Tue, 12 Apr 2022 10:36:28 +0000 (12:36 +0200)]
Merge pull request #11524 from omoerbeek/upddate-moment.js
Update moment.min.js (path traversal fix; we are unaffected)
Remi Gacogne [Tue, 12 Apr 2022 09:50:16 +0000 (11:50 +0200)]
Merge pull request #11523 from Y7n05h/master
Reject BPFFilter::attachToAllBinds() at configuration time
Otto Moerbeek [Tue, 12 Apr 2022 08:22:14 +0000 (10:22 +0200)]
both CAP_SYS_ADMIN and CAP_BPF mightr be relevant
Co-authored-by: Remi Gacogne <github@coredump.fr>
Otto Moerbeek [Tue, 12 Apr 2022 05:52:38 +0000 (07:52 +0200)]
Update moment.min.js (path tarversal fix; we are unaffected)
Also remove unused moment.js
Otto Moerbeek [Tue, 12 Apr 2022 08:14:24 +0000 (10:14 +0200)]
Merge pull request #11507 from omoerbeek/rec-proxy-by-table-domain
Rec: proxy by table per domain queried
Otto Moerbeek [Tue, 12 Apr 2022 07:25:31 +0000 (09:25 +0200)]
Typo spotted by reviewer
Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
Otto Moerbeek [Tue, 12 Apr 2022 06:23:28 +0000 (08:23 +0200)]
Mention addCapabilitiesToRetain in eBPF docs.
Y7n05h [Mon, 11 Apr 2022 16:01:03 +0000 (00:01 +0800)]
Update pdns/dnsdistdist/docs/reference/ebpf.rst
Co-authored-by: Remi Gacogne <github@coredump.fr>
Y7n05h [Mon, 11 Apr 2022 15:44:46 +0000 (23:44 +0800)]
Reject BPFFilter::attachToAllBinds() at configuration time
Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
Remi Gacogne [Fri, 8 Apr 2022 12:11:09 +0000 (14:11 +0200)]
Merge pull request #11513 from rgacogne/ddist-downstream-conn-manager-header
dnsdist: Move DownstreamConnectionsManager to its own header
Remi Gacogne [Fri, 8 Apr 2022 12:10:53 +0000 (14:10 +0200)]
Merge pull request #11515 from rgacogne/ddist-more-disable-options
dnsdist: Add more build-time options to select features
Remi Gacogne [Fri, 8 Apr 2022 12:10:22 +0000 (14:10 +0200)]
Merge pull request #11517 from rgacogne/mplexer-smaller-event-arrays
Multiplexer: Take the maximum number of events as a hint
Otto Moerbeek [Fri, 8 Apr 2022 10:01:37 +0000 (12:01 +0200)]
Merge pull request #11516 from omoerbeek/rec-coverity-
20220406
followup on #11509: copyTree() also throws a std::logic_exception on internal inconsistencies
Otto Moerbeek [Fri, 8 Apr 2022 10:01:22 +0000 (12:01 +0200)]
Merge pull request #11492 from omoerbeek/rec-add-deferred
Rec: add deferred mode for additional records
Remi Gacogne [Fri, 8 Apr 2022 09:30:48 +0000 (11:30 +0200)]
Multiplexer: Take the maximum number of events as a hint
This allows indicating the maximum number of events we want to process
in a single run, which is usually bounded by the number of file descriptors
we are planning on watching.
The default is still 1024 events, but this change makes it possible to
allocate a smaller vector of events to reduce the memory usage when we
know we are going to need to process so many events in a single run.
Otto Moerbeek [Fri, 8 Apr 2022 07:19:19 +0000 (09:19 +0200)]
followup on #11509: copyTree() also throws a std::logic_exception on internal inconsistencies
Coverity
1487850 Uncaught exception
Coverity
1487851 Uncaught exception
Otto Moerbeek [Fri, 8 Apr 2022 07:08:27 +0000 (09:08 +0200)]
Proces review comments: rename variable and some words about expirig additionals in docs.
Remi Gacogne [Thu, 7 Apr 2022 15:11:36 +0000 (17:11 +0200)]
dnsdist: Disable more features in the "least" CI test
Remi Gacogne [Thu, 7 Apr 2022 14:47:59 +0000 (16:47 +0200)]
dnsdist: Document build options to disable NPN and false sharing
Remi Gacogne [Tue, 5 Apr 2022 13:56:09 +0000 (15:56 +0200)]
dnsdist: Add an option to disable NPN support
It has been deprecated in favor of ALPN for quite a while now.
Remi Gacogne [Fri, 1 Apr 2022 14:46:44 +0000 (16:46 +0200)]
dnsdist: Add DISABLE_FALSE_SHARING_PADDING option
Remi Gacogne [Fri, 21 Jan 2022 15:12:56 +0000 (16:12 +0100)]
dnsdist: Add DISABLE_HASHED_CREDENTIALS
Remi Gacogne [Fri, 21 Jan 2022 14:53:56 +0000 (15:53 +0100)]
dnsdist: Add DISABLE_OCSP_STAPLING
Remi Gacogne [Mon, 24 Jan 2022 08:34:35 +0000 (09:34 +0100)]
dnsdist: Move DownstreamConnectionsManager to its own header
Otto Moerbeek [Thu, 7 Apr 2022 10:48:27 +0000 (12:48 +0200)]
Merge pull request #11506 from omoerbeek/packetcache-unaligned-header
Another case of unaligned access of header data found by ubsan on OpenBSD
Otto Moerbeek [Thu, 7 Apr 2022 05:20:44 +0000 (07:20 +0200)]
Merge pull request #11509 from omoerbeek/rec-coverity-
20220406
Rec: three more coverity cases:
1487743 ,
1419403 and
1419401
Otto Moerbeek [Wed, 6 Apr 2022 12:00:23 +0000 (14:00 +0200)]
Only catch NetmaskException and leave out noexcept as OOM situations can still throw
Peter van Dijk [Wed, 6 Apr 2022 11:39:32 +0000 (13:39 +0200)]
Merge pull request #11299 from Zash/auto-svbc-version
Document which version adds svc-autohints
Otto Moerbeek [Wed, 6 Apr 2022 11:21:30 +0000 (13:21 +0200)]
Two Coverity reports:
1419403 Uncaught exception and
1419401 Uncaught exception
Both cases have the same root cause: a possible exception thrown
from NetmaskTree::copyTree. Coverity negelects to report the calling
context, I'm assuming it is from a static initializer. As a
NetmaskTree can only have valid nodes (insert does not allow an
invalid AF), reading from an existign tree should be fine.
Otto Moerbeek [Wed, 6 Apr 2022 11:14:29 +0000 (13:14 +0200)]
Better English in docs
Co-authored-by: Neil Cook <neil.cook@noware.co.uk>
Otto Moerbeek [Wed, 6 Apr 2022 09:54:04 +0000 (11:54 +0200)]
Coverity
1487743 : Unchecked return value
Otto Moerbeek [Wed, 6 Apr 2022 09:17:48 +0000 (11:17 +0200)]
Another case of unaligned access of header data found by ubsan on OpenSBD
Otto Moerbeek [Tue, 5 Apr 2022 11:12:35 +0000 (13:12 +0200)]
Add test for extra domain table in proxy mapping1
Otto Moerbeek [Tue, 5 Apr 2022 11:48:54 +0000 (13:48 +0200)]
Add docs plus some cleanup of the DNS Suffix Match Group docs we refer to.
Otto Moerbeek [Tue, 5 Apr 2022 08:01:19 +0000 (10:01 +0200)]
Add an (optional) table of domains to addProxyMapping().
The table is used to construct a DNSSuffixMatchGroup. Only apply mapping
if the qname in the query matches the DNSSuffixMatchGroup.