]>
git.ipfire.org Git - thirdparty/pdns.git/log
Otto Moerbeek [Fri, 26 Aug 2022 13:02:46 +0000 (15:02 +0200)]
Proces review comments by rgacogne, thanks!
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.
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
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 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 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 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
Kees Monshouwer [Wed, 3 Aug 2022 14:34:32 +0000 (16:34 +0200)]
auth: add missing catalog types in getAllDomains()
Peter van Dijk [Fri, 5 Aug 2022 16:39:53 +0000 (18:39 +0200)]
Merge pull request #11822 from Habbie/nits-
20220803
auth: sql/catalog nits
Asgeir Storesund Nilsen [Thu, 4 Aug 2022 17:46:06 +0000 (19:46 +0200)]
Also reconnect on ENETUNREACH.
Ref. #4155
Nils Wisiol [Wed, 3 Aug 2022 23:03:57 +0000 (19:03 -0400)]
dnsdist: docs clarification on cookie hashing
Peter van Dijk [Wed, 3 Aug 2022 09:47:14 +0000 (11:47 +0200)]
auth sqlite3: abort schema transactions on error
Peter van Dijk [Wed, 3 Aug 2022 09:21:40 +0000 (11:21 +0200)]
sqlite3 catalog zones: fix query typos
Peter van Dijk [Wed, 3 Aug 2022 09:21:29 +0000 (11:21 +0200)]
sqlite3 schema migration: fix typo
Otto Moerbeek [Wed, 3 Aug 2022 07:44:50 +0000 (09:44 +0200)]
Merge pull request #11820 from omoerbeek/rec-load-lua-errhandling
rec: Handle file related errors initially loading Lua script.
Otto Moerbeek [Wed, 3 Aug 2022 06:56:48 +0000 (08:56 +0200)]
Handle error initially loading Lua script.
Fixes #11818 #10079
Otto Moerbeek [Wed, 3 Aug 2022 06:15:00 +0000 (08:15 +0200)]
Merge pull request #11811 from zeha/recrmoldjs
rec: remove unused jsrender.js
Chris Hofstaedtler [Tue, 2 Aug 2022 15:31:45 +0000 (17:31 +0200)]
rec: rename local.js to help cache issue with Firefox
Peter van Dijk [Tue, 2 Aug 2022 14:31:20 +0000 (16:31 +0200)]
Merge pull request #11082 from zeha/auth-merge-main
auth: merge "main" code into new auth-main.(cc|hh)
Chris Hofstaedtler [Tue, 2 Aug 2022 13:49:13 +0000 (15:49 +0200)]
pdns/auth-main.*: format-code
Chris Hofstaedtler [Wed, 8 Dec 2021 19:46:39 +0000 (20:46 +0100)]
auth: merge "main" code into new auth-main.(cc|hh)
Merge common_startup.cc and receiver.cc into auth-main.cc, and
rename common_startup.hh into receiver.hh.
This is a very minimal merge with no cleanup. Its intention is to
make understanding the startup code path easier, by avoiding having
to look at two compilation units to determine the exact order.
Peter van Dijk [Tue, 2 Aug 2022 13:44:40 +0000 (15:44 +0200)]
Merge pull request #11760 from Habbie/lua-shared-tcp
auth LUA: make shared mode work for TCP queries
Peter van Dijk [Tue, 2 Aug 2022 13:44:12 +0000 (15:44 +0200)]
Merge pull request #11808 from Habbie/dnsbulktest-init-var
dnsbulktest: initialise struct member; use correct type when setting it
Peter van Dijk [Tue, 2 Aug 2022 13:33:10 +0000 (15:33 +0200)]
Merge pull request #11815 from mind04/auth-notify
auth: make sure a notified zone is in the zonecache
Peter van Dijk [Tue, 2 Aug 2022 13:31:30 +0000 (15:31 +0200)]
Merge pull request #11759 from mind04/auth-tsig-cleanup
auth: getTSIGKey(s) cleanup
Peter van Dijk [Tue, 2 Aug 2022 12:48:50 +0000 (14:48 +0200)]
rename s_LUA to LUA where it is not a static
Peter van Dijk [Tue, 2 Aug 2022 12:48:33 +0000 (14:48 +0200)]
LUA records: describe shared state UDP/TCP difference
Kees Monshouwer [Tue, 2 Aug 2022 11:54:53 +0000 (13:54 +0200)]
auth: make sure a notified zone is in the zonecache
Otto Moerbeek [Tue, 2 Aug 2022 10:53:44 +0000 (12:53 +0200)]
Merge pull request #11780 from omoerbeek/rec-save-last-nsspeed
rec: Save the last nsspeed recorded plus output it in rec_control dump-nsspeeds
Otto Moerbeek [Tue, 2 Aug 2022 08:19:58 +0000 (10:19 +0200)]
Some more `auto` instead of explicit types
Otto Moerbeek [Tue, 2 Aug 2022 08:17:18 +0000 (10:17 +0200)]
Merge pull request #11714 from omoerbeek/rec-sl-queries
rec: stuctured logging for incoming and outgoing subsystems
Chris Hofstaedtler [Tue, 2 Aug 2022 07:29:49 +0000 (09:29 +0200)]
rec: improve network error handling
Chris Hofstaedtler [Tue, 2 Aug 2022 07:23:35 +0000 (09:23 +0200)]
rec: un-xhtml-ify html
Chris Hofstaedtler [Tue, 2 Aug 2022 07:23:20 +0000 (09:23 +0200)]
rec: remove jquery
Chris Hofstaedtler [Tue, 2 Aug 2022 07:19:14 +0000 (09:19 +0200)]
rec: set template output without jquery
Chris Hofstaedtler [Tue, 2 Aug 2022 07:17:02 +0000 (09:17 +0200)]
rec: use Array.forEach instead of jquery.each
Chris Hofstaedtler [Tue, 2 Aug 2022 07:10:51 +0000 (09:10 +0200)]
rec: bind event handler without jquery
Also remove reference to not-existing filter2 checkbox.
Chris Hofstaedtler [Tue, 2 Aug 2022 07:08:42 +0000 (09:08 +0200)]
rec: read filter1 checkbox without jquery
Chris Hofstaedtler [Tue, 2 Aug 2022 07:07:27 +0000 (09:07 +0200)]
rec: show/hide connection error/status without jquery
Chris Hofstaedtler [Tue, 2 Aug 2022 07:04:11 +0000 (09:04 +0200)]
rec: read handlebar templates without $()
Chris Hofstaedtler [Tue, 2 Aug 2022 07:00:35 +0000 (09:00 +0200)]
rec: use defer instead of $(document).ready
Chris Hofstaedtler [Tue, 2 Aug 2022 06:52:12 +0000 (08:52 +0200)]
rec: use fetch instead of jQuery.ajax/getJSON
Peter van Dijk [Tue, 2 Aug 2022 07:04:32 +0000 (09:04 +0200)]
Merge pull request #11772 from mind04/auth-catalog-zone
Implement catalog zones in the authoritative server