]>
git.ipfire.org Git - thirdparty/pdns.git/log
Remi Gacogne [Thu, 22 Sep 2022 09:46:55 +0000 (11:46 +0200)]
dnsdist: Document that the TCP acceptor and worker threads are merged in single acceptor mode
Remi Gacogne [Mon, 19 Sep 2022 13:20:37 +0000 (15:20 +0200)]
dnsdist: In single acceptor mode, make the TCP accept socket non-blocking
In theory we should only be waken up if there is a connection to
accept, but let's make sure we don't block if there ever is a
spurious wake-up event.
Remi Gacogne [Thu, 1 Sep 2022 12:16:50 +0000 (14:16 +0200)]
dnsdist: In single acceptor mode, merge the TCP acceptor and worker threads
As we usually have one TCP worker thread only in single acceptor
mode, there is no need to pass the query via a pipe, improving
latency and CPU usage, and also saving a thread.
Remi Gacogne [Mon, 4 Apr 2022 15:51:24 +0000 (17:51 +0200)]
dnsdist: Add USE_SINGLE_ACCEPTOR_THREAD option
Remi Gacogne [Fri, 1 Apr 2022 14:47:05 +0000 (16:47 +0200)]
dnsdist: Implement additional addresses on DoT/DoH frontends
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 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.
Otto Moerbeek [Tue, 27 Sep 2022 08:42:19 +0000 (10:42 +0200)]
Merge pull request #12020 from omoerbeek/rec-sl-command-line
rec: Make clear structured-logging-backend must be set on the command line
Remi Gacogne [Thu, 7 Jul 2022 10:50:40 +0000 (12:50 +0200)]
dnsdist: Use static arrays for the protocols, as suggested by Otto
Remi Gacogne [Thu, 30 Jun 2022 13:27:11 +0000 (15:27 +0200)]
dnsdist: Speed up dnsdist::Protocol() ctor
Otto Moerbeek [Tue, 27 Sep 2022 05:46:12 +0000 (07:46 +0200)]
Merge pull request #11768 from franklouwers/feature/rpmbuilds-include
Enable include-dir by default in RPM builds, to be in line with DEB builds
Otto Moerbeek [Mon, 26 Sep 2022 18:09:01 +0000 (20:09 +0200)]
Merge pull request #12021 from omoerbeek/rec-defer-accept-warning
rec: Properly guard TCP_DEFER_ACCEPT
Remi Gacogne [Mon, 26 Sep 2022 16:19:46 +0000 (18:19 +0200)]
Merge pull request #12023 from phonedph1/patch-35
dnsdist: Update rules-actions.rst
phonedph1 [Mon, 26 Sep 2022 15:31:32 +0000 (09:31 -0600)]
Update rules-actions.rst
Otto Moerbeek [Mon, 26 Sep 2022 14:28:46 +0000 (16:28 +0200)]
Properly guard TCP_DEFER_ACCEPT
Otto Moerbeek [Mon, 26 Sep 2022 14:22:08 +0000 (16:22 +0200)]
Merge pull request #11856 from omoerbeek/rec-no-more-xpf
rec: Remove XPF support
Otto Moerbeek [Mon, 26 Sep 2022 14:16:56 +0000 (16:16 +0200)]
Merge pull request #11989 from fredmorcos/fred/11927-rec-stl-exception
Improve error message when invalid values for `local-address` are provided in recursor config file
Otto Moerbeek [Mon, 26 Sep 2022 14:15:20 +0000 (16:15 +0200)]
Make clear structured-logging-backend must be set on the command line
aerique [Mon, 26 Sep 2022 11:05:39 +0000 (13:05 +0200)]
Merge pull request #12013 from aerique/feature/add-rec-48-to-repo-script
Add `rec-48` to repo test script.
Otto Moerbeek [Mon, 26 Sep 2022 10:48:31 +0000 (12:48 +0200)]
Merge pull request #12017 from omoerbeek/throw-long-label
Include (with precautions) offending data in messages about too long a label
Otto Moerbeek [Mon, 26 Sep 2022 10:45:50 +0000 (12:45 +0200)]
Merge pull request #12011 from omoerbeek/rec-snmp-debian-ubuntu
rec: Enable SNMP for debian and ubuntu builds.
Otto Moerbeek [Mon, 26 Sep 2022 10:38:57 +0000 (12:38 +0200)]
Merge pull request #12009 from omoerbeek/rec-snmp-used
Warn if snmp-agent is set but SNMP is not available.
Otto Moerbeek [Mon, 26 Sep 2022 09:44:59 +0000 (11:44 +0200)]
Merge pull request #11959 from omoerbeek/rec-sl-tweaks
rec: A few tweaks to structured logging calls
Otto Moerbeek [Mon, 26 Sep 2022 09:37:56 +0000 (11:37 +0200)]
Use naming convention: s/maxDNSNameLength/s_maxDNSNameLength
Otto Moerbeek [Mon, 26 Sep 2022 09:07:24 +0000 (11:07 +0200)]
Move const maxDNSNameLength to class, and use it where appropriate
Fred Morcos [Thu, 22 Sep 2022 15:22:52 +0000 (17:22 +0200)]
auth: Remove usage of parseService[4|6] and ServiceTuple
Fred Morcos [Thu, 22 Sep 2022 15:16:54 +0000 (17:16 +0200)]
Cleanup
Fred Morcos [Thu, 22 Sep 2022 15:16:12 +0000 (17:16 +0200)]
Formatting
Fred Morcos [Wed, 21 Sep 2022 12:00:49 +0000 (14:00 +0200)]
rec: Remove the now unused parseService[4|6] and ServiceTuple
Fred Morcos [Tue, 20 Sep 2022 13:05:13 +0000 (15:05 +0200)]
rec: Directly use ComboAddress for parsing local-address config value
Part of #11927
This is marked as "part of" because the parsing can still be greatly improved. For the
time being, the error message has been improved. However, an actual configuration file
parser - with line and column number tracking - would be ideal.
Fred Morcos [Tue, 20 Sep 2022 13:08:18 +0000 (15:08 +0200)]
Cleanup makeTCPServerSockets
Fred Morcos [Tue, 20 Sep 2022 13:03:47 +0000 (15:03 +0200)]
Cleanup makeUDPServerSockets
Fred Morcos [Wed, 14 Sep 2022 18:34:27 +0000 (20:34 +0200)]
rec: Make getHostname return an optional<string>
Also:
- Cleans up getHostname and has it use getMaxHostNameSize().
- Updates getCarbonHostName to use getHostname.
Peter van Dijk [Mon, 26 Sep 2022 08:07:33 +0000 (10:07 +0200)]
Merge pull request #12018 from darnuria/fix/jdnssec-link
fix #11997 jdnssec was broken link to repository directly.
Axel Viala [Mon, 26 Sep 2022 08:05:12 +0000 (10:05 +0200)]
jdnssec was broken link to repository directly.
Otto Moerbeek [Mon, 26 Sep 2022 07:29:11 +0000 (09:29 +0200)]
Include (with precautions) offending data in messages about too long a label.
Fixes #12014
Otto Moerbeek [Mon, 26 Sep 2022 07:48:03 +0000 (09:48 +0200)]
Merge pull request #12016 from omoerbeek/rec-xpf-deprecate-since
Say since when XPF has been deprecated in rec
Otto Moerbeek [Mon, 26 Sep 2022 07:43:57 +0000 (09:43 +0200)]
Say since when XPF has been deprecated in rec
Otto Moerbeek [Mon, 26 Sep 2022 07:40:49 +0000 (09:40 +0200)]
Merge pull request #12015 from omoerbeek/rec-eol-plus-fixes
Only say EOL if a version is actually EOL, plus some fixes to cross references.
Otto Moerbeek [Mon, 26 Sep 2022 07:34:40 +0000 (09:34 +0200)]
Only say EOL if a version is actually EOL, plus some fixes to cross references.
Otto Moerbeek [Fri, 23 Sep 2022 10:24:55 +0000 (12:24 +0200)]
Do not use compiler flags from net-snmp, it adds flags we do not want.
Erik Winkels [Fri, 23 Sep 2022 11:50:12 +0000 (13:50 +0200)]
Add `rec-48` to repo test script.
Otto Moerbeek [Fri, 23 Sep 2022 08:09:22 +0000 (10:09 +0200)]
Merge pull request #11991 from omoerbeek/rec-prep-4.8.0-alpha1
Prep for rec-4.8.0-alpha1
Otto Moerbeek [Fri, 23 Sep 2022 07:36:22 +0000 (09:36 +0200)]
rec: Enable SNMP for debian and ubuntu builds.
Fixes #11999
Otto Moerbeek [Fri, 23 Sep 2022 07:29:06 +0000 (09:29 +0200)]
Merge pull request #12010 from omoerbeek/coverity-
20220921 -followup
Folowup to #11986: coverity fixes
Otto Moerbeek [Fri, 23 Sep 2022 05:42:17 +0000 (07:42 +0200)]
Folowup to #11986: coverity fixes
Typo in annotations and one missed
Otto Moerbeek [Fri, 23 Sep 2022 05:31:35 +0000 (07:31 +0200)]
Warn if snmp-agent is set but SNMP is not available.
Fixes #11998