]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
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)

3 years agorec: Reject non-apex NSEC(3)s that have both the NS and SOA bits set
Remi Gacogne [Fri, 21 Jan 2022 12:15:54 +0000 (13:15 +0100)] 
rec: Reject non-apex NSEC(3)s that have both the NS and SOA bits set

Ancestor NSEC(3)s have the SOA bit clear (delegation), and the remaining
non-apex ones should not have the NS set.

(cherry picked from commit be5d851dbedeecdeef39a583f0e2ac50d786b806)

3 years agotest ubuntu jammy build target 11356/head
Peter van Dijk [Fri, 14 Jan 2022 11:12:09 +0000 (12:12 +0100)] 
test ubuntu jammy build target

(cherry picked from commit e3d50799180eb4499f8dda5263773775301bfa7e)

3 years agoadd ubuntu jammy build target
Peter van Dijk [Fri, 14 Jan 2022 11:12:04 +0000 (12:12 +0100)] 
add ubuntu jammy build target

(cherry picked from commit 6c1e5fd70b4dd4e75b18ff8c75f93c7d22122643)

3 years agoMerge pull request #11275 from Habbie/backport-11262-to-rec-4.6.x
Peter van Dijk [Wed, 2 Feb 2022 14:32:27 +0000 (15:32 +0100)] 
Merge pull request #11275 from Habbie/backport-11262-to-rec-4.6.x

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

3 years agobuilder: add el-7 alias for centos-7 11275/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 #11282 from Habbie/rec-4.6-ci-rec-only
Peter van Dijk [Wed, 2 Feb 2022 10:18:17 +0000 (11:18 +0100)] 
Merge pull request #11282 from Habbie/rec-4.6-ci-rec-only

rec-4.6: stop testing auth+dnsdist on rec branch

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

3 years agoMerge pull request #11268 from omoerbeek/backport-11168-to-rec-4.6.x
Otto Moerbeek [Tue, 1 Feb 2022 09:43:37 +0000 (10:43 +0100)] 
Merge pull request #11268 from omoerbeek/backport-11168-to-rec-4.6.x

rec: backport 11168 to rec-4.6.x: servfail.nl changed their setup.

3 years agoMerge pull request #11263 from omoerbeek/backport-11208-to-rec-4.6.x
Otto Moerbeek [Tue, 1 Feb 2022 09:43:22 +0000 (10:43 +0100)] 
Merge pull request #11263 from omoerbeek/backport-11208-to-rec-4.6.x

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

3 years agoMerge pull request #11260 from rgacogne/rec46-openssl3
Otto Moerbeek [Tue, 1 Feb 2022 09:43:05 +0000 (10:43 +0100)] 
Merge pull request #11260 from rgacogne/rec46-openssl3

rec-4.6.x: Fix build with OpenSSL 3.0.0

3 years agoservfail.nl changed theuir setup. 11268/head
Otto Moerbeek [Tue, 11 Jan 2022 15:23:03 +0000 (16:23 +0100)] 
servfail.nl changed theuir setup.

I think in an ideal world we should return 9 (DNSSEC key missing) but I don't see a
easy way to do that at the moment.

(cherry picked from commit 2cd34ba5c565ee6bad368f577e34fa6d9519ab7d)

3 years agoCI: dnspython 2.2.0 breaks auth and ixfrdist testing, pin to 2.1.0 11263/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 agorec-4.6.x: Fix build with OpenSSL 3.0.0 11260/head
Remi Gacogne [Mon, 31 Jan 2022 13:47:54 +0000 (14:47 +0100)] 
rec-4.6.x: Fix build with OpenSSL 3.0.0

(cherry picked from commit 8535f66672ec9d1eebf5835d3e53238973a80478)

3 years agoMerge pull request #11170 from omoerbeek/backport-11137-to-rec-4.6.x
Otto Moerbeek [Fri, 14 Jan 2022 09:42:31 +0000 (10:42 +0100)] 
Merge pull request #11170 from omoerbeek/backport-11137-to-rec-4.6.x

rec: Backport 11137 to rec 4.6.x: try shorted thread names

3 years agoMerge pull request #11169 from omoerbeek/backport-11109-to-rec-4.6.x
Otto Moerbeek [Fri, 14 Jan 2022 09:42:15 +0000 (10:42 +0100)] 
Merge pull request #11169 from omoerbeek/backport-11109-to-rec-4.6.x

rec: Backport 11109 to rec-4.6.x: Two more features to print

3 years agoMake trySetThreadName static 11170/head
Josh Soref [Mon, 3 Jan 2022 07:57:23 +0000 (02:57 -0500)] 
Make trySetThreadName static

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

3 years agoTry shorter thread names
Josh Soref [Thu, 30 Dec 2021 03:40:10 +0000 (22:40 -0500)] 
Try shorter thread names

https://man7.org/linux/man-pages/man3/pthread_setname_np.3.html

       ... The thread name is a
       meaningful C language string, whose length is restricted to 16
       characters, including the terminating null byte ('\0').

(cherry picked from commit f3813e097ef9b4053009372e8009915bcd496a63)

3 years agoTwo more features to print 11169/head
Otto [Fri, 17 Dec 2021 11:16:51 +0000 (12:16 +0100)] 
Two more features to print

(cherry picked from commit 030c37636cea0dd449acdc9d14f03b2e27ad0791)

3 years agoMerge pull request #11091 from omoerbeek/backport-11069-to-rec-4.6.x rec-4.6.0
Otto Moerbeek [Tue, 14 Dec 2021 11:38:21 +0000 (12:38 +0100)] 
Merge pull request #11091 from omoerbeek/backport-11069-to-rec-4.6.x

rec: Backport 11069 to rec-4.6.x: Do not generate eventtrace records if no Lua hook is defined

3 years agoMerge pull request #11092 from omoerbeek/backport-11081-to-rec-4.6.x
Otto Moerbeek [Tue, 14 Dec 2021 11:38:03 +0000 (12:38 +0100)] 
Merge pull request #11092 from omoerbeek/backport-11081-to-rec-4.6.x

rec: Backport 11081 to rec 4.6.x: Remove capability requirements from Docker images

3 years agoAdditional note on Docker Engine version where the requirement of the additional... 11092/head
Nico Vaatstra [Thu, 9 Dec 2021 11:39:29 +0000 (12:39 +0100)] 
Additional note on Docker Engine version where the requirement of the additional capability was dropped

(cherry picked from commit 07b24e5743c08c828c73a93e724a86a5b83b680a)

3 years agoRemove capability requirements from Docker images
Nico Vaatstra [Wed, 8 Dec 2021 15:28:42 +0000 (16:28 +0100)] 
Remove capability requirements from Docker images

(cherry picked from commit f28c81ed0242b6838eafdb61933a6f63b68040cf)

3 years agoDo not generate eventtrace records if no Lua hook is defined 11091/head
Otto [Fri, 3 Dec 2021 12:24:45 +0000 (13:24 +0100)] 
Do not generate eventtrace records if no Lua hook is defined

(cherry picked from commit 6a948130b2406d0e3b295ec68f56b3b8ed302960)

3 years agoMerge pull request #11058 from omoerbeek/backport-11044-to-rec-4.6.x rec-4.6.0-rc1
Otto Moerbeek [Wed, 1 Dec 2021 12:49:41 +0000 (13:49 +0100)] 
Merge pull request #11058 from omoerbeek/backport-11044-to-rec-4.6.x

rec: backport 11044 to rec 4.6.x: Fix v6 setup and start using a more modern auth on circleci

3 years agoMerge pull request #11057 from omoerbeek/backport-11038-to-rec-4.6.x
Otto Moerbeek [Wed, 1 Dec 2021 12:49:29 +0000 (13:49 +0100)] 
Merge pull request #11057 from omoerbeek/backport-11038-to-rec-4.6.x

rec: backport 11038 to rec-4.6.x: Disable tsan regression runs for rec for now

3 years agoMerge pull request #11055 from omoerbeek/backport-10982-to-rec-4.6.x
Otto Moerbeek [Wed, 1 Dec 2021 12:49:18 +0000 (13:49 +0100)] 
Merge pull request #11055 from omoerbeek/backport-10982-to-rec-4.6.x

rec: backport 10982 to rec-4.x.6: Condition to HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV is reversed

3 years agoFix error in test zone that auth-45 does not like 11058/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 agoDisable tsan regression runs for rec for now, there is a failure 11057/head
Otto [Fri, 26 Nov 2021 11:21:23 +0000 (12:21 +0100)] 
Disable tsan regression runs for rec for now, there is a failure
mode that if it hits makes almost all remaining test fail.  Symptom
is that the auths do not start up properly.

(cherry picked from commit 2ef0d14bf39fafa45d39d5a0b5e8e5f263357d17)

3 years agoCondition to HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV is reversed 11055/head
Otto [Mon, 15 Nov 2021 10:48:22 +0000 (11:48 +0100)] 
Condition to HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV is reversed

(cherry picked from commit fc1f6fb803e3ab7346f327b6113fc79eaa40abf2)

3 years agoMerge pull request #11025 from omoerbeek/backport-11010-to-rec-4.6.x
Otto Moerbeek [Tue, 23 Nov 2021 10:24:55 +0000 (11:24 +0100)] 
Merge pull request #11025 from omoerbeek/backport-11010-to-rec-4.6.x

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

3 years agoMerge pull request #11022 from omoerbeek/backport-11018-to-rec-4.6.x
Otto Moerbeek [Tue, 23 Nov 2021 09:56:29 +0000 (10:56 +0100)] 
Merge pull request #11022 from omoerbeek/backport-11018-to-rec-4.6.x

rec: Backport 11018 to rec 4.6.x: Fix logic botch introduced by notify handing

3 years agoDo cache negcache results, even when wasVariable() is true 11025/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 agoWhen we drop a notify over TCP, terminate the connection 11022/head
Otto [Mon, 22 Nov 2021 14:18:07 +0000 (15:18 +0100)] 
When we drop a notify over TCP, terminate the connection

(cherry picked from commit 9aa6eeca355c50bc79e9f7ea986689fa0a296e42)

3 years agoFix logic botch introduced by notify handing
Otto [Mon, 22 Nov 2021 13:09:55 +0000 (14:09 +0100)] 
Fix logic botch introduced by notify handing

See #10751, some extra scrutiny review is needed to make sure no
other similat issue remains.

(cherry picked from commit 09a22e8c919b2ed55d98723fb14a33948aa6f517)

3 years agoMerge pull request #11016 from omoerbeek/backport-11005-to-rec-4.6.x
Otto Moerbeek [Tue, 23 Nov 2021 08:13:04 +0000 (09:13 +0100)] 
Merge pull request #11016 from omoerbeek/backport-11005-to-rec-4.6.x

rec: bacport 11005 to rec 4.6.x: Include sys/time.h; needed on musl

3 years agoMerge pull request #11015 from omoerbeek/backport-10990-to-rec-4.6.x
Otto Moerbeek [Tue, 23 Nov 2021 08:12:47 +0000 (09:12 +0100)] 
Merge pull request #11015 from omoerbeek/backport-10990-to-rec-4.6.x

rec: backport 10990 to rec 4.6.x: Basic notify test

3 years agoInclude sys/time.h; needed on musl; fixes #11000 11016/head
Otto [Thu, 18 Nov 2021 14:42:18 +0000 (15:42 +0100)] 
Include sys/time.h; needed on musl; fixes #11000

(cherry picked from commit 671ca0dee0cb529856af414e5b00db1b8b1e4d95)

3 years agoPositive instead of negative test 11015/head
Otto Moerbeek [Tue, 16 Nov 2021 13:30:47 +0000 (14:30 +0100)] 
Positive instead of negative test

Co-authored-by: Pieter Lexis <pieter@plexis.eu>
(cherry picked from commit 5a642e0b648b22f884bbd0b517c431eb90e6b9e0)

3 years agoDo not count notifies in record cache hits/misses
Otto [Tue, 16 Nov 2021 12:35:58 +0000 (13:35 +0100)] 
Do not count notifies in record cache hits/misses

(cherry picked from commit 0fd8cf215c84b814f86673d58ed12142e0c36f0f)

3 years agoBasic notify test.
Otto [Tue, 16 Nov 2021 12:07:40 +0000 (13:07 +0100)] 
Basic notify test.

It turns out a notify increments cache-hits, that feel a bit strange.

(cherry picked from commit 8662d268897b8b82145f4642dbb2a59f049a663a)

3 years agoMerge pull request #10987 from rgacogne/ddist17-b1-changelog-secpoll
Remi Gacogne [Tue, 16 Nov 2021 14:43:12 +0000 (15:43 +0100)] 
Merge pull request #10987 from rgacogne/ddist17-b1-changelog-secpoll

dnsdist: Add ChangeLog and secpoll update for 1.7.0-beta1

3 years agodnsdist: Fix the description of 10920 in the ChangeLog, remove useless entries 10987/head
Remi Gacogne [Tue, 16 Nov 2021 09:27:15 +0000 (10:27 +0100)] 
dnsdist: Fix the description of 10920 in the ChangeLog, remove useless entries

3 years agospellcheck: Allow 'XDP', 'Grié'
Remi Gacogne [Tue, 16 Nov 2021 09:24:56 +0000 (10:24 +0100)] 
spellcheck: Allow 'XDP', 'Grié'

3 years agoMerge pull request #10883 from rgacogne/ddist-pinned-maps dnsdist-1.7.0-beta1 rec-4.6.0-beta2
Remi Gacogne [Tue, 16 Nov 2021 09:17:17 +0000 (10:17 +0100)] 
Merge pull request #10883 from rgacogne/ddist-pinned-maps

dnsdist: Implement filesystem pinning for eBPF maps

3 years agodnsdist: Add ChangeLog and secpoll update for 1.7.0-beta1
Remi Gacogne [Tue, 16 Nov 2021 09:04:58 +0000 (10:04 +0100)] 
dnsdist: Add ChangeLog and secpoll update for 1.7.0-beta1

3 years agoMerge pull request #10896 from omoerbeek/more-secpoll-check
Otto Moerbeek [Tue, 16 Nov 2021 08:05:28 +0000 (09:05 +0100)] 
Merge pull request #10896 from omoerbeek/more-secpoll-check

More strict secpoll.zone check

3 years agodnsdist: Switch to a uint8_t for the XDP match action type 10883/head
Remi Gacogne [Mon, 15 Nov 2021 17:16:35 +0000 (18:16 +0100)] 
dnsdist: Switch to a uint8_t for the XDP match action type

3 years agodnsdist: Apply suggestions from code review on the new eBPF map type
Remi Gacogne [Mon, 15 Nov 2021 17:11:02 +0000 (18:11 +0100)] 
dnsdist: Apply suggestions from code review on the new eBPF map type

3 years agocontrib/xdp.py: Apply the change suggested by Pieter (thanks!)
Remi Gacogne [Mon, 15 Nov 2021 16:28:23 +0000 (17:28 +0100)] 
contrib/xdp.py: Apply the change suggested by Pieter (thanks!)

Co-authored-by: Pieter Lexis <pieter@plexis.eu>
3 years agodnsdist: Add a sample XDP program and associated python script in contrib
Remi Gacogne [Fri, 29 Oct 2021 14:56:08 +0000 (16:56 +0200)] 
dnsdist: Add a sample XDP program and associated python script in contrib

Both contributed by Pierre Grié <pierre.grie@nameshield.net>.

3 years agodnsdist: Add a new eBPF map format, support external eBPF programs
Remi Gacogne [Thu, 28 Oct 2021 15:58:53 +0000 (17:58 +0200)] 
dnsdist: Add a new eBPF map format, support external eBPF programs

Supporting external eBPF programs makes it possible to populate the
eBPF tables from dnsdist, manually or via our dynamic blocking mechanisms,
but to actually do the filtering in an external program, like an XDP one.

We cannot increase the size of eBPF programs if we want to stay
below 4k instructions for older kernels, so this commit implements
a compatibility layer with the new map format.

The 4k limit for unprivileged was removed in 5.2 but the complexity limit remains:
The complexity limit was actually changed several times since the
32k value from its introduction in Linux 3.18: it was raised to 64k
in Linux 4.7, then to 96k in Linux 4.12, again to 128k in Linux 4.14,
and at last to 1M in Linux 5.2.

3 years agodnsdist: Implement filesystem pinning for eBPF maps
Remi Gacogne [Fri, 22 Oct 2021 15:03:27 +0000 (17:03 +0200)] 
dnsdist: Implement filesystem pinning for eBPF maps

This makes the filter (v4, v6 and qnames) maps persistent across a
restart and allow external programs to read and update them without
the need to use dnsdist's console.

3 years agoindent 10896/head
Otto Moerbeek [Tue, 16 Nov 2021 06:30:34 +0000 (07:30 +0100)] 
indent

3 years agoMerge pull request #10981 from Habbie/2136-rrset-ttl
Peter van Dijk [Mon, 15 Nov 2021 16:30:28 +0000 (17:30 +0100)] 
Merge pull request #10981 from Habbie/2136-rrset-ttl

auth 2136: apply new TTL to whole RRset, not only to the added record

3 years agoMerge pull request #10980 from omoerbeek/rec-ede-issue
Otto Moerbeek [Mon, 15 Nov 2021 16:18:51 +0000 (17:18 +0100)] 
Merge pull request #10980 from omoerbeek/rec-ede-issue

rec: Return the proper ede on validation failure

3 years agoauth 2136: apply new TTL to whole RRset, not only to the added record 10981/head
Peter van Dijk [Mon, 15 Nov 2021 15:28:58 +0000 (16:28 +0100)] 
auth 2136: apply new TTL to whole RRset, not only to the added record

fixes #10921

3 years agoauth 2136: improve some log messages
Peter van Dijk [Mon, 15 Nov 2021 15:28:47 +0000 (16:28 +0100)] 
auth 2136: improve some log messages

3 years agoMerge pull request #10907 from rgacogne/ddist-handle-existing-edns-mac-setedns
Remi Gacogne [Mon, 15 Nov 2021 13:16:21 +0000 (14:16 +0100)] 
Merge pull request #10907 from rgacogne/ddist-handle-existing-edns-mac-setedns

dnsdist: Handle existing EDNS content for SetMacAddrAction/SetEDNSOptionAction

3 years agoMerge pull request #10920 from rgacogne/ddist-cleanup-conns
Remi Gacogne [Mon, 15 Nov 2021 13:13:36 +0000 (14:13 +0100)] 
Merge pull request #10920 from rgacogne/ddist-cleanup-conns

dnsdist: Remove unreachable code in HTTP/2 connections cleanup

3 years agono else after exit
Otto Moerbeek [Tue, 26 Oct 2021 06:05:33 +0000 (08:05 +0200)] 
no else after exit

Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 years agotweaks and undo error entry
Otto [Mon, 25 Oct 2021 13:20:18 +0000 (15:20 +0200)] 
tweaks and undo error entry

3 years agoMove check to a shell script
Otto [Mon, 25 Oct 2021 12:53:53 +0000 (14:53 +0200)] 
Move check to a shell script

3 years agoMore strict secpoll check; hope I got the yaml quoting right
Otto [Mon, 25 Oct 2021 12:33:45 +0000 (14:33 +0200)] 
More strict secpoll check; hope I got the yaml quoting right

3 years agosome more ()'s for readability 10980/head
Otto Moerbeek [Mon, 15 Nov 2021 12:35:02 +0000 (13:35 +0100)] 
some more ()'s for readability

Co-authored-by: Remi Gacogne <github@coredump.fr>
3 years agoAdd a test for ede sig expired that does not rely on external servers
Otto [Mon, 15 Nov 2021 12:08:32 +0000 (13:08 +0100)] 
Add a test for ede sig expired that does not rely on external servers

3 years agoMerge pull request #10975 from omoerbeek/rec-fewer-circle-bulktests
Otto Moerbeek [Mon, 15 Nov 2021 10:45:48 +0000 (11:45 +0100)] 
Merge pull request #10975 from omoerbeek/rec-fewer-circle-bulktests

rec: Run fewer CircleCI bulk tests

3 years agoMerge pull request #10973 from omoerbeek/rec-asan-ubsan-to-strategy
Otto Moerbeek [Mon, 15 Nov 2021 10:40:41 +0000 (11:40 +0100)] 
Merge pull request #10973 from omoerbeek/rec-asan-ubsan-to-strategy

rec: enable tsan for GH actions rec build and tests

3 years agoMerge pull request #10954 from Habbie/update-contributing
Peter van Dijk [Mon, 15 Nov 2021 10:40:22 +0000 (11:40 +0100)] 
Merge pull request #10954 from Habbie/update-contributing

some updates to CONTRIBUTING.md

3 years agoAdd test
Otto Moerbeek [Mon, 15 Nov 2021 10:27:59 +0000 (11:27 +0100)] 
Add test