]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
2 years agoAlso consider recursive forward in the "forwarded DS should not end up in negCache... 12225/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 #12192 from omoerbeek/backport-12125-to-rec-4.5.x
Otto Moerbeek [Tue, 15 Nov 2022 11:27:19 +0000 (12:27 +0100)] 
Merge pull request #12192 from omoerbeek/backport-12125-to-rec-4.5.x

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

2 years agoTimout handling for ixfrs as a client. 12192/head
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 #12169 from omoerbeek/backport-12081-to-rec-4.5.x
Otto Moerbeek [Fri, 4 Nov 2022 12:40:31 +0000 (13:40 +0100)] 
Merge pull request #12169 from omoerbeek/backport-12081-to-rec-4.5.x

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

2 years agoMerge pull request #12166 from omoerbeek/backport-12038-to-rec-4.5.x
Otto Moerbeek [Fri, 4 Nov 2022 12:40:16 +0000 (13:40 +0100)] 
Merge pull request #12166 from omoerbeek/backport-12038-to-rec-4.5.x

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

2 years agoMerge pull request #12165 from omoerbeek/backport-11338-to-rec-4.5.x
Otto Moerbeek [Fri, 4 Nov 2022 12:39:59 +0000 (13:39 +0100)] 
Merge pull request #12165 from omoerbeek/backport-11338-to-rec-4.5.x

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

2 years agorec: Log invalid RPZ content when obtained via IXFR 12169/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 12166/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 agoQType ADDR is supposed to be used internally only. 12165/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)

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

rec 4.5.x docker: upgrade to bullseye

2 years agodocker: upgrade to bullseye 11975/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 #11944 from omoerbeek/backport-11641-to-rec-4.5.x rec-4.5.11
Otto Moerbeek [Tue, 13 Sep 2022 07:53:50 +0000 (09:53 +0200)] 
Merge pull request #11944 from omoerbeek/backport-11641-to-rec-4.5.x

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

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

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

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

rec: Backport of 11890 to rec-4.5.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 11944/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. 11942/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. 11939/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 #11899 from omoerbeek/backport-11848-to-rec-4.5.x
Otto Moerbeek [Fri, 9 Sep 2022 08:52:24 +0000 (10:52 +0200)] 
Merge pull request #11899 from omoerbeek/backport-11848-to-rec-4.5.x

rec: Backport 11848 to rec-4.5.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. 11899/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 #11875 from omoerbeek/rec-backport-to-rec-4.5.x-pb-size rec-4.5.10
Otto Moerbeek [Tue, 23 Aug 2022 10:17:14 +0000 (12:17 +0200)] 
Merge pull request #11875 from omoerbeek/rec-backport-to-rec-4.5.x-pb-size

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

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

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

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

3 years agoprotobuf: use python implementation during tests 11701/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 #11634 from omoerbeek/backport-11609-to-rec-4.5.x
Otto Moerbeek [Fri, 17 Jun 2022 08:58:23 +0000 (10:58 +0200)] 
Merge pull request #11634 from omoerbeek/backport-11609-to-rec-4.5.x

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

3 years agoDocument meaning of empty allow-from 11634/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 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 #11480 from omoerbeek/rec45-fix-rpz-incompletetest rec-4.5.9
Otto Moerbeek [Tue, 29 Mar 2022 15:04:53 +0000 (17:04 +0200)] 
Merge pull request #11480 from omoerbeek/rec45-fix-rpz-incompletetest

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

3 years agorec: rec-4.5.x has no waitForTCPSocket in test code 11480/head
Otto Moerbeek [Tue, 29 Mar 2022 13:41:23 +0000 (15:41 +0200)] 
rec: rec-4.5.x has no waitForTCPSocket in test code

Plus counts are different due to rpz loading changes in master.

3 years agoMerge pull request #11419 from omoerbeek/backport-11376-to-rec-4.5.x
Otto Moerbeek [Tue, 29 Mar 2022 10:08:34 +0000 (12:08 +0200)] 
Merge pull request #11419 from omoerbeek/backport-11376-to-rec-4.5.x

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

3 years agoMerge pull request #11457 from omoerbeek/rec-4.5.7-ixfr
Otto Moerbeek [Fri, 25 Mar 2022 15:51:29 +0000 (16:51 +0100)] 
Merge pull request #11457 from omoerbeek/rec-4.5.7-ixfr

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

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

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

3 years agodocs: Pin jinja2 to < 3.1.0 11463/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 agoDisable refresh almost expired inside getAddrs() 11419/head
Otto Moerbeek [Mon, 21 Mar 2022 10:24:14 +0000 (11:24 +0100)] 
Disable refresh almost expired inside getAddrs()

3 years agobuilder: add el-7 alias for centos-7 11457/head rec-4.5.8
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 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
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 #11399 from omoerbeek/backport-11044-to-rec-4.5.x
Otto Moerbeek [Tue, 8 Mar 2022 08:19:21 +0000 (09:19 +0100)] 
Merge pull request #11399 from omoerbeek/backport-11044-to-rec-4.5.x

rec: Backport 11044 to rec 4.5.x: Fix v6 test setup and start using a more modern auth on circleci

3 years agoFix error in test zone that auth-45 does not like 11399/head
Otto [Mon, 29 Nov 2021 13:48:09 +0000 (14:48 +0100)] 
Fix error in test zone that auth-45 does not like

(cherry picked from commit f1f41a8aa9299a4d8bf369c4fc0cb611f5b979cd)

3 years agoOne more occurence of --local-ipv6
Otto [Mon, 29 Nov 2021 11:52:09 +0000 (12:52 +0100)] 
One more occurence of --local-ipv6

(cherry picked from commit 9b3fc866b7f8133d4317aec9253e4b5fb0a385f9)

3 years agoFix v6 setup and start using a more modern auth on circleci
Otto [Mon, 29 Nov 2021 10:56:25 +0000 (11:56 +0100)] 
Fix v6 setup and start using a more modern auth on circleci

(cherry picked from commit 2d0fc474f8b03b536a95c6b9b05e96c6e8c51e30)

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

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

3 years agoBackport of 11300 to rec-4.5.x: Use the Lua context stored in SyncRes when calling... 11384/head
Otto Moerbeek [Wed, 2 Mar 2022 08:57:30 +0000 (09:57 +0100)] 
Backport of 11300 to rec-4.5.x: Use the Lua context stored in SyncRes when calling hooks

3 years agoMerge pull request #11276 from Habbie/backport-11262-to-rec-4.5.x
Peter van Dijk [Thu, 3 Feb 2022 12:55:48 +0000 (13:55 +0100)] 
Merge pull request #11276 from Habbie/backport-11262-to-rec-4.5.x

rec-4.5.x: builder: migrate EL8 builds to oraclelinux, rename centos8 to el8 where possible

3 years agobuilder: add el-7 alias for centos-7 11276/head
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 agoMerge pull request #11264 from omoerbeek/backport-11208-to-rec-4.5.x
Otto Moerbeek [Tue, 1 Feb 2022 09:42:21 +0000 (10:42 +0100)] 
Merge pull request #11264 from omoerbeek/backport-11208-to-rec-4.5.x

rec: backport to rec-4.5.x: CI: dnspython 2.2.0 breaks auth and ixfrdist testing, pin to 2.1.0

3 years agoCI: dnspython 2.2.0 breaks auth and ixfrdist testing, pin to 2.1.0 11264/head
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 agoMerge pull request #11024 from omoerbeek/backport-11010-to-rec-4.5.x
Otto Moerbeek [Tue, 23 Nov 2021 10:20:14 +0000 (11:20 +0100)] 
Merge pull request #11024 from omoerbeek/backport-11010-to-rec-4.5.x

rec: backport 10110 to rec-4.5.x: Do cache negcache results, even when wasVariable() is true

3 years agoDo cache negcache results, even when wasVariable() is true 11024/head
Otto [Fri, 19 Nov 2021 10:57:28 +0000 (11:57 +0100)] 
Do cache negcache results, even when wasVariable() is true

See https://datatracker.ietf.org/doc/html/rfc7871#section-7.4
Fixes #10994

(cherry picked from commit 2bcec14adbffbf4b28d698cb607877fb96054e87)

3 years agoMerge pull request #10912 from omoerbeek/backport-10908-to-rec-4.5.x rec-4.5.7
Otto Moerbeek [Wed, 27 Oct 2021 13:01:19 +0000 (15:01 +0200)] 
Merge pull request #10912 from omoerbeek/backport-10908-to-rec-4.5.x

rec: Backpoprt of 10908 to rec-4.5.x: A SHA-384 DS should not trump a SHA-256 one, so only potentially zap SHA-1

3 years agoMerge pull request #10911 from omoerbeek/backport-10905-to-rec-4.5.x
Otto Moerbeek [Wed, 27 Oct 2021 13:01:07 +0000 (15:01 +0200)] 
Merge pull request #10911 from omoerbeek/backport-10905-to-rec-4.5.x

rec: Backport of 10905 to rec-4.5.x: wipe-cache-typed  should check if a qtype arg is present and valid

3 years agoMerge pull request #10914 from rgacogne/rec45-docutils-pin
Remi Gacogne [Wed, 27 Oct 2021 12:39:35 +0000 (14:39 +0200)] 
Merge pull request #10914 from rgacogne/rec45-docutils-pin

rec-4.5.x: Pin docutils to < 0.18 for now

3 years agoPin docutils to < 0.18 for now 10914/head
Remi Gacogne [Tue, 26 Oct 2021 14:07:03 +0000 (16:07 +0200)] 
Pin docutils to < 0.18 for now

We will have to deal with that pain later, but let's unbreak our
CI first.

(cherry picked from commit 2503af018b72112a2422ce895d9e7418155cbc9f)

3 years agoA SHA-384 DS should not trump a SHA-256 one, so only potentially zap SHA-1 10912/head
Otto [Wed, 27 Oct 2021 10:01:09 +0000 (12:01 +0200)] 
A SHA-384 DS should not trump a SHA-256 one, so only potentially zap SHA-1

(cherry picked from commit a660ce6dbfc4182922eea8e548eb504af31b6cc1)

3 years agowipe-cache-typed should check if a qtype arg is present and valid 10911/head
Otto [Wed, 27 Oct 2021 07:38:10 +0000 (09:38 +0200)] 
wipe-cache-typed  should check if a qtype arg is present and valid

(cherry picked from commit a721f7b21a75cefaa189bf84b14979facde7d3ab)

3 years agoMerge pull request #10863 from omoerbeek/backport-10842-to-rec-4.5.x
Otto Moerbeek [Tue, 19 Oct 2021 08:36:20 +0000 (10:36 +0200)] 
Merge pull request #10863 from omoerbeek/backport-10842-to-rec-4.5.x

rec: Backport 10842 to rec 4.5.x:  Put the right string into appliedPolicyTrigger for Netmask matching rules

3 years agoProcess review comments 10863/head
Otto [Mon, 18 Oct 2021 10:19:46 +0000 (12:19 +0200)] 
Process review comments

(cherry picked from commit e4387f4e74375699780175a75111eb32a1a3b039)

3 years agoAlso moved setting of hit value to find functions mostly.
Otto [Fri, 15 Oct 2021 10:07:29 +0000 (12:07 +0200)] 
Also moved setting of hit value to find functions mostly.

In a few cases (wildcard processing) the matched value is not the
hit as seen by the find function and an overide is needed.

(cherry picked from commit f9de1f7fd8e37ba91b8b4c85082b2f16c8890cba)

3 years agoProcess review comments and extend unit tests
Otto [Fri, 15 Oct 2021 09:48:20 +0000 (11:48 +0200)] 
Process review comments and extend unit tests

(cherry picked from commit 562c1c1db90709b5abf4d01fa6be319d6a48e971)

3 years agoAdd regression test
Otto [Wed, 13 Oct 2021 14:24:28 +0000 (16:24 +0200)] 
Add regression test

(cherry picked from commit 9524d9c1d12237dfc44f6a440dd9fc30d6c8b608)

3 years agoPut the right string into appliedPolicyTrigger for Netmask matching rules
Otto [Wed, 13 Oct 2021 13:45:16 +0000 (15:45 +0200)] 
Put the right string into appliedPolicyTrigger for Netmask matching rules
(ns, client, response). The NetMaskTree has it.

(cherry picked from commit b143b5f53285957a7230a6e192935a4a45f3454d)

3 years agoMerge pull request #10806 from omoerbeek/backport-10565-to-rec-4.5.x rec-4.5.6
Remi Gacogne [Thu, 7 Oct 2021 07:57:52 +0000 (09:57 +0200)] 
Merge pull request #10806 from omoerbeek/backport-10565-to-rec-4.5.x

rec: Backport 10565 to rec 4.5.x: Do not use DNSKEYs found below an apex for validation

3 years agoMerge pull request #10807 from omoerbeek/backport-10622-to-rec-4.5.x
Remi Gacogne [Thu, 7 Oct 2021 07:57:46 +0000 (09:57 +0200)] 
Merge pull request #10807 from omoerbeek/backport-10622-to-rec-4.5.x

rec: Backport 10622 to rec 4.5.x: Detect a loop when the denial of the DS comes from the child zone

3 years agoMerge pull request #10809 from omoerbeek/min-backport-10632-to-4.5.x
Remi Gacogne [Thu, 7 Oct 2021 07:57:39 +0000 (09:57 +0200)] 
Merge pull request #10809 from omoerbeek/min-backport-10632-to-4.5.x

Rec: Minimal Backport of 10632: match ordering of PacketID using the Birtdah vs non-Birtday comparator

3 years agoMerge pull request #10811 from omoerbeek/backport-10633-to-rec-4.5.x
Remi Gacogne [Thu, 7 Oct 2021 07:57:31 +0000 (09:57 +0200)] 
Merge pull request #10811 from omoerbeek/backport-10633-to-rec-4.5.x

rec: Backport 10633 to rec 4.5.x: Pass the Lua context to follow up queries (follow CNAME, dns64)

3 years agoMerge pull request #10813 from omoerbeek/backport-10718-to-rec-4.5.x
Remi Gacogne [Thu, 7 Oct 2021 07:57:23 +0000 (09:57 +0200)] 
Merge pull request #10813 from omoerbeek/backport-10718-to-rec-4.5.x

rec: Backport 10718 to rec 4.5.x: Only the DNAME records are authoritative in DNAME answers

3 years agoUpdate pdns/syncres.cc 10813/head
Remi Gacogne [Wed, 15 Sep 2021 13:13:34 +0000 (15:13 +0200)] 
Update pdns/syncres.cc

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

3 years agorec: Only the DNAME records are authoritative in DNAME answers
Remi Gacogne [Mon, 13 Sep 2021 10:36:19 +0000 (12:36 +0200)] 
rec: Only the DNAME records are authoritative in DNAME answers

(cherry picked from commit 58655363e983054a265249aca8297eb6a5ed67af)

3 years agoReduce diff with branch 10811/head
Otto [Wed, 6 Oct 2021 09:13:17 +0000 (11:13 +0200)] 
Reduce diff with branch

3 years agorec: check that the policy event filter is called for follow-up queries
Remi Gacogne [Mon, 16 Aug 2021 15:45:18 +0000 (17:45 +0200)] 
rec: check that the policy event filter is called for follow-up queries

(cherry picked from commit 4037914713bb8893cb66f4dbba60addaeca20b02)

3 years agorec: Pass the Lua context to follow up queries (follow CNAME, dns64)
Remi Gacogne [Fri, 6 Aug 2021 07:51:49 +0000 (09:51 +0200)] 
rec: Pass the Lua context to follow up queries (follow CNAME, dns64)

(cherry picked from commit a4e9ad75186e883cdfcc87bc561a6e1f184d37f9)

3 years agoMinimal backport of #10632: match ordering of PacketID using the 10809/head
Otto [Wed, 6 Oct 2021 08:37:28 +0000 (10:37 +0200)] 
Minimal backport of #10632: match ordering of PacketID using the
Birtdah vs non-Birtday comparator

3 years agorec: Add a test for 'denial of the DS comes from the child zone' loop 10807/head
Remi Gacogne [Tue, 17 Aug 2021 09:33:16 +0000 (11:33 +0200)] 
rec: Add a test for 'denial of the DS comes from the child zone' loop

(cherry picked from commit 68ae8a86ab3943692fabeb134869e3d0a418dc03)

3 years agorec: Detect a loop when the denial of the DS comes from the child zone
Remi Gacogne [Sun, 1 Aug 2021 21:58:42 +0000 (23:58 +0200)] 
rec: Detect a loop when the denial of the DS comes from the child zone

(cherry picked from commit c3e96dca178cf355324ab34a08b3578e4fc44a31)

3 years agorec: do not use DNSKEYs found below an apex for validation, also from cache 10806/head
Peter van Dijk [Tue, 6 Jul 2021 14:47:43 +0000 (16:47 +0200)] 
rec: do not use DNSKEYs found below an apex for validation, also from cache

(cherry picked from commit 29ad87969c8a24fcc812ff4cb445a9e130d256ae)

3 years agorec: do not use DNSKEYs found below an apex for validation
Peter van Dijk [Mon, 5 Jul 2021 15:04:04 +0000 (17:04 +0200)] 
rec: do not use DNSKEYs found below an apex for validation

(cherry picked from commit 90b85dd0e7bfb7a21ab07f2ab9b31c616c6c62b9)

3 years agoMerge pull request #10803 from omoerbeek/backport-10768-to-rec-4.5.x
Otto Moerbeek [Wed, 6 Oct 2021 07:47:39 +0000 (09:47 +0200)] 
Merge pull request #10803 from omoerbeek/backport-10768-to-rec-4.5.x

rec: Backport 10768 to rec-4.5.x: Use the correct RPZ policy name when loading via XFR

3 years agorec: Use the correct RPZ policy name when loading via XFR 10803/head
Remi Gacogne [Tue, 28 Sep 2021 09:12:23 +0000 (11:12 +0200)] 
rec: Use the correct RPZ policy name when loading via XFR

This commit fixes two issues:
- if the existing zone name is not empty we should use it, instead of
  the zone domain
- if the zone domain has to be used, it should not include a final dot

(cherry picked from commit 3e86a970828dda814a140c9613311a8507c3c458)

3 years agoMerge pull request #10723 from omoerbeek/backport-10721-to-rec-4.5.x
Otto Moerbeek [Fri, 17 Sep 2021 14:40:46 +0000 (16:40 +0200)] 
Merge pull request #10723 from omoerbeek/backport-10721-to-rec-4.5.x

rec: Backport 10721 to rec 4.5.x: require nose >= 1.3.7 everywhere

3 years agorequire nose >= 1.3.7 everywhere 10723/head
Peter van Dijk [Tue, 14 Sep 2021 14:06:55 +0000 (16:06 +0200)] 
require nose >= 1.3.7 everywhere

(cherry picked from commit 8e8be088de0634fc561f5c7f6e26d6ed03f401e8)

3 years agoMerge pull request #10717 from omoerbeek/backport-10701-to-rec-4.5.x
Otto Moerbeek [Tue, 14 Sep 2021 06:41:15 +0000 (08:41 +0200)] 
Merge pull request #10717 from omoerbeek/backport-10701-to-rec-4.5.x

rec: Backport 10701 to rec-4.5.x: Fix the aggressive cache returning duplicated NSEC3 records

3 years agorec: Fix the aggressive cache returning duplicated NSEC3 records 10717/head
Remi Gacogne [Wed, 8 Sep 2021 09:11:53 +0000 (11:11 +0200)] 
rec: Fix the aggressive cache returning duplicated NSEC3 records

No need to include the same record twice when it provides, at the same
time, a proof that the closest encloser exists and that the next closer
does not, and/or that the wildcard does not exist either.
This happens right away in a zone with a single record, like reported
by Matt Nordhoff, but it might happen in other cases as well.

(cherry picked from commit eca47c4dd85d2711ebc26767dfa78bdbce2c7f16)

3 years agoMerge pull request #10655 from omoerbeek/backport-10643-to-rec-4.5.x
Otto Moerbeek [Mon, 13 Sep 2021 07:21:03 +0000 (09:21 +0200)] 
Merge pull request #10655 from omoerbeek/backport-10643-to-rec-4.5.x

rec: Backport 10643 to rec 4.5.x:  NS from the cache could be a forwarder

3 years agoMerge pull request #10680 from pieterlexis/backport-10407-to-rec-4.5.x
Pieter Lexis [Fri, 3 Sep 2021 12:36:16 +0000 (14:36 +0200)] 
Merge pull request #10680 from pieterlexis/backport-10407-to-rec-4.5.x

rec: Backport #10407; Debian Bullseye builder files

3 years agorecursor/debian-buster: remove obsolete dh-systemd Build-Depends 10680/head
Chris Hofstaedtler [Thu, 13 May 2021 14:58:37 +0000 (16:58 +0200)] 
recursor/debian-buster: remove obsolete dh-systemd Build-Depends

Merged into debhelper (>= 9.20160709)

(cherry picked from commit 58f41c5e304caf847c52a0951c2a5a4b9f6c02fb)

3 years agobuilder-support: add Debian bullseye dockerfiles
Chris Hofstaedtler [Thu, 13 May 2021 14:50:03 +0000 (16:50 +0200)] 
builder-support: add Debian bullseye dockerfiles

(cherry picked from commit ad53d76110228c6d0822b1b130e0bbe425872499)

3 years agoAlso check if the remoteIP is one of the IPs we would have forwarded to, 10655/head
Otto [Wed, 18 Aug 2021 07:24:45 +0000 (09:24 +0200)] 
Also check if the remoteIP is one of the IPs we would have forwarded to,
even if it's coming from the cache.

4 years agoIf we get an NS from the cache, it still could be one forwarding applies to.
Otto [Wed, 11 Aug 2021 11:14:37 +0000 (13:14 +0200)] 
If we get an NS from the cache, it still could be one forwarding applies to.
Take that into acount when determining dont-query status. Should fix #10638.

(cherry picked from commit c03df9bb6f8cd71a67ef9505fcafa27d514a68ad)

4 years agoMerge pull request #10629 from omoerbeek/backport-10627-to-rec-4.5.x
Otto Moerbeek [Mon, 9 Aug 2021 06:21:30 +0000 (08:21 +0200)] 
Merge pull request #10629 from omoerbeek/backport-10627-to-rec-4.5.x

rec: backport 10627 to rec 4.5.x: Check in more places if the policy has been updated before  using or modifying it.

4 years agoCheck in more places if the config policy has been updated before 10629/head
Otto [Tue, 3 Aug 2021 07:08:09 +0000 (09:08 +0200)] 
Check in more places if the config policy has been updated before
using or modifying it.

(cherry picked from commit 0c98e3de2cf1daae3f7034803668c1ac10fefe49)

4 years agoMerge pull request #10593 from rgacogne/rec45-aggressive-nsec3-ancestor rec-4.5.5
Otto Moerbeek [Wed, 28 Jul 2021 10:51:46 +0000 (12:51 +0200)] 
Merge pull request #10593 from rgacogne/rec45-aggressive-nsec3-ancestor

rec: Backport 10587 to rec-4.5.x: Ancestor NSEC3s can only deny the existence of a DS

4 years agoMerge pull request #10575 from omoerbeek/backport-10570-to-rec-4.5.x
Otto Moerbeek [Tue, 27 Jul 2021 14:12:00 +0000 (16:12 +0200)] 
Merge pull request #10575 from omoerbeek/backport-10570-to-rec-4.5.x

rec: Backport 10570 to rec 4.5.x: Make really sure we did not miss a cut on validation failure

4 years agorec: Fix wrong comments in the Aggressive NSEC cache unit tests 10593/head
Remi Gacogne [Mon, 19 Jul 2021 14:41:27 +0000 (16:41 +0200)] 
rec: Fix wrong comments in the Aggressive NSEC cache unit tests

(cherry picked from commit b48a269ae32e9f1bc80966fd4e72eeaba49e68f5)