]>
git.ipfire.org Git - thirdparty/pdns.git/log
Otto Moerbeek [Tue, 15 Nov 2022 13:47:51 +0000 (14:47 +0100)]
Otto Moerbeek [Fri, 4 Nov 2022 07:29:59 +0000 (08:29 +0100)]
Merge pull request #12163 from omoerbeek/backport-12155-to-rec-4.8.x
rec: Backport 12155 to rec 4.8.x: Fix snmp OID numbers for rcode stats
Otto Moerbeek [Fri, 4 Nov 2022 07:29:46 +0000 (08:29 +0100)]
Merge pull request #12162 from omoerbeek/backport-12122-to-rec-4.8.x
rec: Backport 12122 to rec 4.8.x: Implement output operator for QTypes
Otto Moerbeek [Fri, 4 Nov 2022 07:29:32 +0000 (08:29 +0100)]
Merge pull request #12161 from omoerbeek/backport-12125-to-rec-4.8.x
rec: Backport 12125 to rec 4.8.x: handle ixfr connect and transfer timeouts
Otto Moerbeek [Thu, 3 Nov 2022 12:16:03 +0000 (13:16 +0100)]
Typo
Co-authored-by: Charles-Henri Bruyand <charleshenri.bruyand+github@gmail.com>
(cherry picked from commit
38b69143124de1d2f7341148c6250e821c02e4be )
Otto Moerbeek [Wed, 2 Nov 2022 14:56:17 +0000 (15:56 +0100)]
Clarify Prometheus names
(cherry picked from commit
fe6797befcdb8b9287ac87dacc796282920e7001 )
Otto Moerbeek [Wed, 2 Nov 2022 14:44:46 +0000 (15:44 +0100)]
Fix snmp OID numbers for rcode stats
(cherry picked from commit
bdc4ee0a00ad913a4e0d909f4bfc4e1a404ead68 )
Otto Moerbeek [Wed, 26 Oct 2022 05:56:47 +0000 (07:56 +0200)]
Pass an object as const ref
Co-authored-by: Charles-Henri Bruyand <charleshenri.bruyand+github@gmail.com>
(cherry picked from commit
fa61cf82d85f5e26178853e9b0f4be14f55565db )
Otto Moerbeek [Mon, 24 Oct 2022 09:48:17 +0000 (11:48 +0200)]
Implement output operator for QTypes.
This fixes #12089
The theory says there should be no unwanted side effects, but I'd like
that to be validated independently.
(cherry picked from commit
da19e4feb842464659536076b47047b2910c73fb )
Otto Moerbeek [Thu, 3 Nov 2022 08:50:12 +0000 (09:50 +0100)]
Better wording in comment
Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
(cherry picked from commit
240460d77be35a6a1c1e6fa22364efe19dc3ee84 )
Otto Moerbeek [Mon, 24 Oct 2022 14:25:59 +0000 (16:25 +0200)]
Timout handling for ixfrs as a client.
One complicating factor is that this is shared code, but auth and
rec do not agree on the definiton of the timeout value: auth states
it is a maximum idle time, while rec state it is the total xfr time.
While both apporaches make sense and in the end we would like to
enforce both, we now go for a more simple solution that respects
auth or rec behaviour based on a flag.
(cherry picked from commit
fee334ae0f5083d47f9adc207d5a1a6d36ebc2ac )
Otto Moerbeek [Wed, 2 Nov 2022 09:14:13 +0000 (10:14 +0100)]
Merge pull request #12146 from omoerbeek/backport-12063-to-rec-4.8.x
rec: backport 12063 to 4.8.x: Also do the compare for protobuf logger config objects.
Otto Moerbeek [Wed, 2 Nov 2022 09:12:30 +0000 (10:12 +0100)]
Merge pull request #12150 from omoerbeek/backport-12140-to-rec-4.8.x
rec: Backport 12140 to rec 4.8.x: be more lenient replacing auth by non-auth records in cache
Otto Moerbeek [Wed, 2 Nov 2022 09:12:12 +0000 (10:12 +0100)]
Merge pull request #12145 from omoerbeek/backport-12081-to-rec-4.8.x
rec: backport 12081 to rec-4.8.x: Log invalid RPZ content when obtained via IXFR
Otto Moerbeek [Wed, 2 Nov 2022 09:11:53 +0000 (10:11 +0100)]
Merge pull request #12144 from omoerbeek/backport-12133-to-rec-4.8.x
rec: backport 12054 to rec-4.8.x: Fix assertAlmostEqual call to compare absolute difference
Otto Moerbeek [Wed, 2 Nov 2022 09:01:31 +0000 (10:01 +0100)]
Merge pull request #12147 from omoerbeek/backport-12066-to-rec-4.8.x
rec: backport 12066 to rec 4.8.x: Detect invalid bytes in makeBytesFromHex()
Otto Moerbeek [Tue, 1 Nov 2022 11:38:54 +0000 (12:38 +0100)]
typo in comment
Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
(cherry picked from commit
681a49f10b00ba7ee38a55402953d076c7221160 )
Otto Moerbeek [Tue, 1 Nov 2022 11:06:32 +0000 (12:06 +0100)]
Otto Moerbeek [Fri, 28 Oct 2022 10:06:27 +0000 (12:06 +0200)]
QM can get confused by expiring infra records, so be a bit more lenient
with replacing auth records by unauth, as unauth (typically infra
records) might come in while we are resolving.
Should fix #12078
(cherry picked from commit
1ce6006d7ddc925a13b868488b6e987bca41cc90 )
Remi Gacogne [Thu, 6 Oct 2022 08:14:50 +0000 (10:14 +0200)]
Apply Otto's suggestion
(cherry picked from commit
7f73a566805979f94bc1a23c9088372e00177bec )
Remi Gacogne [Thu, 6 Oct 2022 07:56:47 +0000 (09:56 +0200)]
misc: Switch to a std::array in makeHexDump()
(cherry picked from commit
8c7a1b8a671291e6ee2e7e4abdbdd41e9c714b31 )
Remi Gacogne [Thu, 6 Oct 2022 07:55:48 +0000 (09:55 +0200)]
auth: Detect invalid bytes in makeBytesFromHex()
Also only allocate the required number of bytes, not twice that.
(cherry picked from commit
50953de897023742e43d3feab976b891be1c6e63 )
Otto Moerbeek [Wed, 31 Aug 2022 14:58:30 +0000 (16:58 +0200)]
Also do the compare for protobuf logger config objects.
I'm not doing the async part now, as tsan reports there would be a race.
The case occuring the most: no changes is now handled correctly and quickly and that is the main thing.
(cherry picked from commit
babe943035818b7a97e59cfd70921ba06bbf31cf )
Remi Gacogne [Mon, 10 Oct 2022 15:47:46 +0000 (17:47 +0200)]
rec: Log invalid RPZ content when obtained via IXFR
That kind of content was properly logged and handled when received
during the initial loading (AXFR) but not when received via an
incremental update.
(cherry picked from commit
55a99233728fc01e3946a97fb8dbb073a3003622 )
Otto Moerbeek [Tue, 25 Oct 2022 14:15:07 +0000 (16:15 +0200)]
Fix assertAlmostEqual call to compare absolute difference
(cherry picked from commit
67dd4251f758a695dab05e206a32199ccee6c214 )
(cherry picked from commit
23064464fe298ac748470942de6e04a429be9a31 )
Backport of #12054 and #12133
Otto Moerbeek [Mon, 3 Oct 2022 14:48:37 +0000 (16:48 +0200)]
Merge pull request #12055 from omoerbeek/backport-12054-to-rec-4.8.x
rec: Backport 12054 to rec 4.8.x: fix locked regr test
Otto Moerbeek [Mon, 3 Oct 2022 13:47:46 +0000 (15:47 +0200)]
Rec: fix locked regr test
(cherry picked from commit
23064464fe298ac748470942de6e04a429be9a31 )
Otto Moerbeek [Mon, 3 Oct 2022 12:56:16 +0000 (14:56 +0200)]
Merge pull request #12051 from omoerbeek/rec-specialize-to-rec48
rec 4.8.x branch: Remove unneeded targets according to checklist
Otto Moerbeek [Mon, 3 Oct 2022 11:30:09 +0000 (13:30 +0200)]
Remove unneeded targets according to checklist
Otto Moerbeek [Mon, 3 Oct 2022 10:12:52 +0000 (12:12 +0200)]
Merge pull request #12041 from omoerbeek/rec-regr-test-locking
rec: Regression test for locked cache
Otto Moerbeek [Mon, 3 Oct 2022 09:17:36 +0000 (11:17 +0200)]
Merge pull request #12047 from chbruyand/rec-dnstap-nod
rec: add support for NOD/UDR notifications using dnstap
Otto Moerbeek [Mon, 3 Oct 2022 09:02:40 +0000 (11:02 +0200)]
Apply suggestions from code review
Co-authored-by: Remi Gacogne <github@coredump.fr>
Otto Moerbeek [Mon, 3 Oct 2022 08:26:30 +0000 (10:26 +0200)]
Fix unused function warnings if !ENABLE_NOD
Otto Moerbeek [Mon, 3 Oct 2022 08:14:22 +0000 (10:14 +0200)]
Add dnstapNODFrameStream stats
Fix docs refs
Fix #ifdef
Otto Moerbeek [Mon, 3 Oct 2022 07:50:15 +0000 (09:50 +0200)]
Doc tweaks
Otto Moerbeek [Mon, 3 Oct 2022 07:19:48 +0000 (09:19 +0200)]
Tweaks: fix build with dnstabp disabled, process config changes
Charles-Henri Bruyand [Fri, 30 Sep 2022 14:54:59 +0000 (16:54 +0200)]
rec: add support for streaming NOD and UDR using dnstap
Charles-Henri Bruyand [Fri, 30 Sep 2022 07:31:13 +0000 (09:31 +0200)]
rec: make sure data is at least the size of a dnsheader when constructing a DnstapMessage
Otto Moerbeek [Mon, 3 Oct 2022 08:06:14 +0000 (10:06 +0200)]
Merge pull request #12049 from omoerbeek/rec-followup-11903
rec: fix build with --disable-dnstap, followup to #11903
Otto Moerbeek [Mon, 3 Oct 2022 07:52:28 +0000 (09:52 +0200)]
Merge pull request #12048 from omoerbeek/rec-config-default
rec: Fix --config (should be equal to --config=default), followup to #11907
Otto Moerbeek [Mon, 3 Oct 2022 06:52:44 +0000 (08:52 +0200)]
rec: fix build with --disable-dnstap, followup to #11903
Remi Gacogne [Mon, 3 Oct 2022 07:16:37 +0000 (09:16 +0200)]
Merge pull request #12046 from rgacogne/fix-portsmplexer
Fix compilation of the event ports multiplexer
Otto Moerbeek [Mon, 3 Oct 2022 06:24:17 +0000 (08:24 +0200)]
rec: Fix --config (should be equal to --config=default), followup to #11907
Remi Gacogne [Fri, 30 Sep 2022 08:55:19 +0000 (10:55 +0200)]
Fix compilation of the event ports multiplexer
Thanks to Jonathan Perkin for the patch!
Peter van Dijk [Thu, 29 Sep 2022 12:48:02 +0000 (14:48 +0200)]
Merge pull request #11960 from Habbie/builder-dispatch-release
expand builder-dispatch workflow for release building
Peter van Dijk [Thu, 29 Sep 2022 12:28:29 +0000 (14:28 +0200)]
Merge pull request #11954 from Habbie/axfr-primary-tc-servfail
auth AXFR server: abort on chunk with TC set
Peter van Dijk [Thu, 29 Sep 2022 11:17:47 +0000 (13:17 +0200)]
Merge pull request #12028 from mind04/pdns-edit-zone
auth: pdnsutil edit-zone, detect capitalization changes in LUA, TXT a…
Peter van Dijk [Thu, 29 Sep 2022 09:12:10 +0000 (11:12 +0200)]
Merge pull request #11983 from chbruyand/keyroller
auth: Keyroller first import
Remi Gacogne [Wed, 28 Sep 2022 14:54:32 +0000 (16:54 +0200)]
Merge pull request #12001 from rgacogne/ddist-mac-cache
dnsdist: Implement a small MAC address cache
Remi Gacogne [Wed, 28 Sep 2022 14:25:48 +0000 (16:25 +0200)]
Merge pull request #12039 from omoerbeek/dnsdist-coverity-
20220928
Dnsdist: coverity
20220928
Remi Gacogne [Wed, 28 Sep 2022 14:25:30 +0000 (16:25 +0200)]
Merge pull request #11840 from rgacogne/ddist-doc-missing-json-objects-api
dnsdist: Document all the API JSON objects
Remi Gacogne [Wed, 28 Sep 2022 14:24:26 +0000 (16:24 +0200)]
Merge pull request #11732 from rgacogne/ddist-reg-tests-fd
dnsdist: Stop background threads and close file descriptors in regression tests
Remi Gacogne [Wed, 28 Sep 2022 14:23:30 +0000 (16:23 +0200)]
Merge pull request #12007 from rgacogne/ddist-cache-inspection
dnsdist: Add Lua bindings to look up domain and IP addresses from the cache
Remi Gacogne [Wed, 28 Sep 2022 14:23:18 +0000 (16:23 +0200)]
Merge pull request #11995 from rgacogne/ddist-more-discovery-tests
dnsdist: More backend discovery regression tests
Remi Gacogne [Wed, 28 Sep 2022 14:23:08 +0000 (16:23 +0200)]
Merge pull request #12000 from rgacogne/ddist-doh-skip-headers-alloc
dnsdist: Speed up DoH handling by preventing allocations and copies
Otto Moerbeek [Wed, 28 Sep 2022 14:15:35 +0000 (16:15 +0200)]
Merge pull request #11903 from omoerbeek/pb-dnstap-stats
rec: protobuf and dnstap metrics
Otto Moerbeek [Wed, 28 Sep 2022 13:28:02 +0000 (15:28 +0200)]
Process review commment from @fredmorcos, thanks!
Otto Moerbeek [Wed, 28 Sep 2022 13:14:00 +0000 (15:14 +0200)]
rec: Regression test for locked cache
Fixes #11984
Otto Moerbeek [Wed, 28 Sep 2022 11:38:11 +0000 (13:38 +0200)]
Mark a few methods non-const, to allow the guard to not be mutable, as suggested by @rgacogne
Otto Moerbeek [Wed, 28 Sep 2022 11:33:17 +0000 (13:33 +0200)]
Rename prometheus remote logging metric, as suggested by @wojas
Otto Moerbeek [Wed, 28 Sep 2022 10:10:29 +0000 (12:10 +0200)]
Fix auto_causes_copy coverity reports.
In once case we actually want a copy so annotate it.
Coverity 380098, 380102, 380103, 380106, 380107, 280109, 380111, 380112, 380113, 380117
Otto Moerbeek [Wed, 28 Sep 2022 09:58:56 +0000 (11:58 +0200)]
Fix store_truncates_time_t coverity reports.
A few instances of store_truncates_time_t, almost all due to DNS specific protocol properties
Coverity 380097, 380099, 380100, 380101, 380105, 380108, 380114, 380115, 380116, 380118
Otto Moerbeek [Wed, 28 Sep 2022 09:38:38 +0000 (11:38 +0200)]
Fix merge botch
Otto Moerbeek [Wed, 28 Sep 2022 09:35:23 +0000 (11:35 +0200)]
fix botched help line
Otto Moerbeek [Tue, 6 Sep 2022 09:22:02 +0000 (11:22 +0200)]
Reformat
Otto Moerbeek [Tue, 6 Sep 2022 08:26:44 +0000 (10:26 +0200)]
Skip remote logger counts for normal stats retrieval
Otto Moerbeek [Wed, 31 Aug 2022 06:43:38 +0000 (08:43 +0200)]
Prometheus stats plus tweaks in rec_control
Otto Moerbeek [Mon, 29 Aug 2022 13:09:44 +0000 (15:09 +0200)]
Make sure things compile with !HAVE_FSTRM
Otto Moerbeek [Mon, 29 Aug 2022 12:51:38 +0000 (14:51 +0200)]
Add statistics command for remote logging stats
Otto Moerbeek [Mon, 29 Aug 2022 10:23:18 +0000 (12:23 +0200)]
Implement a common interface to get stats for both RemoteLogger and FrameStreamLogger
These two classes do not use the same mechanism to protect the stats from mult-threaded
access. Should maybe be revisited. Recursor has an instance per pthread, don't know
about dnsdist.
Otto Moerbeek [Wed, 28 Sep 2022 09:17:15 +0000 (11:17 +0200)]
Merge pull request #12038 from omoerbeek/rec-aggr-nsec3-expired
rec: when an expired nsec3 entry is seen move it to the front of the expiry queue
Remi Gacogne [Wed, 28 Sep 2022 08:56:45 +0000 (10:56 +0200)]
Merge pull request #12026 from rgacogne/dist-faster-protocol-ctor
dnsdist: Speed up the dnsdist::Protocol() constructor
Remi Gacogne [Wed, 28 Sep 2022 08:56:35 +0000 (10:56 +0200)]
Merge pull request #12037 from rgacogne/ddist-only-rewrite-to-remove-if-needed
dnsdist: Rewrite packets to remove records only if actually needed
Charles-Henri Bruyand [Wed, 28 Sep 2022 08:41:20 +0000 (10:41 +0200)]
Update pdns/keyroller/pdnsapi/api.py
Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
Otto Moerbeek [Wed, 28 Sep 2022 07:35:22 +0000 (09:35 +0200)]
rec: when an expired nsec3 entry is seen, move it to the front of the expiry queue
Otto Moerbeek [Tue, 27 Sep 2022 19:16:57 +0000 (21:16 +0200)]
Merge pull request #11949 from omoerbeek/rec-auth-rcode-counts
Rec: provide rcode received from auths metrics
Otto Moerbeek [Tue, 27 Sep 2022 19:16:42 +0000 (21:16 +0200)]
Merge pull request #12027 from omoerbeek/rec-locked-auth-upgrade
rec: If new data is auth and existing data is not, replace even if cache locking is active
Otto Moerbeek [Tue, 27 Sep 2022 14:34:24 +0000 (16:34 +0200)]
copy-paste error in comment
Co-authored-by: Remi Gacogne <github@coredump.fr>
Otto Moerbeek [Tue, 27 Sep 2022 14:21:46 +0000 (16:21 +0200)]
use at instead of []
Co-authored-by: Remi Gacogne <github@coredump.fr>
Otto Moerbeek [Tue, 13 Sep 2022 07:51:33 +0000 (09:51 +0200)]
Docs and account for forwarding
Otto Moerbeek [Mon, 12 Sep 2022 10:45:47 +0000 (12:45 +0200)]
Add SNMP metrics for new counts
Otto Moerbeek [Wed, 7 Sep 2022 13:42:54 +0000 (15:42 +0200)]
Provide metrics for rcodes returned bu auths.
Only basic rcodes (found in dns header) counted for now, as we
do not process extended error codes in OPT records.
Maybe this should be a histogram in the Prometheus case?
Otto Moerbeek [Tue, 27 Sep 2022 14:19:59 +0000 (16:19 +0200)]
Merge pull request #11866 from omoerbeek/rec-proxymapping-stats
Rec: proxymapping stats
Otto Moerbeek [Tue, 27 Sep 2022 14:19:43 +0000 (16:19 +0200)]
Merge pull request #11909 from omoerbeek/rec-dq-querytime
rec: add querytime attribute to dq
Remi Gacogne [Fri, 24 Jun 2022 16:49:04 +0000 (18:49 +0200)]
dnsdist: Rewrite packets to remove records only if actually needed
Remi Gacogne [Tue, 27 Sep 2022 12:20:41 +0000 (14:20 +0200)]
dnsdist: Add a dnsdist::MacAddress type
Otto Moerbeek [Tue, 27 Sep 2022 12:01:14 +0000 (14:01 +0200)]
Merge pull request #12024 from omoerbeek/rec-getting-started-docs
rec: Update docs for getting started and compiling.
Otto Moerbeek [Tue, 27 Sep 2022 12:00:22 +0000 (14:00 +0200)]
Better description of queryTime.tv_usec
Otto Moerbeek [Tue, 27 Sep 2022 11:51:05 +0000 (13:51 +0200)]
Process comments from review
Otto Moerbeek [Wed, 17 Aug 2022 12:22:34 +0000 (14:22 +0200)]
Approach: each thread gets its own copy of the PorxyMapping config, which
includes the counters. When we have a proxymapping match, we immediately
have the counters available without the need for a new lookup.
When reloading, make sure the old counters of lines present in the
new config are preserved.
Don't forget to count on PC cache hits.
Otto Moerbeek [Tue, 27 Sep 2022 11:30:20 +0000 (13:30 +0200)]
Test for unauth to auth upgrade with locked cache
Kees Monshouwer [Tue, 27 Sep 2022 11:05:54 +0000 (13:05 +0200)]
auth: pdnsutil edit-zone, detect capitalization changes in LUA, TXT and SPF records
Peter van Dijk [Wed, 14 Sep 2022 12:52:40 +0000 (14:52 +0200)]
auth AXFR server: abort on chunk with TC set
Otto Moerbeek [Mon, 26 Sep 2022 10:16:19 +0000 (12:16 +0200)]
rec: If new data is auth and old dat is not, upgrade even if cache locking is active
Followup to #11958
Remi Gacogne [Tue, 27 Sep 2022 10:13:43 +0000 (12:13 +0200)]
Merge pull request #11987 from rgacogne/ddist-api-less-allocs
dnsdist: Slightly reduce the number of allocations in API calls
Remi Gacogne [Tue, 27 Sep 2022 10:12:30 +0000 (12:12 +0200)]
Merge pull request #11996 from rgacogne/ddist-coverage-dump
dnsdist: Better code coverage stats when enabled
Remi Gacogne [Tue, 27 Sep 2022 10:11:12 +0000 (12:11 +0200)]
Merge pull request #11993 from rgacogne/ddist-more-options-to-disable-features
dnsdist: Add build-time options to disable the dynamic blocks and UDP response delay
Remi Gacogne [Tue, 27 Sep 2022 10:10:39 +0000 (12:10 +0200)]
Merge pull request #11992 from rgacogne/ddist-thread-names
dnsdist: Add missing thread names
Remi Gacogne [Tue, 27 Sep 2022 10:10:17 +0000 (12:10 +0200)]
Merge pull request #11988 from rgacogne/ddist-openssl-no-err-strings
dnsdist: Add a build option (define) to prevent loading OpenSSL's errors
Otto Moerbeek [Tue, 27 Sep 2022 06:18:37 +0000 (08:18 +0200)]
rec: Update docs for getting started and compiling.
I'm also making the mention of PowerDNS Recursor more consistent:
no ``the`` and either :program:`PowerDNS Recursor` or :program:`Recursor`.
Use short form if the long form was used already in a section or
it would become tedious to have the long form for another reason.
Fixes #11828, though the recursor.conf man page is not going to
happen anytime soon, as we lack the infrastructure for that and
maintaining both a .rst file and a man page would be a pain.
With released versions, pdns_recursor --config=default helps a bit.
In master pdns_recursor --config=[default|check|diff] was added.