]>
git.ipfire.org Git - thirdparty/pdns.git/log
Otto Moerbeek [Tue, 6 Sep 2022 14:02:25 +0000 (16:02 +0200)]
Docs and setting (edns-padding-out, defaults to "yes").
Otto Moerbeek [Tue, 6 Sep 2022 11:30:21 +0000 (13:30 +0200)]
Implement padding of (DoT) messages to auth
Remi Gacogne [Mon, 5 Sep 2022 07:38:49 +0000 (09:38 +0200)]
Merge pull request #11889 from FredericDT/master
dnsdist: Add local ComboAddress parameter for SBind() at TeeAction()
Otto Moerbeek [Fri, 2 Sep 2022 11:25:08 +0000 (13:25 +0200)]
Merge pull request #11896 from omoerbeek/rec-11881-followup
Fix build if dnstap is not enabled
Otto Moerbeek [Fri, 2 Sep 2022 10:27:53 +0000 (12:27 +0200)]
Fix build if dnstap is not enabled
Remi Gacogne [Fri, 2 Sep 2022 09:35:22 +0000 (11:35 +0200)]
Merge pull request #11883 from rgacogne/ddist-optional-rings
dnsdist: Make recording queries/responses in the ringbuffers optional
Peter van Dijk [Fri, 2 Sep 2022 07:24:03 +0000 (09:24 +0200)]
Merge pull request #11836 from Habbie/catalog-column-order
auth catalog zones: simplify migration schemas by appending columns
Fred Morcos [Fri, 2 Sep 2022 06:53:49 +0000 (08:53 +0200)]
Merge pull request #11823 from fredmorcos/handle-lua-script-loading-errors
Handle Lua script loading errors
Remi Gacogne [Thu, 1 Sep 2022 12:22:30 +0000 (14:22 +0200)]
dnsdist: Deprecated setRingBuffersLockRetries()
Fred Morcos [Wed, 3 Aug 2022 11:34:01 +0000 (13:34 +0200)]
Cleanup
Fred Morcos [Wed, 3 Aug 2022 11:32:54 +0000 (13:32 +0200)]
Formatting
Fred Morcos [Wed, 3 Aug 2022 11:09:38 +0000 (13:09 +0200)]
Handle file-related errors when loading Lua scripts
Peter van Dijk [Thu, 1 Sep 2022 07:34:44 +0000 (09:34 +0200)]
Merge pull request #11813 from zeha/webnoversion
auth/rec web: stop sending Server: header
Peter van Dijk [Thu, 1 Sep 2022 05:41:17 +0000 (07:41 +0200)]
Merge pull request #11891 from Habbie/no-install-recommends
builder: add --no-install-recommends to apt-get install
Peter van Dijk [Wed, 31 Aug 2022 10:47:25 +0000 (12:47 +0200)]
builder: add --no-install-recommends to apt-get install
This was triggered by Ubuntu Kinetic pulling in a version of
systemd-resolved that breaks inside Docker. systemd-resolved
is an indirect (via Recommends somewhere) dependency of devscripts,
which we need.
However, if we were relying on Recommends, that was a bug, so I'm
applying the flag to all distributions.
FredericDT [Wed, 31 Aug 2022 09:53:47 +0000 (17:53 +0800)]
Not saving ComboAddress d_local in class TeeAction this time
Accoding to https://github.com/PowerDNS/pdns/pull/11889
> rgacogne
> Since we only use the local address in the constructor, I don't think we need to keep it around?
>
> FredericDT
> Possibly using that d_local in statistical function?
>
> rgacogne
> I would prefer not keeping it for now, we can always add it back later when we actually decide to do something with it :)
Signed-off-by: FredericDT <frederic.dt.twh@gmail.com>
FredericDT [Wed, 31 Aug 2022 08:09:22 +0000 (16:09 +0800)]
Commit docs in pdns/dnsdistdist/docs/rules-actions.rst
The optional parameter `local` shall be added in version 1.8.0
Signed-off-by: FredericDT <frederic.dt.twh@gmail.com>
FredericDT [Wed, 31 Aug 2022 08:02:19 +0000 (16:02 +0800)]
Drop setLocalBindAddress bool parameter, pass
boost::optional<ComboAddress> instead.
According to https://github.com/PowerDNS/pdns/pull/11889
> An extra boolean flag is no needed for boost::optional<x>
Thanks Moerbeek and Gacogne
Signed-off-by: FredericDT <frederic.dt.twh@gmail.com>
FredericDT [Wed, 31 Aug 2022 01:54:04 +0000 (09:54 +0800)]
dnsdist: Commit TeeAction optional local parameter docs and console
keywords
Signed-off-by: FredericDT <frederic.dt.twh@gmail.com>
FredericDT [Tue, 30 Aug 2022 12:34:35 +0000 (20:34 +0800)]
Add local ComboAddress parameter for SBind() at TeeAction()
Uasge:
`addAction(AllRule(), TeeAction("192.0.2.54", false, "192.0.2.53"))`
In which case, "192.0.2.54" is the ComboAddress of receiver, "192.0.2.53"
is the ComboAddress of sender.
Signed-off-by: FredericDT <frederic.dt.twh@gmail.com>
Remi Gacogne [Tue, 30 Aug 2022 15:38:30 +0000 (17:38 +0200)]
Merge pull request #11839 from rgacogne/ddist-ebpf-apparmor-memlock
dnsdist: Document that AppArmor can impact eBPF operations
Otto Moerbeek [Mon, 29 Aug 2022 10:51:50 +0000 (12:51 +0200)]
Merge pull request #11848 from omoerbeek/rec-throttled-maxqperq
rec: Also check qperq limit if throttling happened, as it increases counters.
Otto Moerbeek [Mon, 29 Aug 2022 10:14:10 +0000 (12:14 +0200)]
Merge pull request #11867 from omoerbeek/rec-control-version
rec_control: test for "--version" before requiring an argument.
Peter van Dijk [Mon, 29 Aug 2022 08:15:30 +0000 (10:15 +0200)]
Merge pull request #11882 from fredmorcos/fred/11731-fix-pdnsutil-query-logging-segfault
Log "NULL" for nullptr-bound properties instead of dereferencing
Otto Moerbeek [Fri, 26 Aug 2022 14:36:11 +0000 (16:36 +0200)]
Merge pull request #11881 from omoerbeek/pb-queueData-log
Reorganize protobuf queueData() with respect to logging
Otto Moerbeek [Fri, 26 Aug 2022 13:02:46 +0000 (15:02 +0200)]
Proces review comments by rgacogne, thanks!
Remi Gacogne [Tue, 16 Aug 2022 15:07:14 +0000 (17:07 +0200)]
dnsdist: Make recording queries/responses in the ringbuffers optional
Fred Morcos [Wed, 24 Aug 2022 21:13:49 +0000 (23:13 +0200)]
Log "NULL" for nullptr-bound properties instead of dereferencing
Fixes the issue where pdnsutil would segfault when query logging is enabled, and would
leave the db unmodified. Surprisingly, the segfault only happened on FreeBSD.
Fixes #11731
Otto Moerbeek [Wed, 24 Aug 2022 07:56:26 +0000 (09:56 +0200)]
Reorganize queueData() with respect to logging.
Let queueData() return a status and log that via a program supplied helper.
This way, the program specific (recursor,dnsdist) logging isn't polluting the common code.
There are a few other cases that need to be dealt with some day.
dnsdist log levels should be reviewed (I copied the existing), they might be too verbose.
Peter van Dijk [Tue, 23 Aug 2022 14:21:36 +0000 (16:21 +0200)]
use TEXT consistently between pg schema and migration
Peter van Dijk [Tue, 23 Aug 2022 14:19:31 +0000 (16:19 +0200)]
do sqlite migration without temp table
Otto Moerbeek [Tue, 23 Aug 2022 14:15:54 +0000 (16:15 +0200)]
Merge pull request #11878 from omoerbeek/rec-psa-2022-02-tweaks
PSA 2022-02 tweaks and add PR#'s
Otto Moerbeek [Tue, 23 Aug 2022 11:36:02 +0000 (13:36 +0200)]
PSA 2022-02 tweaks and add PR#'s
Otto Moerbeek [Tue, 23 Aug 2022 10:17:02 +0000 (12:17 +0200)]
Merge pull request #11874 from omoerbeek/rec-pb-size
Rec: check protobuf size
Otto Moerbeek [Tue, 23 Aug 2022 09:55:38 +0000 (11:55 +0200)]
Merge pull request #11873 from omoerbeek/rec-prep-
20220823
Rec prep
20220823
Otto Moerbeek [Tue, 23 Aug 2022 09:50:34 +0000 (11:50 +0200)]
Apply suggestions from code review
Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
Otto Moerbeek [Fri, 5 Aug 2022 08:21:01 +0000 (10:21 +0200)]
Check variable length cases to not create protobufs > max / 2
Otto Moerbeek [Wed, 3 Aug 2022 09:33:02 +0000 (11:33 +0200)]
Check sizes of generated protobuf messages
Otto Moerbeek [Tue, 23 Aug 2022 07:13:56 +0000 (09:13 +0200)]
Merge pull request #11869 from omoerbeek/rec-maintenance-metrics
rec: Keep time and count metrics when maintenance is called.
Otto Moerbeek [Mon, 22 Aug 2022 12:00:15 +0000 (14:00 +0200)]
Add 2022-02 PSA
Otto Moerbeek [Mon, 22 Aug 2022 12:50:03 +0000 (14:50 +0200)]
These metrics are counters
Co-authored-by: Remi Gacogne <github@coredump.fr>
Peter van Dijk [Mon, 22 Aug 2022 12:43:35 +0000 (14:43 +0200)]
Merge pull request #11842 from mind04/auth-remotes
auth: use getInnerRemote() for the remotes ring
Peter van Dijk [Mon, 8 Aug 2022 13:51:50 +0000 (15:51 +0200)]
auth catalog zones: simplify migration schemas by appending columns
Otto Moerbeek [Mon, 22 Aug 2022 11:52:03 +0000 (13:52 +0200)]
Fix MIB, it was missing the objects defs.
Otto Moerbeek [Mon, 22 Aug 2022 09:40:38 +0000 (11:40 +0200)]
rec: Keep time and count metrics when maintenance is called.
Fixes #6981
Otto Moerbeek [Mon, 22 Aug 2022 08:30:44 +0000 (10:30 +0200)]
rec_control: test for "--version" before requiring an argument.
Fixes #11864
Otto Moerbeek [Mon, 22 Aug 2022 07:29:57 +0000 (09:29 +0200)]
Prep for August 23 2022 releases
Otto Moerbeek [Mon, 22 Aug 2022 06:49:34 +0000 (08:49 +0200)]
Merge pull request #11849 from omoerbeek/rec-dns64-vs-rcode
Rec: consider dns64 processing in more cases than Rcode == NoError
Otto Moerbeek [Mon, 22 Aug 2022 05:52:13 +0000 (07:52 +0200)]
Merge pull request #11859 from omoerbeek/rec-incfiles
rec: only include minimized js files and remove unused underscore*.js
Otto Moerbeek [Fri, 19 Aug 2022 10:01:16 +0000 (12:01 +0200)]
Two more DNS64 test cases: "timeout on AAAA" and "Lua handled things"
Remi Gacogne [Fri, 19 Aug 2022 07:37:48 +0000 (09:37 +0200)]
Merge pull request #11819 from darnuria/auth-tsan-supp
[tsan] add data race suppression for avg_latency and send_latencyres …
Axel Viala [Tue, 2 Aug 2022 21:06:22 +0000 (23:06 +0200)]
[tsan] Data race suppression for avg_latency and send_latency globals.
See <https://github.com/PowerDNS/pdns/issues/11814>
Otto Moerbeek [Wed, 17 Aug 2022 15:15:33 +0000 (17:15 +0200)]
Update pdns/pdns_recursor.cc
Co-authored-by: Remi Gacogne <github@coredump.fr>
Otto Moerbeek [Wed, 17 Aug 2022 10:04:40 +0000 (12:04 +0200)]
Merge pull request #11672 from phonedph1/patch-33
rec: make rec zone files with trailing dot
Otto Moerbeek [Wed, 17 Aug 2022 07:48:41 +0000 (09:48 +0200)]
More consistent naming
Otto Moerbeek [Wed, 17 Aug 2022 07:35:39 +0000 (09:35 +0200)]
Only include files really needed: skip non-mminimzed versions and LICENSE and fix dependencies
Otto Moerbeek [Wed, 17 Aug 2022 07:33:08 +0000 (09:33 +0200)]
Clean up javascript files
- d3.js is actually the minimized verison of d3.v3.js
- introduce minimized version of handlebars
- delete underscore*.js as it is unused
Otto Moerbeek [Tue, 16 Aug 2022 12:45:38 +0000 (14:45 +0200)]
Merge pull request #11857 from omoerbeek/rec-link-libcrypto-rec_control
res: Set rec_control_LDFLAGS, needed for MacOS or any platforms where libcrypto is not in default lib path.
Remi Gacogne [Tue, 16 Aug 2022 12:44:48 +0000 (14:44 +0200)]
Merge pull request #11852 from rgacogne/ddist-less-contention-servers
dnsdist: Slightly reduce contention around a pool's servers
Otto Moerbeek [Tue, 16 Aug 2022 12:19:39 +0000 (14:19 +0200)]
Merge pull request #11850 from fredmorcos/fred/11795-fix-recursor-not-responsive-after-config-reload
Fix recursor not responsive after Lua config reload
Otto Moerbeek [Tue, 16 Aug 2022 12:07:27 +0000 (14:07 +0200)]
Document desired DNS674 behaviour and tweak implementation to adhere to docs.
Remi Gacogne [Tue, 16 Aug 2022 12:15:59 +0000 (14:15 +0200)]
Merge pull request #11851 from rgacogne/ddist-doh-only-call-getsockname-once
dnsdist: Only call getsockname() once per incoming DoH connection
Remi Gacogne [Tue, 16 Aug 2022 11:35:27 +0000 (13:35 +0200)]
dnsdist: Make ServerPolicy::NumberedServerVector const
As suggested by Otto (Thanks!).
Remi Gacogne [Tue, 16 Aug 2022 11:25:58 +0000 (13:25 +0200)]
Merge pull request #11845 from rgacogne/ddist-better-stats-handling
dnsdist: Better handling of the different types of metrics
Remi Gacogne [Tue, 16 Aug 2022 11:24:34 +0000 (13:24 +0200)]
Merge pull request #11844 from rgacogne/ddist-destroy-initial-health-mplexer
dnsdist: Do not keep the mplexer created for the initial health-check around
Remi Gacogne [Tue, 16 Aug 2022 11:24:04 +0000 (13:24 +0200)]
Merge pull request #11798 from rgacogne/ddist-fix-cache-counters-latency
dnsdist: Fix latency and counters update for UDP cache hits
Remi Gacogne [Tue, 16 Aug 2022 11:23:49 +0000 (13:23 +0200)]
Merge pull request #11790 from rgacogne/ddist-fix-exception-discovery
dnsdist: Use the correct delay when a backend cannot be upgraded to Do{T,H}
Otto Moerbeek [Tue, 16 Aug 2022 11:23:41 +0000 (13:23 +0200)]
Merge pull request #11812 from zeha/recnojquery
Recursor: replace/remove jQuery
Otto Moerbeek [Tue, 16 Aug 2022 11:21:12 +0000 (13:21 +0200)]
Merge pull request #11854 from omoerbeek/rec-slog-ws-followup
rec: structured logging for sebserver followup: An HttpException creates a new response body.
Otto Moerbeek [Tue, 16 Aug 2022 10:31:46 +0000 (12:31 +0200)]
Set rec_control_LDFLAGS, needed for MacOS or any platforms where libcryto is not in default lib path.
Fixes #11855
Chris Hofstaedtler [Tue, 16 Aug 2022 10:12:52 +0000 (12:12 +0200)]
rec js: use searchParams.append to build URL
Chris Hofstaedtler [Wed, 3 Aug 2022 18:48:16 +0000 (20:48 +0200)]
rec: split config for fetch out of get_json
Makes for easier development of the embedded JS/HTML files.
To use this, use the commented out fetchConfig, and open index.html
in a browser directly from the filesystem.
Otto Moerbeek [Tue, 16 Aug 2022 08:00:52 +0000 (10:00 +0200)]
An HttpException creates a new response body.
Initialize the s_dlog field of that new response. I would prefer to do that in the
exception's ct, but we do not have the uniqueid there.
Remi Gacogne [Mon, 15 Aug 2022 19:31:23 +0000 (21:31 +0200)]
Merge pull request #11838 from rgacogne/ddist-fix-cdb-tests
dnsdist: Fix a possible race in the CDB reload regression tests
Fred Morcos [Fri, 12 Aug 2022 11:25:25 +0000 (13:25 +0200)]
Rec: Move FrameStreamServersInfo to rec-main
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
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
Remi Gacogne [Fri, 12 Aug 2022 08:50:04 +0000 (10:50 +0200)]
dnsdist: Slightly reduce contention around a pool's servers
We only need to take the lock to get the shared pointer, as the
actual content is guaranteed not to change, so we do not need to
hold the lock while we iterate over the servers list to check
whether they are up, or what their current outstanding count is.
Otto Moerbeek [Fri, 12 Aug 2022 08:28:37 +0000 (10:28 +0200)]
Transform a AAAA NoData result into a FormErr in Lua and see if dns64 is still applied
Otto Moerbeek [Fri, 12 Aug 2022 07:18:04 +0000 (09:18 +0200)]
Move dns64 processing before postresolve processing
Remi Gacogne [Thu, 11 Aug 2022 15:58:29 +0000 (17:58 +0200)]
dnsdist: Only call getsockname() once per incoming DoH connection
The current code is calling h2o_socket_getpeername() and
h2o_socket_getsockname() once per DoH _query_, and while the former
is cheap because h2o caches the result for us, the latter is actually
expensive, so this code caches both values so that we only retrieve
them once per DoH connection.
Otto Moerbeek [Wed, 3 Aug 2022 08:10:22 +0000 (10:10 +0200)]
Further simplification of processing of policy result
Otto Moerbeek [Wed, 3 Aug 2022 07:34:54 +0000 (09:34 +0200)]
When considering dns64, we also should consider handling RCodes != 0.
This make the logic as described in RFC 6147, section 5.1
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.
Otto Moerbeek [Thu, 11 Aug 2022 06:46:35 +0000 (08:46 +0200)]
Merge pull request #11843 from omoerbeek/rec-authzones-wipe
Clear the caches *after* loading authzones.
Remi Gacogne [Wed, 10 Aug 2022 14:56:55 +0000 (16:56 +0200)]
dnsdist: Better handling of the different types of metrics
This commit ensures that we don't crash if we forget to update a part of code
if we ever add a new type of metrics, as happened in
9f4fa5ae01efa878d2aa27e4398740d7ed6ef01f .
Remi Gacogne [Wed, 10 Aug 2022 12:55:44 +0000 (14:55 +0200)]
dnsdist: Do not keep the mplexer created for the initial health-check around
We do not need after that initial health-check round so it is only wasting
(a very small amount of) memory and one file descriptor at that point.
Otto Moerbeek [Wed, 10 Aug 2022 11:30:24 +0000 (13:30 +0200)]
Clear the caches *after* loading authzones.
Kees Monshouwer [Wed, 10 Aug 2022 10:17:01 +0000 (12:17 +0200)]
auth: use getInnerRemote() for the remotes ring
Remi Gacogne [Wed, 10 Aug 2022 06:08:26 +0000 (08:08 +0200)]
Merge pull request #11830 from asgeirn/dnsdist-4155-enetunreach
Also reconnect on ENETUNREACH.
Remi Gacogne [Tue, 9 Aug 2022 16:05:01 +0000 (18:05 +0200)]
dnsdist: Mention the need to allow CAP_BPF in the AppArmor policy in the unit file
Remi Gacogne [Tue, 9 Aug 2022 15:59:19 +0000 (17:59 +0200)]
dnsdist: Document that AppArmor can impact eBPF operations
Remi Gacogne [Tue, 9 Aug 2022 11:22:25 +0000 (13:22 +0200)]
dnsdist: Fix a possible race in the CDB reload regression tests
Peter van Dijk [Mon, 8 Aug 2022 10:40:48 +0000 (12:40 +0200)]
Merge pull request #11825 from mind04/pdns-catalog-next
Pdns catalog next
Asgeir Storesund Nilsen [Mon, 8 Aug 2022 09:01:42 +0000 (11:01 +0200)]
Use stringerror
Co-authored-by: Remi Gacogne <github@coredump.fr>
Remi Gacogne [Mon, 8 Aug 2022 08:25:21 +0000 (10:25 +0200)]
Merge pull request #11827 from nils-wisiol/clarify_hashing_docs
dnsdist: docs clarification on cookie hashing
Remi Gacogne [Mon, 8 Aug 2022 07:45:17 +0000 (09:45 +0200)]
Merge pull request #11807 from Habbie/dnsdist-addrule-typo
dnsdist docs: fix addRule typo
Kees Monshouwer [Fri, 5 Aug 2022 12:13:08 +0000 (14:13 +0200)]
auth: fix backend page layout
Kees Monshouwer [Fri, 5 Aug 2022 08:50:42 +0000 (10:50 +0200)]
auth: fix broken link in catalog doc
Kees Monshouwer [Wed, 3 Aug 2022 14:36:28 +0000 (16:36 +0200)]
auth: fix catalogDiff() coverity report