]>
git.ipfire.org Git - thirdparty/pdns.git/log
Remi Gacogne [Fri, 22 Sep 2023 09:17:09 +0000 (11:17 +0200)]
dnsscope: Add the new `--port` option to the man page
Remi Gacogne [Fri, 22 Sep 2023 09:05:46 +0000 (11:05 +0200)]
dnsscope: Add a `--port` option to select a custom port
Otto Moerbeek [Thu, 21 Sep 2023 08:03:46 +0000 (10:03 +0200)]
Merge pull request #13281 from omoerbeek/omoerbeek-patch-1
rec: Clear taskQueue at start of test run
Otto Moerbeek [Thu, 21 Sep 2023 06:43:29 +0000 (08:43 +0200)]
rec: Clear taskQueue at start of tets run
Not all tests leave an empty queue.
Test that use syncres get an auto clear, but this test does not use syncres.
Otto Moerbeek [Wed, 20 Sep 2023 12:05:28 +0000 (14:05 +0200)]
Merge pull request #13278 from omoerbeek/rec-pc-task-unsupported
rec: packetcache submit task fixes
Otto Moerbeek [Wed, 20 Sep 2023 11:22:43 +0000 (13:22 +0200)]
Merge pull request #13279 from omoerbeek/rec-unittest-rnd
rec: Switch randomization of unit tests back on
Otto Moerbeek [Wed, 20 Sep 2023 11:22:18 +0000 (13:22 +0200)]
Merge pull request #13276 from omoerbeek/rec-conf-dir
rec: Fix sysconfdir handling in new settings code
Otto Moerbeek [Wed, 20 Sep 2023 11:22:01 +0000 (13:22 +0200)]
Merge pull request #13277 from omoerbeek/rec-log-level
rec: allow loglevel to be set to levels < 3
Otto Moerbeek [Tue, 19 Sep 2023 09:13:23 +0000 (11:13 +0200)]
Reformat and use specific NOLINT
Otto Moerbeek [Tue, 19 Sep 2023 09:03:43 +0000 (11:03 +0200)]
Add test for TTL perc bug found while working on issue #13266
Remi Gacogne [Wed, 20 Sep 2023 08:42:34 +0000 (10:42 +0200)]
Merge pull request #13275 from dmachard/ddist-export-downstream-addr
dnsdist: add lua binding to downstream address
dmachard [Tue, 19 Sep 2023 15:47:44 +0000 (17:47 +0200)]
wrap DownstreamState instead of ComboAddress
Otto Moerbeek [Tue, 19 Sep 2023 11:46:03 +0000 (13:46 +0200)]
Merge pull request #13252 from omoerbeek/rec-settings-make
rec: Add make -C rust clean when generate.py is run
Otto Moerbeek [Tue, 19 Sep 2023 11:43:25 +0000 (13:43 +0200)]
Merge pull request #13195 from omoerbeek/rec-tcp-in
rec: move tcp-in processing to dedicated thread(s)
Otto Moerbeek [Tue, 19 Sep 2023 11:07:08 +0000 (13:07 +0200)]
rec: Switch randomization of unit tests back on
The mthread fixes from #13251 should allow that now
Otto Moerbeek [Tue, 19 Sep 2023 07:47:31 +0000 (09:47 +0200)]
rec: allow loglevel to be set to levels < 3
Fixes #13264
Also document what happens if quiet is set.
Remi Gacogne [Tue, 19 Sep 2023 07:47:06 +0000 (09:47 +0200)]
Merge pull request #13274 from rgacogne/ddist-enable-h2o-back
dnsdist: Enable back h2o support in our packages
Otto Moerbeek [Sat, 16 Sep 2023 13:57:27 +0000 (15:57 +0200)]
Improve config-dir docs a bit
Otto Moerbeek [Tue, 19 Sep 2023 07:24:52 +0000 (09:24 +0200)]
Small fixes in comments and log messages from review
Otto Moerbeek [Sat, 16 Sep 2023 12:58:25 +0000 (14:58 +0200)]
rec: Fix sysconfdir handling in new settings code
Partly from @RvdE
Fixes #13259
Otto Moerbeek [Tue, 19 Sep 2023 06:57:15 +0000 (08:57 +0200)]
Some delinting of common cache code
Otto Moerbeek [Mon, 18 Sep 2023 18:17:53 +0000 (20:17 +0200)]
Merge pull request #13258 from omoerbeek/rec-yaml-conv-docs
rec: Clarify file name and placement rules for converted old-style files
dmachard [Mon, 18 Sep 2023 16:25:26 +0000 (18:25 +0200)]
dnsdist: add lua binding to downstream addr
Remi Gacogne [Mon, 18 Sep 2023 11:47:44 +0000 (13:47 +0200)]
dnsdist: Document that h2o support is no longer built by default
Remi Gacogne [Mon, 18 Sep 2023 11:47:19 +0000 (13:47 +0200)]
dnsdist: Enable back h2o support in our packages
As we promised to do.
Remi Gacogne [Mon, 18 Sep 2023 10:20:44 +0000 (12:20 +0200)]
Merge pull request #13269 from rgacogne/ddist-doc-fix-underline-too-short
dnsdist: Fix too short underline for latency-doh-avg1000000 title
Otto Moerbeek [Mon, 18 Sep 2023 09:38:10 +0000 (11:38 +0200)]
Prevent lookups for unsupported qtypes or rcode != 0 to submit refresh tasks
Peter van Dijk [Mon, 18 Sep 2023 09:18:11 +0000 (11:18 +0200)]
Merge pull request #13245 from Habbie/gmysql-drop-opt-reconnect
smysql: stop explicity setting MYSQL_OPT_RECONNECT to 0
Remi Gacogne [Mon, 18 Sep 2023 09:17:49 +0000 (11:17 +0200)]
Merge pull request #13192 from aj-gh/gss-tsig-featuremsg
Auth: Improve error message for missing GSS-TSIG feature
Peter van Dijk [Mon, 18 Sep 2023 08:54:12 +0000 (10:54 +0200)]
add a missing space to format the changelog correctly
Remi Gacogne [Mon, 18 Sep 2023 07:45:47 +0000 (09:45 +0200)]
dnsdist: Fix too short underline for latency-doh-avg1000000 title
Remi Gacogne [Mon, 18 Sep 2023 08:30:29 +0000 (10:30 +0200)]
Merge pull request #13263 from rgacogne/ddist-190-a1-changelog-secpoll
dnsdist: Add ChangeLog and update secpoll for 1.9.0-alpha1
Remi Gacogne [Mon, 18 Sep 2023 08:00:02 +0000 (10:00 +0200)]
secpoll: Don't advise updating from dnsdist's pre-release 1.9.0-alpha1
Remi Gacogne [Fri, 15 Sep 2023 12:55:40 +0000 (14:55 +0200)]
Merge pull request #13261 from rgacogne/ddist-fix-spurious-failures-async-unit-tests
dnsdist: Prevent spurious failures of the async unit tests
Remi Gacogne [Fri, 15 Sep 2023 12:02:25 +0000 (14:02 +0200)]
dnsdist: Add ChangeLog and update secpoll for 1.9.0-alpha1
Remi Gacogne [Fri, 15 Sep 2023 09:39:39 +0000 (11:39 +0200)]
dnsdist: Uglify the code to make the formatter happy
Remi Gacogne [Fri, 15 Sep 2023 09:32:33 +0000 (11:32 +0200)]
dnsdist: Prevent spurious failures of the async unit tests
The events should be triggered either almost immediately or after
10 ms, but we have seen many spurious failures on our CI, likely
because the box is overloaded, so sleep for up to 100 ms to be sure.
I managed to reproduce the issue locally by running this command in
parallel of the tests, for reference: `stress --cpu <number of HT cores>`.
Remi Gacogne [Fri, 15 Sep 2023 09:10:41 +0000 (11:10 +0200)]
Merge pull request #13256 from rgacogne/ddist-fix-randomized-unit-tests
dnsdist: Ensure our unit tests can be run in random order
Remi Gacogne [Thu, 14 Sep 2023 11:16:35 +0000 (13:16 +0200)]
Merge pull request #13253 from rgacogne/ddist-race-tests-certificate
dnsdist: Fix a race in TLS certificate generation in the tests
Otto Moerbeek [Thu, 14 Sep 2023 10:02:15 +0000 (12:02 +0200)]
rec: Clarify file name and placement rules for converted old-style files
Peter van Dijk [Thu, 14 Sep 2023 10:00:56 +0000 (12:00 +0200)]
Merge pull request #13238 from Habbie/default-catalog-zone
auth: add default-catalog-zone setting
Peter van Dijk [Thu, 14 Sep 2023 09:58:16 +0000 (11:58 +0200)]
Merge pull request #13257 from Habbie/unbreak-curl-rpmbuild
builder (rpm): use allowerasing to allow replacement of curl-minimal with curl
Peter van Dijk [Thu, 14 Sep 2023 07:31:38 +0000 (09:31 +0200)]
use allowerasing to allow replacement of curl-minimal with curl
Remi Gacogne [Thu, 14 Sep 2023 09:20:11 +0000 (11:20 +0200)]
dnsdist: Appease the formatting gods
Remi Gacogne [Thu, 14 Sep 2023 09:12:07 +0000 (11:12 +0200)]
dnsdist: Ensure our unit tests can be run in random order
Peter van Dijk [Thu, 14 Sep 2023 08:56:40 +0000 (10:56 +0200)]
Merge pull request #13254 from Habbie/drop-kinetic
builder: drop ubuntu kinetic, it is EOL
Peter van Dijk [Tue, 12 Sep 2023 10:34:43 +0000 (12:34 +0200)]
auth: add default-catalog-zone setting
Peter van Dijk [Thu, 14 Sep 2023 06:35:05 +0000 (08:35 +0200)]
builder: drop ubuntu kinetic, it is EOL
Otto Moerbeek [Wed, 13 Sep 2023 14:30:34 +0000 (16:30 +0200)]
Merge pull request #13251 from omoerbeek/mtasker-exception-fiber
rec: When an exception is thrown from an mthread register stack switch (in the ASAN case)
Remi Gacogne [Wed, 13 Sep 2023 14:27:51 +0000 (16:27 +0200)]
dnsdist: Fix a race in TLS certificate generation in the tests
The OCSP and TLS tests are generating new TLS certificate and key,
so there was a time window for a certificate/key mismatch if a test
is starting right at the moment the OCSP and TLS tests are generating
new material. This commit fixes it by using different file names for
these tests.
Otto Moerbeek [Wed, 13 Sep 2023 13:47:50 +0000 (15:47 +0200)]
Add make -C rust clean when generate.py is run.
See comment for motivation. While working on the settings project,
I had this line, but I thouhgt it was no longer needed so I removed
it. It turns out it *is* needed. Found out when adding the
recursor.tcp_threads field.
Otto Moerbeek [Wed, 13 Sep 2023 13:23:45 +0000 (15:23 +0200)]
Merge pull request #13250 from omoerbeek/rec-coverity-
20230913
rec: Fix Coverityy
1519054 : Using invalid iterator
Otto Moerbeek [Wed, 13 Sep 2023 13:22:36 +0000 (15:22 +0200)]
And another case for catch/throw
Otto Moerbeek [Wed, 13 Sep 2023 12:20:15 +0000 (14:20 +0200)]
Also catch/throw in sendEvent() case
Otto Moerbeek [Wed, 13 Sep 2023 11:53:08 +0000 (13:53 +0200)]
Add 'versionadded'
Otto Moerbeek [Wed, 13 Sep 2023 11:47:40 +0000 (13:47 +0200)]
Introduce setting recursor.tcp_threads.
While working on this, I noticed that after changing table.py
the new lib.rs is generated, but the Serde derives to not seem to get
triggered until afert I do a make clean. To be investigated.
Otto Moerbeek [Fri, 1 Sep 2023 07:12:47 +0000 (09:12 +0200)]
Before this PR, if pdns-distributes-queries is *false* worker threads process both UDP and TCP queries
Otto Moerbeek [Fri, 1 Sep 2023 07:06:13 +0000 (09:06 +0200)]
Only init Lua for workers (both UDP and TCP)
Now that distributor threads do no longer process (TCP) queries, no need to have Lua inited for those
Otto Moerbeek [Fri, 1 Sep 2023 07:03:40 +0000 (09:03 +0200)]
Adopt code change suggestions from @rgacogne's review
Otto Moerbeek [Thu, 31 Aug 2023 18:26:21 +0000 (20:26 +0200)]
Apply spelling fixes
Co-authored-by: Remi Gacogne <github@coredump.fr>
Otto Moerbeek [Wed, 30 Aug 2023 14:32:55 +0000 (16:32 +0200)]
Tweaks and some docs
Otto Moerbeek [Wed, 30 Aug 2023 13:15:30 +0000 (15:15 +0200)]
Include all rec threads for CPU usage stats
Otto Moerbeek [Wed, 30 Aug 2023 13:07:44 +0000 (15:07 +0200)]
Also count TCP "distributed" queries and show them in the periodic stats
Do note that the rules to increment various counters are a bit divergent if you compare TCP and UDP
Otto Moerbeek [Wed, 30 Aug 2023 12:10:56 +0000 (14:10 +0200)]
In the singkle thread case, TCP is still handled by a separate thread
Otto Moerbeek [Wed, 30 Aug 2023 10:34:34 +0000 (12:34 +0200)]
Run seperate TCP threads. These threads listen and process incoming TCP queries
TODO: test, validate reuseport behaviour, settings, docs
Otto Moerbeek [Tue, 29 Aug 2023 13:54:36 +0000 (15:54 +0200)]
Some more refactoring to get complexity down plus comments on the way tcp-in works
Otto Moerbeek [Tue, 29 Aug 2023 11:58:31 +0000 (13:58 +0200)]
Refactor actual processing of query out of handleRunningTCPQuestion
Otto Moerbeek [Tue, 12 Sep 2023 15:09:15 +0000 (17:09 +0200)]
When an exception is thrown from an mthread register stack switch in the ASAN case
Otto Moerbeek [Wed, 13 Sep 2023 10:52:49 +0000 (12:52 +0200)]
Merge pull request #13248 from omoerbeek/rec-prep-5.0.0-alpha1
Prep for rec-5.0.0-alpha1
Otto Moerbeek [Tue, 12 Sep 2023 07:26:45 +0000 (09:26 +0200)]
Prep for rec-5.0.0-alpha1
Otto Moerbeek [Wed, 13 Sep 2023 10:07:08 +0000 (12:07 +0200)]
rec: Fix Coverityy
1519054 : Using invalid iterator
Otto Moerbeek [Wed, 13 Sep 2023 08:06:20 +0000 (10:06 +0200)]
Merge pull request #13247 from omoerbeek/rec-fix-docker-build
rec: fix docker build; it does `make install` without first building the default target
Otto Moerbeek [Wed, 13 Sep 2023 08:02:47 +0000 (10:02 +0200)]
Merge pull request #13244 from fredmorcos/rec-settings-minor-fixes
Rec settings minor cleanups
Otto Moerbeek [Wed, 13 Sep 2023 07:15:20 +0000 (09:15 +0200)]
Install Rust in docker build env
Otto Moerbeek [Wed, 13 Sep 2023 06:58:06 +0000 (08:58 +0200)]
Merge pull request #13246 from omoerbeek/omoerbeek-patch-1
rec: Fix wrongly converted default for "quiet"
Otto Moerbeek [Wed, 13 Sep 2023 06:54:18 +0000 (08:54 +0200)]
rec: fix docker build; it does `make install` without first building the default target
Otto Moerbeek [Wed, 13 Sep 2023 06:07:30 +0000 (08:07 +0200)]
Fix wrongly converted default for "quiet"
Fred Morcos [Tue, 12 Sep 2023 21:47:02 +0000 (23:47 +0200)]
Rec: Settings Rust bridge allow passing references to owned Vecs
Fred Morcos [Tue, 12 Sep 2023 21:24:12 +0000 (23:24 +0200)]
Revert "Rec: Settings Rust bridge prefer slices over Vec references"
This reverts commit
ea0681a158aa8bc60fdbc8fe39b41d60ae800629 .
Peter van Dijk [Tue, 12 Sep 2023 15:09:57 +0000 (17:09 +0200)]
smysql: stop explicity setting MYSQL_OPT_RECONNECT to 0
Setting this option, even to 0, causes spurious warnings to the console
with recent libmysqlclient versions. The upstream bug
( https://bugs.mysql.com/bug.php?id=112089 )
has now been open for a month, so we're implementing a workaround.
0 was the default since at least MySQL 5.7, perhaps longer.
closes #13242
Otto Moerbeek [Tue, 12 Sep 2023 15:22:45 +0000 (17:22 +0200)]
Merge pull request #13243 from omoerbeek/rec-no-random-unittests
Rec's unit tests (in combination with asan+ubsan) are not ready yet for randomization
Remi Gacogne [Tue, 12 Sep 2023 14:46:24 +0000 (16:46 +0200)]
dnsdist: Fix the test order dependency in the Dynamic Blocks unit tests
Fred Morcos [Tue, 12 Sep 2023 12:53:02 +0000 (14:53 +0200)]
Rec: Typos
Fred Morcos [Tue, 12 Sep 2023 12:46:18 +0000 (14:46 +0200)]
Rec: Settings Rust bridge prefer slices over Vec references
Otto Moerbeek [Tue, 12 Sep 2023 12:51:07 +0000 (14:51 +0200)]
Rec's unit tests (in combination with asan+ubsan) are not ready yet for randomization
Fred Morcos [Tue, 12 Sep 2023 12:45:55 +0000 (14:45 +0200)]
Rec: Settings Rust bridge ignore Emacs' .dir-locals.el
Otto Moerbeek [Tue, 12 Sep 2023 11:54:46 +0000 (13:54 +0200)]
Merge pull request #13237 from omoerbeek/random-unittests
Introduce randomness in test order to catch hidden dependencies between unit-tests
Otto Moerbeek [Tue, 12 Sep 2023 11:54:18 +0000 (13:54 +0200)]
Merge pull request #13239 from omoerbeek/rec-fix-rust-install
rec: With #13101 the cwd of the build changed, adapt call to ci-rust-install
Otto Moerbeek [Tue, 12 Sep 2023 10:41:35 +0000 (12:41 +0200)]
With #13101 the cwd of the build changed, adapt call to rust install
Otto Moerbeek [Tue, 12 Sep 2023 10:11:29 +0000 (12:11 +0200)]
Be even more lenient in allowing timing differences
Remi Gacogne [Tue, 12 Sep 2023 09:52:32 +0000 (11:52 +0200)]
Merge pull request #13101 from romeroalx/add-make-distdir
GH actions. build-and-test-all.yml: add make distdir as an additional step for build jobs
Otto Moerbeek [Tue, 12 Sep 2023 09:46:23 +0000 (11:46 +0200)]
Merge pull request #13008 from omoerbeek/rec-gen-settings
Rec: rewrite settings code, move to yaml settings file using Rust
Otto Moerbeek [Tue, 12 Sep 2023 09:14:16 +0000 (11:14 +0200)]
Introduce randomness in test order to catch hidden dependencies between unit-tests
Also be a bit more lenient in a recently introduced test that checks timing
of some aggressive cache manipulations.
Otto Moerbeek [Tue, 12 Sep 2023 07:59:21 +0000 (09:59 +0200)]
Fix typo in function name (both def and caller)
Alexis Romero [Thu, 3 Aug 2023 11:53:27 +0000 (13:53 +0200)]
adding make distdir step to build-and-test-all
Otto Moerbeek [Wed, 5 Jul 2023 13:48:59 +0000 (15:48 +0200)]
Introduce structured YAML settings for Recursor.
Mostly written in Rust, using CXX and Serde
Code generation is used to generate both the old style config tables as
the new Rust based code. The code generation also produces the code
to covert old styel to new style and documentation.
Th main entry point for code generationo is settings/generate.py,
using the table table.py
Existing configs continue to work as before.
Otto Moerbeek [Mon, 11 Sep 2023 10:44:46 +0000 (12:44 +0200)]
Merge pull request #13210 from omoerbeek/rec-systemd-unit-nss
rec: remove Before=nss-lookup.target line from unit file
Otto Moerbeek [Mon, 11 Sep 2023 10:44:31 +0000 (12:44 +0200)]
Merge pull request #13209 from omoerbeek/rec-aggr-cache-pruning
rec: make aggressive cache pruning more effective and more fair
Otto Moerbeek [Mon, 11 Sep 2023 10:00:20 +0000 (12:00 +0200)]
Apply typo-in-comment fixes from code review
Co-authored-by: Remi Gacogne <github@coredump.fr>
Remi Gacogne [Mon, 11 Sep 2023 08:03:22 +0000 (10:03 +0200)]
Merge pull request #13227 from rgacogne/ddist-fix-unit-tests-on-el-with-lto
dnsdist: Fix unit tests for incoming DoH w/ nghttp2