]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
6 months agoTypos 13832/head
Otto Moerbeek [Mon, 26 Feb 2024 13:58:02 +0000 (14:58 +0100)] 
Typos

6 months ago4.9.x uses unittest instead of pytest
Otto Moerbeek [Mon, 26 Feb 2024 12:04:08 +0000 (13:04 +0100)] 
4.9.x uses unittest instead of pytest

6 months agorec: dnspython's API changed wrt NSID, apply (version dependent) fix in regression...
Otto Moerbeek [Mon, 19 Feb 2024 10:05:32 +0000 (11:05 +0100)] 
rec: dnspython's API changed wrt NSID, apply (version dependent) fix in regression test

See https://dnspython.readthedocs.io/en/stable/whatsnew.html 2.6.0 2nd bullet

(cherry picked from commit e1ea89984da1c10850dd0cb4e7d4d7ee501e078d)

6 months agoMerge pull request #13794 from omoerbeek/backport-13787-to-rec-4.9.x
Otto Moerbeek [Mon, 26 Feb 2024 10:05:42 +0000 (11:05 +0100)] 
Merge pull request #13794 from omoerbeek/backport-13787-to-rec-4.9.x

rec: Backport 13787 to rec 4.9.x: skip a few tests that depend on sidnlab's public test setup that no longer works

7 months agorec: skip a few test that depend on sidnlab's public test setup that no longer works 13794/head
Otto Moerbeek [Tue, 13 Feb 2024 15:31:35 +0000 (16:31 +0100)] 
rec: skip a few test that depend on sidnlab's public test setup that no longer works

(cherry picked from commit 1c47d58191e285aa2f85c24bbddba55f95cd58a2)

7 months agoMerge pull request #13783 from omoerbeek/rec-backport-keytrap-to-4.9.x
Otto Moerbeek [Tue, 13 Feb 2024 12:33:43 +0000 (13:33 +0100)] 
Merge pull request #13783 from omoerbeek/rec-backport-keytrap-to-4.9.x

rec: Backport Keytrap to rec-4.9.x

7 months agoBetter handling of DNSKEY validation failures 13783/head rec-4.9.3
Otto Moerbeek [Mon, 5 Feb 2024 16:09:00 +0000 (17:09 +0100)] 
Better handling of DNSKEY validation failures

7 months agoAdd a new 'max-ds-per-zone' setting and immediately return BogusNoValidDNSKEY when...
Otto Moerbeek [Mon, 5 Feb 2024 11:43:15 +0000 (12:43 +0100)] 
Add a new 'max-ds-per-zone' setting and immediately return BogusNoValidDNSKEY when we hit a limit in validateDNSKeysAgainstDS()

7 months agoEstablish (now validated) defaults for all new settings
Otto Moerbeek [Fri, 12 Jan 2024 07:57:02 +0000 (08:57 +0100)] 
Establish (now validated) defaults for all new settings

7 months agorec: Fix validation accounting in validateDNSKeysAgainstDS()
Remi Gacogne [Mon, 8 Jan 2024 14:04:13 +0000 (15:04 +0100)] 
rec: Fix validation accounting in validateDNSKeysAgainstDS()

The counter was sometimes increased even though no actual validation
was performed, because the corresponding DNSKEY was not (yet) trusted.

7 months agoBackport of keytrap to 4.9.x up to 5f6726ca4c759cb6c8fb5f131334dab64a4980d5
Otto Moerbeek [Tue, 2 Jan 2024 12:11:43 +0000 (13:11 +0100)] 
Backport of keytrap to 4.9.x up to 5f6726ca4c759cb6c8fb5f131334dab64a4980d5

8 months agoMerge pull request #13694 from omoerbeek/backport-13675-to-rec-4.9.x
Otto Moerbeek [Wed, 10 Jan 2024 14:23:26 +0000 (15:23 +0100)] 
Merge pull request #13694 from omoerbeek/backport-13675-to-rec-4.9.x

Backport 13675 to rec 4.9.x: Fix documentation building error for dnsdist and recursor

8 months agodnsdist: Fix the version of alabaster when building the doc 13694/head
Remi Gacogne [Mon, 8 Jan 2024 10:47:13 +0000 (11:47 +0100)] 
dnsdist: Fix the version of alabaster when building the doc

Fixes
```
The alabaster extension used by this project needs at least Sphinx v3.4; it therefore cannot be built with this version.
```

(cherry picked from commit c2a7ef8bd4f2423e2dc0eaa4d4a46de99b44636b)

8 months agorec: Fix the version of alabaster when building the doc
Remi Gacogne [Mon, 8 Jan 2024 10:32:31 +0000 (11:32 +0100)] 
rec: Fix the version of alabaster when building the doc

Fixes
```
The alabaster extension used by this project needs at least Sphinx v3.4; it therefore cannot be built with this version.
```

(cherry picked from commit ac89467f17bb888fbd48c0f4c5267beab95aebee)

9 months agoMerge pull request #13570 from romeroalx/rel/rec-4.9.x-workflow-call
Otto Moerbeek [Wed, 13 Dec 2023 12:03:58 +0000 (13:03 +0100)] 
Merge pull request #13570 from romeroalx/rel/rec-4.9.x-workflow-call

GH Actions - rel/rec-4.9.x: make `build-and-test-all` and `builder` workflows reusable from other branches

9 months agomake builder workflow reusable 13570/head
romeroalx [Wed, 22 Nov 2023 13:07:38 +0000 (14:07 +0100)] 
make builder workflow reusable

9 months agomake build-and-test-all reusable
Alexis Romero [Thu, 16 Nov 2023 15:56:20 +0000 (16:56 +0100)] 
make build-and-test-all reusable

9 months agotest ubuntu jammy build target
Peter van Dijk [Fri, 14 Jan 2022 11:12:09 +0000 (12:12 +0100)] 
test ubuntu jammy build target

9 months agobuilder: drop ubuntu kinetic, it is EOL
Peter van Dijk [Thu, 14 Sep 2023 06:35:05 +0000 (08:35 +0200)] 
builder: drop ubuntu kinetic, it is EOL

10 months agoMerge pull request #13449 from omoerbeek/backport-13409-to-rec-4.9.x rec-4.9.2
Otto Moerbeek [Mon, 6 Nov 2023 08:41:04 +0000 (09:41 +0100)] 
Merge pull request #13449 from omoerbeek/backport-13409-to-rec-4.9.x

rec: backport 13409 to rec-4.9.x: handle serve stale logic in getRootNXTrust()

10 months agorec: handle serve stale logic in getRootNXTrust() 13449/head
Otto Moerbeek [Mon, 23 Oct 2023 07:17:16 +0000 (09:17 +0200)] 
rec: handle serve stale logic in getRootNXTrust()

Superseded #13383 by calling the general get() function that has
all the special cases covered.

(cherry picked from commit e2bfa1460d5b9e4e470c2f8829ef6c10bc583c73)

10 months agoMerge pull request #13440 from omoerbeek/rec-backport-13237-to-rec-49x
Otto Moerbeek [Wed, 1 Nov 2023 08:38:48 +0000 (09:38 +0100)] 
Merge pull request #13440 from omoerbeek/rec-backport-13237-to-rec-49x

rec: backport 13237 to rec-4.9.x: Be even more lenient in allowing timing differences

10 months agorec: backport 13237 to rec-4.9.x: Be even more lenient in allowing timing differences 13440/head
Otto Moerbeek [Tue, 31 Oct 2023 15:35:06 +0000 (16:35 +0100)] 
rec: backport 13237 to rec-4.9.x: Be even more lenient in allowing timing differences

Backport of #13237

10 months agoMerge pull request #13411 from omoerbeek/backport-13353-to-rec-4.9.x
Otto Moerbeek [Tue, 31 Oct 2023 07:58:26 +0000 (08:58 +0100)] 
Merge pull request #13411 from omoerbeek/backport-13353-to-rec-4.9.x

rec: Backport 13353 to rec 4.9.x:  If serving stale, wipe CNAME records from cache when we get a NODATA negative response for them

10 months agoMerge pull request #13412 from omoerbeek/backport-13408-to-rec-4.9.x
Otto Moerbeek [Tue, 24 Oct 2023 09:28:00 +0000 (11:28 +0200)] 
Merge pull request #13412 from omoerbeek/backport-13408-to-rec-4.9.x

rec: Backport 13408 to rec-4.9.x: Handle stack memory on NetBSD as on OpenBSD

10 months agoHandle stack memory on NetBSD as on OpenBSD 13412/head
Tom Ivar Helbekkmo [Sun, 22 Oct 2023 18:26:32 +0000 (20:26 +0200)] 
Handle stack memory on NetBSD as on OpenBSD

(cherry picked from commit d6ff1755940d77ca502bf21a8f2d4d690252d0d2)

10 months agoTidy 13411/head
Otto Moerbeek [Wed, 11 Oct 2023 13:39:46 +0000 (15:39 +0200)] 
Tidy

(cherry picked from commit db263dde8799c6d6af58f02bf63ec1aeb8eed50d)

10 months agoIf serving stale, wipe CNAME records from cache when we get a NODATA negative respons...
Otto Moerbeek [Wed, 11 Oct 2023 12:22:03 +0000 (14:22 +0200)] 
If serving stale, wipe CNAME records from cache when we get a NODATA negative response for them
PR #12395 already did that for the NXDOMAIN case.

(cherry picked from commit 60ba49d38e5ded2df5a367d8acacba8b8ec3d2cc)

11 months agoMerge pull request #13286 from omoerbeek/backport-13092-to-rec-4.9.x
Otto Moerbeek [Fri, 22 Sep 2023 12:59:43 +0000 (14:59 +0200)] 
Merge pull request #13286 from omoerbeek/backport-13092-to-rec-4.9.x

rec: Backport 13092 to rec 4.9.x: prevent two cases of copy of data that can be moved

11 months agoAdd NOLINT marker for readability-function-cognitive-complexity 13286/head
Otto Moerbeek [Fri, 22 Sep 2023 10:48:39 +0000 (12:48 +0200)] 
Add NOLINT marker for readability-function-cognitive-complexity

11 months agoMerge pull request #13285 from omoerbeek/backport-13224-to-rec-4.9.x
Otto Moerbeek [Fri, 22 Sep 2023 10:46:00 +0000 (12:46 +0200)] 
Merge pull request #13285 from omoerbeek/backport-13224-to-rec-4.9.x

rec: Backport 13223 to rec-4.9.x: auto-build on tags and generate provenance

11 months agoMerge pull request #13284 from omoerbeek/backport-13210-to-rec-4.9.x
Otto Moerbeek [Fri, 22 Sep 2023 10:45:35 +0000 (12:45 +0200)] 
Merge pull request #13284 from omoerbeek/backport-13210-to-rec-4.9.x

rec: Backport 13210 to rec-4.9.x: remove Before=nss-lookup.target line from unit file

11 months agoMerge pull request #13283 from omoerbeek/backport-13278-to-rec-4.9.x
Otto Moerbeek [Fri, 22 Sep 2023 10:45:22 +0000 (12:45 +0200)] 
Merge pull request #13283 from omoerbeek/backport-13278-to-rec-4.9.x

rec: Backport 13278 to rec-4.9.x: Prevent lookups for unsupported qtypes or rcode != 0 to submit refresh tasks

11 months agoMerge pull request #13282 from omoerbeek/backport-13209-to-rec-4.9.x
Otto Moerbeek [Fri, 22 Sep 2023 10:45:08 +0000 (12:45 +0200)] 
Merge pull request #13282 from omoerbeek/backport-13209-to-rec-4.9.x

rec: Backport 13209 to rec 4.9.x: Implement a more fair way to prune the aggressive cache

11 months agoFix formatting and a clang-tidy issue 13283/head
Otto Moerbeek [Fri, 22 Sep 2023 08:43:25 +0000 (10:43 +0200)] 
Fix formatting and a clang-tidy issue

11 months agorec: Prevent a copy when distributing UDP queries to workers
Remi Gacogne [Tue, 1 Aug 2023 13:09:59 +0000 (15:09 +0200)] 
rec: Prevent a copy when distributing UDP queries to workers

Reported by Coverity as CID 1509301.

(cherry picked from commit 42d6b18e42e529a0ff89b57dca1043d6df4041ee)

11 months agorec: Prevent a copy in RecursorLua4::DNSQuestion::addAnswer
Remi Gacogne [Tue, 1 Aug 2023 13:09:25 +0000 (15:09 +0200)] 
rec: Prevent a copy in RecursorLua4::DNSQuestion::addAnswer

Reported by Coverity as 1509322

(cherry picked from commit 86867a80b19a40644e5d5d1c2dcacccb70695b85)

11 months agorec: Backport 13223 to rec-4.9.x: auto-build on tags and generate provenance 13285/head
Otto Moerbeek [Fri, 22 Sep 2023 08:09:53 +0000 (10:09 +0200)] 
rec: Backport 13223 to rec-4.9.x: auto-build on tags and generate provenance

This is basically a copy of the backport to dnsdist-1.8.x PR #13184

11 months agoAlso remove Wants=nss-lookup.target 13284/head
Otto Moerbeek [Wed, 6 Sep 2023 09:49:23 +0000 (11:49 +0200)] 
Also remove Wants=nss-lookup.target

(cherry picked from commit 845e1506d6ee99623e6bf7b608b626f8ea08a2ba)

11 months agorec: remove Before=nss-lookup.target line from unit file
Otto Moerbeek [Wed, 6 Sep 2023 08:24:13 +0000 (10:24 +0200)] 
rec: remove Before=nss-lookup.target line from unit file

Fixes #13115

(cherry picked from commit 1f736a6bc0e1311cf5f7f091c852a23035ea59d4)

11 months agoPrevent lookups for unsupported qtypes or rcode != 0 to submit refresh tasks
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

(cherry picked from commit 11c65aeda2aef3aabeeff9aa1491bc84954ed905)

11 months agoApply typo-in-comment fixes from code review 13282/head
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>
11 months agoFormatting
Otto Moerbeek [Tue, 5 Sep 2023 08:54:39 +0000 (10:54 +0200)] 
Formatting

(cherry picked from commit dab9636b332f680283636c66547489f9a2cdb250)

11 months agoThe proper "expired" test is ttd <= now
Otto Moerbeek [Tue, 5 Sep 2023 08:40:27 +0000 (10:40 +0200)] 
The proper "expired" test is ttd <= now

(cherry picked from commit 17806638ce9ae1643d881faa7328a85f98eeb265)

12 months agorec: implement a more fair way to prune the aggressive cache
Otto Moerbeek [Fri, 1 Sep 2023 13:39:18 +0000 (15:39 +0200)] 
rec: implement a more fair way to prune the aggressive cache

Fixes #13109

(cherry picked from commit f44081141772da42dd6830462ae357530d3a1fbf)

12 months agoMerge pull request #13177 from omoerbeek/backport-13174-to-rec-4.9.x
Otto Moerbeek [Mon, 28 Aug 2023 08:57:02 +0000 (10:57 +0200)] 
Merge pull request #13177 from omoerbeek/backport-13174-to-rec-4.9.x

rec: backport 13174 to rec-4.9.x: Include cstdint in mtasker_ucontext.cc, noted by @zeha

12 months agoMerge pull request #13176 from omoerbeek/backport-13102-to-rec-4.9.x
Otto Moerbeek [Mon, 28 Aug 2023 08:16:22 +0000 (10:16 +0200)] 
Merge pull request #13176 from omoerbeek/backport-13102-to-rec-4.9.x

rec: Backport #13102 to rec-4.9.x: Do not assume the records are in a particular order when deterining if an answer is NODATA

12 months agoInclude cstdint in mtasker_ucontext.cc, noted by @zeha 13177/head
Otto Moerbeek [Fri, 25 Aug 2023 12:08:36 +0000 (14:08 +0200)] 
Include cstdint in mtasker_ucontext.cc, noted by @zeha

(cherry picked from commit bbf76a06de324da40302d51850c7c475e465cb3a)

12 months agorec: Do not assume the records are in a particular order when determining if an answer is 13176/head
Otto Moerbeek [Fri, 4 Aug 2023 11:07:59 +0000 (13:07 +0200)] 
rec: Do not assume the records are in a particular order when determining if an answer is
NODATA.

(cherry picked from commit fa5f61e94e1bd354d42923a844c59b3be232c29f)

12 months agoMerge pull request #13163 from omoerbeek/backport-13071-to-rec-4.9.x rec-4.9.1
Otto Moerbeek [Wed, 23 Aug 2023 07:54:35 +0000 (09:54 +0200)] 
Merge pull request #13163 from omoerbeek/backport-13071-to-rec-4.9.x

Backport 13071 to rec 4.9.x: Fix code producing json

12 months agoMerge pull request #13161 from omoerbeek/backport-13106-to-rec-4.9.x
Otto Moerbeek [Wed, 23 Aug 2023 07:29:19 +0000 (09:29 +0200)] 
Merge pull request #13161 from omoerbeek/backport-13106-to-rec-4.9.x

rec: Backport 13106 to rec 4.9.x: replace data in the aggressive cache if new data becomes available

12 months agoMerge pull request #13160 from omoerbeek/backport-13151-to-rec-4.9.x
Otto Moerbeek [Wed, 23 Aug 2023 07:29:04 +0000 (09:29 +0200)] 
Merge pull request #13160 from omoerbeek/backport-13151-to-rec-4.9.x

rec: Backport 13151 to rec-4.9.x: Fix a few typos.

12 months agoMerge pull request #13159 from omoerbeek/backport-13105-to-rec-4.9.x
Otto Moerbeek [Wed, 23 Aug 2023 06:53:40 +0000 (08:53 +0200)] 
Merge pull request #13159 from omoerbeek/backport-13105-to-rec-4.9.x

rec: Backport 13105 to rec 4.9.x: (I)XFR: handle partial read of len prefix

12 months agoSkip smileys for now, they take 4 bytes to encode and out current mysql 13163/head
Otto Moerbeek [Mon, 31 Jul 2023 13:51:31 +0000 (15:51 +0200)] 
Skip smileys for now, they take 4 bytes to encode and out current mysql
schema has 'utf8', which only handles 3 bytes max, should be changed to
utf8mb4 one day.

(cherry picked from commit 93ad866b4e2f4afb017e8b3b08041598a2378ea5)

12 months agoTest a few non-ASCII chars in comments
Otto Moerbeek [Mon, 31 Jul 2023 12:44:13 +0000 (14:44 +0200)] 
Test a few non-ASCII chars in comments

(cherry picked from commit 56726eb113ab135ec890e79e94c0393986e9edad)

12 months agoAdd a few testcases for "incomplete" URLs
Otto Moerbeek [Wed, 26 Jul 2023 07:35:05 +0000 (09:35 +0200)] 
Add a few testcases for "incomplete" URLs

(cherry picked from commit 7ab40a80547d112914b71919d8f4aa14cc24b047)

12 months agoCheck all chars in the URL are valid URL chars.
Otto Moerbeek [Fri, 21 Jul 2023 12:23:02 +0000 (14:23 +0200)] 
Check all chars in the URL are valid URL chars.

Should probably (also) be done in YaHTTP::URL, though currently the
return value of YaHTTP::URL::parse() is completely ignored, so
there is no easy way to do.

(cherry picked from commit 35eb2fcffa40e7f70b716e99158efe72a0e864d9)

12 months agoImplement recomendationm from #13050: step 1
Otto Moerbeek [Fri, 21 Jul 2023 11:43:57 +0000 (13:43 +0200)] 
Implement recomendationm from #13050: step 1

Revert #12660

(cherry picked from commit 26f5d6058d8b0cf4ad2f8da729cb906796c297a0)

13 months agoMake clang-tidy happy 13161/head
Otto Moerbeek [Wed, 9 Aug 2023 11:45:12 +0000 (13:45 +0200)] 
Make clang-tidy happy

(cherry picked from commit 993712a13a3b4d9faf7c4298412fbd2a6b3a7761)

13 months agorec: replace data in the aggressive cache if it becomes available
Otto Moerbeek [Tue, 8 Aug 2023 10:15:00 +0000 (12:15 +0200)] 
rec: replace data in the aggressive cache if it becomes available

Currently, new data does not get recorded into the aggressive cache
if there's an existing entry that matches. Together with the fact
that in some cases pruning can be unfair (it scans the zones
always in the same order and stops clearing when it has reached the
goal) and/or not very active (when the recursor is lighlty loaded)
this has the consequence that old expired records can remain in
the cache that prevent new data to be recorded and used.

(cherry picked from commit 93b25e9613f252bc1798975dc1f7a475400f2996)

13 months agoFix a few typos. 13160/head
Andreas Jakum [Thu, 17 Aug 2023 13:24:05 +0000 (15:24 +0200)] 
Fix a few typos.

(cherry picked from commit 84d2423481cff98765c482964d11ef828a2774d2)

13 months agoremove redundant assignment 13159/head
Otto Moerbeek [Wed, 9 Aug 2023 08:09:36 +0000 (10:09 +0200)] 
remove redundant assignment

(cherry picked from commit 8d3ab63b412fb4b9fd8732af47a5d1c18ba7e786)

13 months agoIXFR client: handle partial reads of the TCP chunk length header, plus:
Peter van Dijk [Mon, 7 Aug 2023 17:13:36 +0000 (19:13 +0200)] 
IXFR client: handle partial reads of the TCP chunk length header, plus:
* add primarySOACount to exception text
* add indicator of current state to exception text
* a test

(cherry picked from commit 8faf5a90992b2613cf5999c8dd5e26b0025050b7)

13 months agotypo fix
Peter van Dijk [Mon, 7 Aug 2023 17:13:11 +0000 (19:13 +0200)] 
typo fix

(cherry picked from commit 8fb5bba04f7a211ac2eb815f5c340e69070dc3e0)

13 months agoMerge pull request #13057 from omoerbeek/rec-backport-13021-to-rec-4.9.x
Otto Moerbeek [Mon, 31 Jul 2023 16:10:09 +0000 (18:10 +0200)] 
Merge pull request #13057 from omoerbeek/rec-backport-13021-to-rec-4.9.x

rec: Backport 13021 to rec-4.9.x: fix setting of policy tags

14 months agoBackport #13059: Don't check TTLs of records coming out of packet cache 13057/head
Otto Moerbeek [Thu, 20 Jul 2023 13:33:36 +0000 (15:33 +0200)] 
Backport #13059: Don't check TTLs of records coming out of packet cache

14 months agorec: Backport 13021 to rec-4.9.x: fix setting of policy tags
Otto Moerbeek [Thu, 20 Jul 2023 09:42:23 +0000 (11:42 +0200)] 
rec: Backport 13021 to rec-4.9.x: fix setting of policy tags

Backport of #13021

14 months agoMerge pull request #12995 from omoerbeek/backport-12961-to-rec-4.9.x
Otto Moerbeek [Mon, 10 Jul 2023 08:56:31 +0000 (10:56 +0200)] 
Merge pull request #12995 from omoerbeek/backport-12961-to-rec-4.9.x

rec: Backport 12961 to rec-4.9.x: Work around Red Hat 8 pooping the bed in OpenSSL's headers

14 months agoMerge pull request #12994 from omoerbeek/backport-12935-to-rec-4.9.x
Otto Moerbeek [Mon, 10 Jul 2023 08:56:18 +0000 (10:56 +0200)] 
Merge pull request #12994 from omoerbeek/backport-12935-to-rec-4.9.x

rec: backport of 12935 to rec-4.9.x: Stop using the now deprecated ERR_load_CRYPTO_strings() to detect OpenSSL

14 months agoWork around Red Hat 8 pooping the bed in OpenSSL's headers 12995/head
Remi Gacogne [Wed, 28 Jun 2023 13:23:35 +0000 (15:23 +0200)] 
Work around Red Hat 8 pooping the bed in OpenSSL's headers

The openssl/kdf.h header on EL8 is invalid because someone backported
a work-in-progress feature to an older OpenSSL branch and did not
bother to backport the fixes that were added later.

Red Hat declined to fix their mess and helpfully suggested we do the
work instead in https://bugzilla.redhat.com/show_bug.cgi?id=2215856

(cherry picked from commit 3dabf2d4a1a478fb00a232259e8043f075eb4d03)

14 months agoStop using the now deprecated ERR_load_CRYPTO_strings() to detect OpenSSL 12994/head
Remi Gacogne [Wed, 21 Jun 2023 12:58:15 +0000 (14:58 +0200)] 
Stop using the now deprecated ERR_load_CRYPTO_strings() to detect OpenSSL

And move to BN_new() instead, which has been present since at least
0.9.6 and is still in 3.1.

(cherry picked from commit 9fcef4932c9323b085984f8a087045fef70103f5)

14 months agoMerge pull request #12968 from omoerbeek/backport-12963-to-rec-4.9.x rec-4.9.0
Otto Moerbeek [Thu, 29 Jun 2023 13:37:46 +0000 (15:37 +0200)] 
Merge pull request #12968 from omoerbeek/backport-12963-to-rec-4.9.x

rec: Backport 12963 to rec 4.9.x: fix qname length getting out-of-sync with qname-minimization iteration count

14 months agorec: fix qname length getting out-of-sync with qname-minimization iteration count 12968/head
Otto Moerbeek [Thu, 29 Jun 2023 07:31:46 +0000 (09:31 +0200)] 
rec: fix qname length getting out-of-sync with qname-minimization iteration count

Approach two: fall back to non-QM mode if loop detected
Fixes #12956

(cherry picked from commit 7b9450932da11f34a8a729b7b7e47202276fff5f)

14 months agoMerge pull request #12936 from omoerbeek/backport-12933-to-rec-4.9.x
Otto Moerbeek [Mon, 26 Jun 2023 10:35:03 +0000 (12:35 +0200)] 
Merge pull request #12936 from omoerbeek/backport-12933-to-rec-4.9.x

rec: Backport 12933 to rec 4.9.x: rewrite and fix verifyOne() loop

14 months agoMerge pull request #12932 from omoerbeek/backport-12836-to-rec-4.9.x
Otto Moerbeek [Mon, 26 Jun 2023 10:34:49 +0000 (12:34 +0200)] 
Merge pull request #12932 from omoerbeek/backport-12836-to-rec-4.9.x

rec: Backport 12928 to rec-4.9.x: fix daemonize()

15 months agoTypo inc omment 12936/head
Otto Moerbeek [Wed, 21 Jun 2023 11:17:01 +0000 (13:17 +0200)] 
Typo inc omment

Co-authored-by: Remi Gacogne <github@coredump.fr>
(cherry picked from commit da6a2d87c8d8cfe49dc6eda3481b82f8faf5a832)

15 months agoFollowup to #12893: Rewrite and fix verifyOne() loop
Otto Moerbeek [Wed, 21 Jun 2023 08:43:26 +0000 (10:43 +0200)] 
Followup to #12893: Rewrite and fix verifyOne() loop

Previous version could return true if the first iteration succeeded, but
the second one threw. Spotted by pt01 on IRC.

(cherry picked from commit 891f17371c4e1007f91abb4695c4b0e95c3f2995)

15 months agorec: Backport of 12928 to rec-4.9.x: fix daemonize() 12932/head
Otto Moerbeek [Wed, 21 Jun 2023 08:24:45 +0000 (10:24 +0200)] 
rec: Backport of 12928 to rec-4.9.x: fix daemonize()

15 months agoMerge pull request #12907 from omoerbeek/rec-specialize-4.9.x-branch rec-4.9.0-rc1
Otto Moerbeek [Tue, 13 Jun 2023 07:07:59 +0000 (09:07 +0200)] 
Merge pull request #12907 from omoerbeek/rec-specialize-4.9.x-branch

rec-4.9.x: specialize GH workflows for branch

15 months agorec-4.9.x: specialize GH workflows for branch 12907/head
Otto Moerbeek [Mon, 12 Jun 2023 12:28:37 +0000 (14:28 +0200)] 
rec-4.9.x: specialize GH workflows for branch

15 months agoMerge pull request #12904 from omoerbeek/rec-gid_t-uid_t-can-be-unsigned rec-4.10.0-alpha0
Otto Moerbeek [Mon, 12 Jun 2023 11:49:37 +0000 (13:49 +0200)] 
Merge pull request #12904 from omoerbeek/rec-gid_t-uid_t-can-be-unsigned

rec: uid_t and gid_t can be unsigned, so doing > on an -1 value is tricky

15 months agoMerge pull request #12906 from omoerbeek/rec-sdjournal-escape
Otto Moerbeek [Mon, 12 Jun 2023 11:49:22 +0000 (13:49 +0200)] 
Merge pull request #12906 from omoerbeek/rec-sdjournal-escape

rec: systemd-journal backend: escape keys that are special

15 months agoMerge pull request #12893 from omoerbeek/rec-dnssec-alg-setting
Otto Moerbeek [Mon, 12 Jun 2023 11:48:51 +0000 (13:48 +0200)] 
Merge pull request #12893 from omoerbeek/rec-dnssec-alg-setting

rec: add feature to switch off unsupported DNSSEC algos

15 months agoTidy and process review comments 12893/head
Otto Moerbeek [Wed, 7 Jun 2023 11:11:33 +0000 (13:11 +0200)] 
Tidy and process review comments

15 months agoMerge pull request #12905 from rgacogne/ddist-async-test-racy
Remi Gacogne [Mon, 12 Jun 2023 09:49:26 +0000 (11:49 +0200)] 
Merge pull request #12905 from rgacogne/ddist-async-test-racy

dnsdist: Remove a racy test in the AsynchronousHolder unit tests

15 months agoMerge pull request #12881 from Habbie/dispatch-bookworm
Peter van Dijk [Mon, 12 Jun 2023 09:41:29 +0000 (11:41 +0200)] 
Merge pull request #12881 from Habbie/dispatch-bookworm

builder-dispatch: add debian-bookworm target to defaults

15 months agoMerge pull request #12900 from omoerbeek/rec-serve-stale-dup-cname
Otto Moerbeek [Mon, 12 Jun 2023 09:22:56 +0000 (11:22 +0200)] 
Merge pull request #12900 from omoerbeek/rec-serve-stale-dup-cname

rec: Prevent duplicate C/DNAMEs being included when doing serve-stale

15 months agoDon't double print and delint 12906/head
Otto Moerbeek [Mon, 12 Jun 2023 09:02:02 +0000 (11:02 +0200)] 
Don't double print and delint

15 months agodnsdist: Remove a racy test in the AsynchronousHolder unit tests 12905/head
Remi Gacogne [Mon, 12 Jun 2023 09:04:51 +0000 (11:04 +0200)] 
dnsdist: Remove a racy test in the AsynchronousHolder unit tests

We are adding an expired event so the worker thread of the
AsynchronousHolder can pick it up immediately, even before we come
back from the call to push(), which leads to a racy test.
This was observed on GitHub Actions when running with TSAN:
```
FAIL: testrunner
================

Running 170 test cases...
test-dnsdistasync.cc(156): error: in "test_dnsdistasync/test_AddingExpiredEvent": check !holder->empty() has failed

*** 1 failure is detected in the test module "unit"
FAIL testrunner (exit status: 201)
```

15 months agoMerge pull request #12896 from omoerbeek/rec-nod-metrics
Otto Moerbeek [Mon, 12 Jun 2023 09:03:50 +0000 (11:03 +0200)] 
Merge pull request #12896 from omoerbeek/rec-nod-metrics

rec: expose NOD/UDR metrics

15 months agorec: uid_t and gid_t can be unsigned, so doing > on and -1 value is tricky 12904/head
Otto Moerbeek [Mon, 12 Jun 2023 08:41:02 +0000 (10:41 +0200)] 
rec: uid_t and gid_t can be unsigned, so doing > on and -1 value is tricky

15 months agoMerge pull request #12883 from omoerbeek/rec-rpz-soa
Otto Moerbeek [Mon, 12 Jun 2023 08:35:34 +0000 (10:35 +0200)] 
Merge pull request #12883 from omoerbeek/rec-rpz-soa

rec: add SOA to RPZ modified answers if configured to do so

15 months agodelint 12900/head
Otto Moerbeek [Mon, 12 Jun 2023 08:33:47 +0000 (10:33 +0200)] 
delint

15 months agoProcess review comments 12896/head
Otto Moerbeek [Mon, 12 Jun 2023 08:14:03 +0000 (10:14 +0200)] 
Process review comments

15 months agoMerge pull request #12840 from phonedph1/patch-39
Remi Gacogne [Mon, 12 Jun 2023 08:10:20 +0000 (10:10 +0200)] 
Merge pull request #12840 from phonedph1/patch-39

Update dnsdist-console.cc

15 months agoAdd tests to see if CNAME records are not included multiple times
Otto Moerbeek [Mon, 12 Jun 2023 07:08:10 +0000 (09:08 +0200)] 
Add tests to see if CNAME records are not included multiple times

15 months agoMerge pull request #12839 from phonedph1/patch-38
Remi Gacogne [Mon, 12 Jun 2023 08:08:45 +0000 (10:08 +0200)] 
Merge pull request #12839 from phonedph1/patch-38

Update rules-actions.rst

15 months agorec: Escape (by prepending "PDNS") message keys that are special to systemd-journal
Otto Moerbeek [Mon, 12 Jun 2023 07:40:18 +0000 (09:40 +0200)] 
rec: Escape (by prepending "PDNS") message keys that are special to systemd-journal

15 months agorec: Prevent duplicate C/DNAMEs to be included when doing serve-stale
Otto Moerbeek [Fri, 9 Jun 2023 09:51:04 +0000 (11:51 +0200)] 
rec: Prevent duplicate C/DNAMEs to be included when doing serve-stale

This can happen if the CNAME record itself was found, but its target not

15 months agoMerge pull request #12898 from omoerbeek/rec-depth
Otto Moerbeek [Fri, 9 Jun 2023 06:06:06 +0000 (08:06 +0200)] 
Merge pull request #12898 from omoerbeek/rec-depth

rec: keep track of max depth reached and report it if !quiet