]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
17 months agoMerge pull request #13888 from Habbie/rec-4.6-no-spelling rel/rec-4.6.x
Peter van Dijk [Mon, 11 Mar 2024 08:57:36 +0000 (09:57 +0100)] 
Merge pull request #13888 from Habbie/rec-4.6-no-spelling

rec-4.6.x: remove spell checker

17 months agorec-4.6.x: remove spell checker 13888/head
Peter van Dijk [Mon, 11 Mar 2024 08:39:30 +0000 (09:39 +0100)] 
rec-4.6.x: remove spell checker

2 years agoMerge pull request #12702 from omoerbeek/rec-46-spoof rec-4.6.6
Otto Moerbeek [Wed, 29 Mar 2023 11:06:16 +0000 (13:06 +0200)] 
Merge pull request #12702 from omoerbeek/rec-46-spoof

rec: Backport 12699 to rec-4.6.x: Deterred spoofing attempts can lead to authoritative servers being marked unavailable

2 years agoPowerDNS Security Advisory 2023-02: Deterred spoofing attempts can lead to authoritat... 12702/head
Otto Moerbeek [Thu, 16 Mar 2023 07:41:43 +0000 (08:41 +0100)] 
PowerDNS Security Advisory 2023-02: Deterred spoofing attempts can lead to authoritative servers being marked unavailable (CVE-2023-26437)

2 years agoMerge pull request #12643 from romeroalx/update-gh-actions-rec-4.6
Otto Moerbeek [Thu, 16 Mar 2023 09:15:47 +0000 (10:15 +0100)] 
Merge pull request #12643 from romeroalx/update-gh-actions-rec-4.6

Backport GH Actions updates from master to rec-4.6.x

2 years agoUse actions/cache@v3 12643/head
Josh Soref [Thu, 9 Mar 2023 15:47:41 +0000 (10:47 -0500)] 
Use actions/cache@v3

2 years agoUse actions/checkout@v3
Josh Soref [Thu, 9 Mar 2023 15:47:03 +0000 (10:47 -0500)] 
Use actions/checkout@v3

2 years agodocs: move dependencies from pieterlexis to PowerDNS
Peter van Dijk [Tue, 11 Jan 2022 13:18:08 +0000 (14:18 +0100)] 
docs: move dependencies from pieterlexis to PowerDNS

2 years agogh actions: simplified collector job in build-and-test-all.yml
Alexis Romero [Thu, 16 Feb 2023 05:54:23 +0000 (06:54 +0100)] 
gh actions: simplified collector job in build-and-test-all.yml

2 years agoAvoid Microsoft repo for ODBC. Step 1: codeql allow apt downgrades
Alexis Romero [Thu, 23 Feb 2023 10:03:30 +0000 (11:03 +0100)] 
Avoid Microsoft repo for ODBC. Step 1: codeql allow apt downgrades

2 years agoAvoid Microsoft repo for ODBC. Step 1: allow apt downgrades
Alexis Romero [Wed, 22 Feb 2023 10:48:28 +0000 (11:48 +0100)] 
Avoid Microsoft repo for ODBC. Step 1: allow apt downgrades

2 years agocodeql workflow: set ubuntu mirror
Peter van Dijk [Mon, 6 Feb 2023 10:41:18 +0000 (11:41 +0100)] 
codeql workflow: set ubuntu mirror

2 years agobuild-and-test-all: add functionality to quickly switch ubuntu mirrors
Peter van Dijk [Fri, 13 Jan 2023 10:06:14 +0000 (11:06 +0100)] 
build-and-test-all: add functionality to quickly switch ubuntu mirrors

2 years agoRestrict permissions for GITHUB_TOKEN in our workflows
Remi Gacogne [Thu, 1 Dec 2022 13:34:19 +0000 (14:34 +0100)] 
Restrict permissions for GITHUB_TOKEN in our workflows

Added using https://github.com/step-security/secure-workflows
For more information see:
- https://github.com/ossf/scorecard/blob/d8fefc9b246db3600c777e9d60d441d7c386ce1d/docs/checks.md#token-permissions
- https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/

2 years agobuild(deps): bump actions/setup-python from 2 to 4
dependabot[bot] [Wed, 19 Oct 2022 14:28:07 +0000 (14:28 +0000)] 
build(deps): bump actions/setup-python from 2 to 4

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoSwitch from set-output tot GITHUB_OUTPUT
Josh Soref [Tue, 6 Dec 2022 17:39:08 +0000 (12:39 -0500)] 
Switch from set-output tot GITHUB_OUTPUT

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2 years agobuild(deps): bump actions/upload-artifact from 1 to 3
dependabot[bot] [Wed, 19 Oct 2022 14:28:01 +0000 (14:28 +0000)] 
build(deps): bump actions/upload-artifact from 1 to 3

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 1 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v1...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump actions/download-artifact from 2 to 3
dependabot[bot] [Wed, 19 Oct 2022 14:27:58 +0000 (14:27 +0000)] 
build(deps): bump actions/download-artifact from 2 to 3

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump actions/checkout from 2.3.4 to 3.1.0
dependabot[bot] [Wed, 19 Oct 2022 14:44:55 +0000 (14:44 +0000)] 
build(deps): bump actions/checkout from 2.3.4 to 3.1.0

Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 3.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.4...v3.1.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agobuild(deps): bump actions/cache from 2 to 3.0.11
dependabot[bot] [Wed, 19 Oct 2022 14:28:05 +0000 (14:28 +0000)] 
build(deps): bump actions/cache from 2 to 3.0.11

Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.0.11.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3.0.11)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoMerge pull request #12229 from omoerbeek/backport-12198-to-rec-4.6.x rec-4.6.5
Otto Moerbeek [Wed, 23 Nov 2022 09:28:47 +0000 (10:28 +0100)] 
Merge pull request #12229 from omoerbeek/backport-12198-to-rec-4.6.x

rec: Backport 12198 to rec-4.6.x: Correct skip record condition in processRecords.

2 years agoMerge pull request #12226 from omoerbeek/backport-12199-to-rec-4.6.x
Otto Moerbeek [Wed, 23 Nov 2022 09:28:32 +0000 (10:28 +0100)] 
Merge pull request #12226 from omoerbeek/backport-12199-to-rec-4.6.x

rec: Backport 12199 to rec-4.6.x: Also consider recursive forward in the "forwarded DS should not end up in negCache code."

2 years agoCorrect skip record condition in processRecords. 12229/head
Otto Moerbeek [Wed, 16 Nov 2022 12:49:59 +0000 (13:49 +0100)] 
Correct skip record condition in processRecords.

Noted the other day by @rgacogne

(cherry picked from commit d1321ff57909f8fb9d0bd7a20e3c4eb85a6b76e1)

2 years agoAlso consider recursive forward in the "forwarded DS should not end up in negCache... 12226/head
Otto Moerbeek [Wed, 16 Nov 2022 12:58:04 +0000 (13:58 +0100)] 
Also consider recursive forward in the "forwarded DS should not end up in negCache code."

With @rgacogne and @phonedph1
Fixes #12189

(cherry picked from commit af746aaf59a2e977bafabd5814635f59b01e5835)

2 years agoMerge pull request #12191 from omoerbeek/backport-12125-to-rec-4.6.x
Otto Moerbeek [Tue, 15 Nov 2022 11:26:47 +0000 (12:26 +0100)] 
Merge pull request #12191 from omoerbeek/backport-12125-to-rec-4.6.x

rec: Backport 12125 to rec 4.6.x: Timout handling for ixfrs as a client

2 years agoBetter wording in comment 12191/head
Otto Moerbeek [Thu, 3 Nov 2022 08:50:12 +0000 (09:50 +0100)] 
Better wording in comment

Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
(cherry picked from commit 240460d77be35a6a1c1e6fa22364efe19dc3ee84)

2 years agoTimout handling for ixfrs as a client.
Otto Moerbeek [Mon, 24 Oct 2022 14:25:59 +0000 (16:25 +0200)] 
Timout handling for ixfrs as a client.

One complicating factor is that this is shared code, but auth and
rec do not agree on the definiton of the timeout value: auth states
it is a maximum idle time, while rec state it is the total xfr time.
While both apporaches make sense and in the end we would like to
enforce both, we now go for a more simple solution that respects
auth or rec behaviour based on a flag.

(cherry picked from commit fee334ae0f5083d47f9adc207d5a1a6d36ebc2ac)

2 years agoMerge pull request #12172 from omoerbeek/backport-12066-to-rec-4.6.x
Otto Moerbeek [Fri, 4 Nov 2022 13:01:32 +0000 (14:01 +0100)] 
Merge pull request #12172 from omoerbeek/backport-12066-to-rec-4.6.x

rec: Backport 12066 to rec 4.6.x: Detect invalid bytes in makeBytesFromHex()

2 years agoMerge pull request #12170 from omoerbeek/backport-12081-to-rec-4.6.x
Otto Moerbeek [Fri, 4 Nov 2022 13:01:18 +0000 (14:01 +0100)] 
Merge pull request #12170 from omoerbeek/backport-12081-to-rec-4.6.x

rec: Backport 12081 to rec-4.6.x: Log invalid RPZ content when obtained via IXFR

2 years agoMerge pull request #12167 from omoerbeek/backport-12038-to-rec-4.6.x
Otto Moerbeek [Fri, 4 Nov 2022 13:01:05 +0000 (14:01 +0100)] 
Merge pull request #12167 from omoerbeek/backport-12038-to-rec-4.6.x

rec: Backport 12038 to rec-4.6.x: when an expired nsec3 entry is seen, move it to the front of the expiry queue

2 years agoApply Otto's suggestion 12172/head
Remi Gacogne [Thu, 6 Oct 2022 08:14:50 +0000 (10:14 +0200)] 
Apply Otto's suggestion

(cherry picked from commit 7f73a566805979f94bc1a23c9088372e00177bec)

2 years agomisc: Switch to a std::array in makeHexDump()
Remi Gacogne [Thu, 6 Oct 2022 07:56:47 +0000 (09:56 +0200)] 
misc: Switch to a std::array in makeHexDump()

(cherry picked from commit 8c7a1b8a671291e6ee2e7e4abdbdd41e9c714b31)

2 years agoauth: Detect invalid bytes in makeBytesFromHex()
Remi Gacogne [Thu, 6 Oct 2022 07:55:48 +0000 (09:55 +0200)] 
auth: Detect invalid bytes in makeBytesFromHex()

Also only allocate the required number of bytes, not twice that.

(cherry picked from commit 50953de897023742e43d3feab976b891be1c6e63)

2 years agorec: Log invalid RPZ content when obtained via IXFR 12170/head
Remi Gacogne [Mon, 10 Oct 2022 15:47:46 +0000 (17:47 +0200)] 
rec: Log invalid RPZ content when obtained via IXFR

That kind of content was properly logged and handled when received
during the initial loading (AXFR) but not when received via an
incremental update.

(cherry picked from commit 55a99233728fc01e3946a97fb8dbb073a3003622)

2 years agorec: when an expired nsec3 entry is seen, move it to the front of the expiry queue 12167/head
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

(cherry picked from commit 05a4985708988eb10f9291a40406b205e7d5d5b2)

2 years agoMerge pull request #11976 from Habbie/backport-11961-to-rec-4.6.x
Peter van Dijk [Mon, 19 Sep 2022 17:56:58 +0000 (19:56 +0200)] 
Merge pull request #11976 from Habbie/backport-11961-to-rec-4.6.x

rec 4.6.x docker: upgrade to bullseye

2 years agodocker: upgrade to bullseye 11976/head
Peter van Dijk [Thu, 15 Sep 2022 13:14:34 +0000 (15:14 +0200)] 
docker: upgrade to bullseye

(cherry picked from commit a0d3acff25a92627186ee43bead110aef416f59a)

2 years agoMerge pull request #11943 from omoerbeek/backport-11641-to-rec-4.6.x rec-4.6.4
Otto Moerbeek [Tue, 13 Sep 2022 07:54:03 +0000 (09:54 +0200)] 
Merge pull request #11943 from omoerbeek/backport-11641-to-rec-4.6.x

rec: Backport 11641 to rec-4.6.x: Move to v2 for CodeQL action, v1 will be deprecated dec 2022

2 years agoMerge pull request #11937 from omoerbeek/backport-11904-to-rec-4.6.x
Otto Moerbeek [Mon, 12 Sep 2022 14:15:54 +0000 (16:15 +0200)] 
Merge pull request #11937 from omoerbeek/backport-11904-to-rec-4.6.x

rec: Backport 11904 to rec-4.6.x: For zones having many NS records, we are not interested in all so take a sample.

2 years agoMerge pull request #11941 from omoerbeek/backport-11890-to-rec-4.6.x
Otto Moerbeek [Mon, 12 Sep 2022 14:14:58 +0000 (16:14 +0200)] 
Merge pull request #11941 from omoerbeek/backport-11890-to-rec-4.6.x

rec: Backport of 11890 to rec-4.6.x: Failure to retrieve DNSKEYs of an Insecure zone should not be fatal.

2 years agoMove to v2 for CodeQL action, v1 will be deprecated dec 2022 11943/head
Otto Moerbeek [Tue, 24 May 2022 10:36:28 +0000 (12:36 +0200)] 
Move to v2 for CodeQL action, v1 will be deprecated dec 2022

(cherry picked from commit a0c99342e7aa22e16a75d9e7daa4de69d087bc38)

2 years agoFailure to retrieve DNSKEYs of an Insecure zone should not be fatal. 11941/head
Otto Moerbeek [Wed, 31 Aug 2022 08:34:18 +0000 (10:34 +0200)] 
Failure to retrieve DNSKEYs of an Insecure zone should not be fatal.

This issue happens if a record set is signed even though the zone
itself is Insecure. Syncres then tries to retrieve DNSKEYs and a
timeout on that would lead to an ImmediateServFailException.

Only throw exception later in validateRecordsWithSigs, after checking
zone cuts, when we are sure the zone is Secure.

(cherry picked from commit 6dc8b0b2c6fb2e628356f8dc5c5de4dfd919ec5d)

2 years agoFor zones having many NS records, we are not interested in all so take a sample. 11937/head
Otto Moerbeek [Tue, 6 Sep 2022 07:50:52 +0000 (09:50 +0200)] 
For zones having many NS records, we are not interested in all so take a sample.

(cherry picked from commit a49b0b40a0c1c1af9531b99e9266a8c2aa89cd68)

2 years agoMerge pull request #11898 from omoerbeek/backport-11848-to-rec-4.6.x
Otto Moerbeek [Fri, 9 Sep 2022 08:13:20 +0000 (10:13 +0200)] 
Merge pull request #11898 from omoerbeek/backport-11848-to-rec-4.6.x

rec: Backport 11848 to rec-4.6.x: Also check qperq limit if throttling happened, as it increases counters.

2 years agoAlso check qperq limit if throttling happened, as it increases counters. 11898/head
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.

(cherry picked from commit c75d28f2b786b986ec10675e3c853a52eec11e37)

2 years agoMerge pull request #11775 from omoerbeek/backport-11773-to-rec-4.6.x
Otto Moerbeek [Tue, 23 Aug 2022 11:17:54 +0000 (13:17 +0200)] 
Merge pull request #11775 from omoerbeek/backport-11773-to-rec-4.6.x

rec: Backport 11773 to rec 4.6.x: Resize answer length to actual received length in udpQueryResponse

2 years agoMerge pull request #11876 from omoerbeek/rec-backport-to-rec-4.6.x-pb-size rec-4.6.3
Otto Moerbeek [Tue, 23 Aug 2022 10:17:24 +0000 (12:17 +0200)] 
Merge pull request #11876 from omoerbeek/rec-backport-to-rec-4.6.x-pb-size

Backport of protobuf PSA 2022-02 (CVE-2022-37428) to rec-4.6.x

3 years agoBackport of protobuf PSA 2022-02 (CVE-2022-37428) to rec-4.6.x 11876/head
Otto Moerbeek [Wed, 3 Aug 2022 13:32:43 +0000 (15:32 +0200)] 
Backport of protobuf PSA 2022-02 (CVE-2022-37428) to rec-4.6.x

3 years agoAdd regression test for #11771 (lenght of annswer in udpQueryResponse) 11775/head
Otto Moerbeek [Mon, 11 Jul 2022 08:22:43 +0000 (10:22 +0200)] 
Add regression test for #11771 (lenght of annswer in udpQueryResponse)

(cherry picked from commit 8ca70105ddd6fda10e98b6d3d8cb67523ebc81e1)

3 years agoRec: Resize answer length to actual received length in udpQueryResponse
Otto Moerbeek [Mon, 11 Jul 2022 08:21:48 +0000 (10:21 +0200)] 
Rec: Resize answer length to actual received length in udpQueryResponse

Fixes #11771

(cherry picked from commit cbb5ac45a90e4109ff1f8536bf5d99aafd62ef0c)

3 years agoMerge pull request #11739 from Habbie/backport-11735-to-rec-4.6.x
Otto Moerbeek [Mon, 4 Jul 2022 12:53:15 +0000 (14:53 +0200)] 
Merge pull request #11739 from Habbie/backport-11735-to-rec-4.6.x

rec-4.6.x: dh_builddeb: force gzip compression, thanks Zash!

3 years agodh_builddeb: force gzip compression, thanks Zash! 11739/head
Peter van Dijk [Thu, 30 Jun 2022 11:51:00 +0000 (13:51 +0200)] 
dh_builddeb: force gzip compression, thanks Zash!

(cherry picked from commit bbfa37c0232b56e2227668717dbb97ce4f01d990)

3 years agoMerge pull request #11700 from Habbie/backport-11658-to-rec-4.6.x
Otto Moerbeek [Fri, 17 Jun 2022 11:05:52 +0000 (13:05 +0200)] 
Merge pull request #11700 from Habbie/backport-11658-to-rec-4.6.x

rec-4.6.x: protobuf: use python implementation during tests

3 years agoprotobuf: use python implementation during tests 11700/head
Peter van Dijk [Tue, 31 May 2022 10:13:57 +0000 (12:13 +0200)] 
protobuf: use python implementation during tests

(cherry picked from commit 2dd4d60b8103a64c796296647ad7b45226d5a5bd)

3 years agoMerge pull request #11633 from omoerbeek/backport-11609-to-rec-4.6.x
Otto Moerbeek [Fri, 17 Jun 2022 08:58:09 +0000 (10:58 +0200)] 
Merge pull request #11633 from omoerbeek/backport-11609-to-rec-4.6.x

Backport 11609 to rec 4.6.x: Fix API issue when asking config values for allow-from or allow-notiy-from

3 years agoDocument meaning of empty allow-from 11633/head
Otto Moerbeek [Fri, 6 May 2022 09:54:23 +0000 (11:54 +0200)] 
Document meaning of empty allow-from

(cherry picked from commit a75c8e8019462827dae4599b6a24ef7a0645c30c)

3 years agoAdd tests for empty allow-from and allow-notify-from case
Otto Moerbeek [Thu, 5 May 2022 08:19:47 +0000 (10:19 +0200)] 
Add tests for empty allow-from and allow-notify-from case

(cherry picked from commit bfa1ae26f5c174d6fe237dc0ed9d08043518648f)

3 years agoFix API issue when asking config values for allow-from or allow-notify-from
Otto Moerbeek [Thu, 5 May 2022 08:04:20 +0000 (10:04 +0200)] 
Fix API issue when asking config values for allow-from or allow-notify-from

(cherry picked from commit 3aa876deef257fc6d63da32df0742ed8cf91aaa1)

3 years agoMerge pull request #11569 from omoerbeek/backport-11496-to-rec-4.6.x
Otto Moerbeek [Tue, 26 Apr 2022 10:20:13 +0000 (12:20 +0200)] 
Merge pull request #11569 from omoerbeek/backport-11496-to-rec-4.6.x

rec: Backport of 11496 to rec-4.6.x: Prevent segfault with empty allow-from-file and allow-from options

3 years agorec: Backport of 11496 to rec-4.6.x: Prevent segfault with empty allow-from-file... 11569/head
Otto Moerbeek [Fri, 22 Apr 2022 08:37:56 +0000 (10:37 +0200)] 
rec: Backport of 11496 to rec-4.6.x: Prevent segfault with empty allow-from-file and allow-from options

3 years agoMerge pull request #11478 from omoerbeek/rec-fix-rpz-incompletetest rec-4.6.2
Otto Moerbeek [Tue, 29 Mar 2022 14:16:09 +0000 (16:16 +0200)] 
Merge pull request #11478 from omoerbeek/rec-fix-rpz-incompletetest

rec: rec-4.6.x has no waitForTCPSocket in test code

3 years ago4.6.x has no waitForTCPSocket plus counts are different due to rpz loading changes... 11478/head
Otto Moerbeek [Tue, 29 Mar 2022 10:32:33 +0000 (12:32 +0200)] 
4.6.x has no waitForTCPSocket plus counts are different due to rpz loading changes in master

3 years agoMerge pull request #11458 from omoerbeek/rec-4.6.0-ixfr
Otto Moerbeek [Fri, 25 Mar 2022 15:52:27 +0000 (16:52 +0100)] 
Merge pull request #11458 from omoerbeek/rec-4.6.0-ixfr

Rec 4.6.x: Fix a case where an incomplete read caused by network error might result in a truncated zone

3 years agoMerge pull request #11464 from Habbie/backport-11449-to-rec-4.6.x
Otto Moerbeek [Fri, 25 Mar 2022 15:34:15 +0000 (16:34 +0100)] 
Merge pull request #11464 from Habbie/backport-11449-to-rec-4.6.x

rec-4.6.x docs: Pin jinja2 to < 3.1.0

3 years agodocs: Pin jinja2 to < 3.1.0 11464/head
Remi Gacogne [Fri, 25 Mar 2022 08:45:55 +0000 (09:45 +0100)] 
docs: Pin jinja2 to < 3.1.0

Jinja2 3.1.0 removed deprecated code that is still used by sphinx
1.8.x, and it looks like our custom sphinx extensions are not working
with more recent versions of sphinx..

See:
- https://github.com/pallets/jinja/issues/1631
- https://github.com/readthedocs/readthedocs.org/issues/9037

and

- https://github.com/PowerDNS/pdns/pull/7712

The exact error is:
```
Extension error:
Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/dnsdist/pdns/dnsdistdist/.venv/lib/python3.7/site-packages/jinja2/__init__.py))
```

(cherry picked from commit 92ad29702011ac7cbd0d7d118ba612e7e07cedbe)

3 years agoMerge pull request #11418 from omoerbeek/backport-11376-to-rec-4.6.x
Otto Moerbeek [Fri, 18 Mar 2022 09:22:47 +0000 (10:22 +0100)] 
Merge pull request #11418 from omoerbeek/backport-11376-to-rec-4.6.x

rec: Backport 11376 to rec 4.6.x: Be more careful using refresh mode only for the record asked

3 years agorec: Fix the path to the recursor's UBSan suppression file in forks 11458/head rec-4.6.1
Remi Gacogne [Fri, 17 Dec 2021 16:10:03 +0000 (17:10 +0100)] 
rec: Fix the path to the recursor's UBSan suppression file in forks

3 years agobuilder: add el-7 alias for centos-7
Peter van Dijk [Mon, 31 Jan 2022 17:15:14 +0000 (18:15 +0100)] 
builder: add el-7 alias for centos-7

(cherry picked from commit 6bd3c9bb23f5dfc385a66647ab175ec2812d6617)

3 years agotake centos 8-stream from quay
Peter van Dijk [Mon, 31 Jan 2022 15:43:54 +0000 (16:43 +0100)] 
take centos 8-stream from quay

(cherry picked from commit 2f9edddc0c9c1f8a68e154f6c12e3fd214420563)

3 years agobuilder CI: switch oraclelinux-8 to el-8
Peter van Dijk [Mon, 31 Jan 2022 15:28:34 +0000 (16:28 +0100)] 
builder CI: switch oraclelinux-8 to el-8

cleanup

(cherry picked from commit 1b27721782ad3dc547ed448a257c59829ff0bd94)

3 years agobuilder: archs for oraclelinux-8; el-8 symlinks
Peter van Dijk [Mon, 31 Jan 2022 15:28:04 +0000 (16:28 +0100)] 
builder: archs for oraclelinux-8; el-8 symlinks

(cherry picked from commit dee53cf16161a6c45560475b647de420842532ef)

3 years agostop testing auth+dnsdist on rec branch
Peter van Dijk [Wed, 2 Feb 2022 09:28:44 +0000 (10:28 +0100)] 
stop testing auth+dnsdist on rec branch

3 years agoCI: dnspython 2.2.0 breaks auth and ixfrdist testing, pin to 2.1.0
Peter van Dijk [Tue, 18 Jan 2022 15:40:52 +0000 (16:40 +0100)] 
CI: dnspython 2.2.0 breaks auth and ixfrdist testing, pin to 2.1.0

(cherry picked from commit 46a40ed033d64f58aa30013d7e68daa5b5e8d615)

3 years agoauth, rec IXFR-in: Fix a case where an incomplete read caused by network error might...
Otto Moerbeek [Tue, 8 Mar 2022 14:36:48 +0000 (15:36 +0100)] 
auth, rec IXFR-in: Fix a case where an incomplete read caused by network error might result in a truncated zone.

As we might break from the loop early, we need to check if the end SOA was seen after the loop.
Also make sure we detect end conditions for both AXFR and IXFR style properly, to avoid processing
data after the end marker.

3 years agoReinstate refresh mode for {C,D}NAME cache lookups 11418/head
Otto Moerbeek [Fri, 11 Mar 2022 13:15:50 +0000 (14:15 +0100)] 
Reinstate refresh mode for {C,D}NAME cache lookups

(cherry picked from commit 3263b3adf19081274a9e36891eb202d75685ecfa)

3 years agoBe more careful using refresh mode only for the record asked.
Otto Moerbeek [Mon, 28 Feb 2022 13:27:30 +0000 (14:27 +0100)] 
Be more careful using refresh mode only for the record asked.
Otherwise we get bad interaction with QM, as newly discovered
delegation points are stored in the cache, but not seen the QM
algorithm. Might/should fix #11371.

(cherry picked from commit 7502f5f3b9293bed2601be2c479780f94438b45b)

3 years agoMerge pull request #11380 from omoerbeek/backport-11300-to-rec-4.6.x
Otto Moerbeek [Fri, 4 Mar 2022 08:31:14 +0000 (09:31 +0100)] 
Merge pull request #11380 from omoerbeek/backport-11300-to-rec-4.6.x

rec: Backport of 11300 to rec-4.6.x: Use the Lua context stored in SyncRes when calling hooks

3 years agoBackport of 11300 to rec-4.6.x: Use the Lua context stored in SyncRes when calling... 11380/head
Otto Moerbeek [Tue, 1 Mar 2022 08:56:48 +0000 (09:56 +0100)] 
Backport of 11300 to rec-4.6.x: Use the Lua context stored in SyncRes when calling hooks

3 years agoMerge pull request #11363 from omoerbeek/backport-11338-to-rec-4.6.x
Otto Moerbeek [Mon, 28 Feb 2022 14:29:11 +0000 (15:29 +0100)] 
Merge pull request #11363 from omoerbeek/backport-11338-to-rec-4.6.x

rec: Backport of 11338 to rec-4.6.x: QType ADDR is supposed to be used internally only

3 years agoMerge pull request #11362 from omoerbeek/backport-11327-to-rec-4.6.x
Otto Moerbeek [Mon, 28 Feb 2022 14:28:51 +0000 (15:28 +0100)] 
Merge pull request #11362 from omoerbeek/backport-11327-to-rec-4.6.x

rec: Backport 11327 to rec 4.6.x: If we get NODATA on an AAAA in followCNAMERecords, try dns64

3 years agoMerge pull request #11360 from omoerbeek/backport-11283-to-rec-4.6.x
Otto Moerbeek [Mon, 28 Feb 2022 14:28:29 +0000 (15:28 +0100)] 
Merge pull request #11360 from omoerbeek/backport-11283-to-rec-4.6.x

rec: Backport 11283 to rec 4.6.x: Allow disabling of processing the root hints

3 years agoMerge pull request #11361 from omoerbeek/backport-11288-to-rec-4.6.x
Otto Moerbeek [Mon, 28 Feb 2022 14:28:08 +0000 (15:28 +0100)] 
Merge pull request #11361 from omoerbeek/backport-11288-to-rec-4.6.x

rec: Backport 11288 to rec 4.6.x: Log an error if pdns.DROP is used as rcode in Lua callbacks

3 years agoMerge pull request #11359 from omoerbeek/backport-11257-to-rec-4.6.x
Otto Moerbeek [Mon, 28 Feb 2022 14:27:49 +0000 (15:27 +0100)] 
Merge pull request #11359 from omoerbeek/backport-11257-to-rec-4.6.x

rec: Backport 11257 to rec 4.6.x: Initialize isNew before calling a exception throwing function

3 years agoMerge pull request #11358 from omoerbeek/backport-11245-to-rec-4.6.x
Otto Moerbeek [Mon, 28 Feb 2022 14:27:34 +0000 (15:27 +0100)] 
Merge pull request #11358 from omoerbeek/backport-11245-to-rec-4.6.x

rec: Backport 11245 to rec 4.6.x: a CNAME answer on DS query should abort DS retrieval

3 years agoMerge pull request #11357 from omoerbeek/backport-11225-to-rec-4.6.x
Otto Moerbeek [Mon, 28 Feb 2022 14:27:15 +0000 (15:27 +0100)] 
Merge pull request #11357 from omoerbeek/backport-11225-to-rec-4.6.x

rec: Backport 11225 to rec 4.6.x: Reject non-apex NSEC(3)s that have both the NS and SOA bits set

3 years agoMerge pull request #11356 from omoerbeek/backport-11199-to-rec-4.6.x
Otto Moerbeek [Mon, 28 Feb 2022 14:26:57 +0000 (15:26 +0100)] 
Merge pull request #11356 from omoerbeek/backport-11199-to-rec-4.6.x

rec: Backport 11199 to rec 4.6.x: add ubuntu jammy build target

3 years agoQType ADDR is supposed to be used internally only. 11363/head
Otto Moerbeek [Fri, 18 Feb 2022 15:24:11 +0000 (16:24 +0100)] 
QType ADDR is supposed to be used internally only.

Should fix #11337

(cherry picked from commit 7a278799ee23e582c3b722cea578699db1791bc2)

3 years agoAdd test case for #11320: followCNAMERecords leads to a result that 11362/head
Otto Moerbeek [Tue, 15 Feb 2022 13:09:36 +0000 (14:09 +0100)] 
Add test case for #11320:  followCNAMERecords leads to a result that
should be subject to dns64 processing

(cherry picked from commit 63ad9c90eb8f1842d2d79acefa803db9f820e33d)

3 years agoIf we get NODATA on an AAAA in followCNAMERecords, try dns64
Otto Moerbeek [Mon, 14 Feb 2022 14:39:17 +0000 (15:39 +0100)] 
If we get NODATA on an AAAA in followCNAMERecords, try dns64

Fixes #11320

(cherry picked from commit aa59465e46b6fd617bf992a80da400ae14fbb4ec)

3 years agoApply suggestions from code review 11361/head
Otto Moerbeek [Fri, 4 Feb 2022 09:56:17 +0000 (10:56 +0100)] 
Apply suggestions from code review

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

3 years agoLog an error if pdns.DROP is used as rcode in Lua callbacks
Otto Moerbeek [Fri, 4 Feb 2022 09:03:04 +0000 (10:03 +0100)] 
Log an error if pdns.DROP is used as rcode in Lua callbacks

(cherry picked from commit f3f042efd2a1aff444f18e7d9e23ffc631b1b36f)

3 years agoUpgrade guide and doc tweaks 11360/head
Otto Moerbeek [Fri, 4 Feb 2022 07:49:11 +0000 (08:49 +0100)] 
Upgrade guide and doc tweaks

(cherry picked from commit 067a807cbc008d2b4c79a3ebe709226d46ff7718)

3 years agoAllow disabling of processing the root hints
Otto Moerbeek [Fri, 28 Jan 2022 08:45:13 +0000 (09:45 +0100)] 
Allow disabling of processing the root hints

This also make sure we use the right dnssec mode for processing hints
and changes a few log levels to Debug to be less verbose.

(cherry picked from commit e46b0f2f7f4f20f92190a9202a7823ffe2123d98)

3 years agoInitialize isNew before calling a exception throwing function 11359/head
Otto Moerbeek [Mon, 31 Jan 2022 11:44:39 +0000 (12:44 +0100)] 
Initialize isNew before calling a exception throwing function

(cherry picked from commit 4043238ede86eb42dad0bd4eae0b51cb351e80ab)

3 years agoFix indent
Otto Moerbeek [Mon, 31 Jan 2022 11:43:23 +0000 (12:43 +0100)] 
Fix indent

(cherry picked from commit 5db4dcaa91deeb3dbb0ebfbec828e7d224eca074)

3 years agoAdd a test for the case where an (Insecure) domain fails to get a DS 11358/head
Otto Moerbeek [Fri, 28 Jan 2022 13:27:35 +0000 (14:27 +0100)] 
Add a test for the case where an (Insecure) domain fails to get a DS
record because of a CNAME loop, avoiding a SERVFAIL.

(cherry picked from commit c10acee8f241f7fa038fb5904d4bf71124093ac4)

3 years agoIf we get a CNAME when asking for a DS, we should give up and return vState::BogusUna...
Otto Moerbeek [Fri, 28 Jan 2022 13:26:36 +0000 (14:26 +0100)] 
If we get a CNAME when asking for a DS, we should give up and return vState::BogusUnableToGetDSs

(cherry picked from commit 271ae639803453a6193b6c3c2baf034446a9965a)

3 years agoNSEC -> NSEC3 11357/head
Remi Gacogne [Mon, 31 Jan 2022 08:44:15 +0000 (09:44 +0100)] 
NSEC -> NSEC3

Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
(cherry picked from commit c67b13a9aa2c8c4092de28c1bb37e8bbb32dcee3)

3 years agoNSEC -> NSEC3
Remi Gacogne [Mon, 31 Jan 2022 08:44:07 +0000 (09:44 +0100)] 
NSEC -> NSEC3

Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
(cherry picked from commit 78cee42937e5265bf6e0d5c1dc1fdaf684932a5a)

3 years agorec: The NSEC3 ancestor check must be done against the original owner name
Remi Gacogne [Fri, 21 Jan 2022 13:42:18 +0000 (14:42 +0100)] 
rec: The NSEC3 ancestor check must be done against the original owner name

(cherry picked from commit f37a904f4cc53ccb74b5904948b819920401ed24)