]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
17 months agoauth: remove unused var in tcpreceiver.cc 12758/head
Chris Hofstaedtler [Tue, 18 Apr 2023 00:15:40 +0000 (02:15 +0200)] 
auth: remove unused var in tcpreceiver.cc

tcpreceiver.cc:1005:7: warning: variable 'records' set but not used [-Wunused-but-set-variable]
  int records=0;

17 months agoMerge pull request #12747 from Habbie/auth-4.7.4-secpoll-docs
Peter van Dijk [Mon, 17 Apr 2023 11:38:14 +0000 (13:38 +0200)] 
Merge pull request #12747 from Habbie/auth-4.7.4-secpoll-docs

auth 4.7.4: secpoll and docs

17 months agoMerge pull request #12755 from cmouse/lmdb-rst
Peter van Dijk [Mon, 17 Apr 2023 08:15:48 +0000 (10:15 +0200)] 
Merge pull request #12755 from cmouse/lmdb-rst

docs: lmdb - Add blank line after explicit markup

17 months agoauth 4.7.4: secpoll and docs 12747/head
Peter van Dijk [Thu, 13 Apr 2023 14:22:20 +0000 (16:22 +0200)] 
auth 4.7.4: secpoll and docs

17 months agodocs: lmdb - Add blank line after explicit markup 12755/head
Aki Tuomi [Mon, 17 Apr 2023 06:35:46 +0000 (09:35 +0300)] 
docs: lmdb - Add blank line after explicit markup

17 months agoMerge pull request #12686 from aerique/feature/report-tested-repo-versions
aerique [Sat, 15 Apr 2023 21:59:27 +0000 (23:59 +0200)] 
Merge pull request #12686 from aerique/feature/report-tested-repo-versions

Report Version when Testing Repositories

17 months agoMerge pull request #12721 from mind04/pdns-loop
Peter van Dijk [Fri, 14 Apr 2023 14:15:52 +0000 (16:15 +0200)] 
Merge pull request #12721 from mind04/pdns-loop

auth: calm down the communicator loop

17 months agoMerge pull request #12749 from ossobv/wjd-document-bind-supermaster-destdir
Peter van Dijk [Fri, 14 Apr 2023 14:13:43 +0000 (16:13 +0200)] 
Merge pull request #12749 from ossobv/wjd-document-bind-supermaster-destdir

document bind-supermaster-destdir

17 months agodocument bind-supermaster-destdir 12749/head
Walter Doekes [Fri, 14 Apr 2023 09:18:01 +0000 (11:18 +0200)] 
document bind-supermaster-destdir

17 months agoMerge pull request #12693 from rgacogne/ddist174-changelog-secpoll
aerique [Fri, 14 Apr 2023 11:09:43 +0000 (13:09 +0200)] 
Merge pull request #12693 from rgacogne/ddist174-changelog-secpoll

dnsdist: Add ChangeLog and secpoll update for dnsdist 1.7.4

17 months agodnsdist: Add ChangeLog and secpoll update for dnsdist 1.7.4 12693/head
Remi Gacogne [Tue, 28 Mar 2023 08:20:04 +0000 (10:20 +0200)] 
dnsdist: Add ChangeLog and secpoll update for dnsdist 1.7.4

17 months agoauth: calm down the communicator loop 12721/head
Kees Monshouwer [Wed, 5 Apr 2023 07:52:09 +0000 (09:52 +0200)] 
auth: calm down the communicator loop

17 months agoPrint reported versions when testing repos. 12686/head
Erik Winkels [Fri, 24 Mar 2023 15:28:03 +0000 (16:28 +0100)] 
Print reported versions when testing repos.

Remove Ubuntu Bionic for auth-48 and dnsdist-18.
Remove rec-45 from repo test script since it is end-of-life.
Add rec-49 to repo test script.

17 months agoMerge pull request #12734 from omoerbeek/prep-4.9.0-alpha1
Otto Moerbeek [Wed, 12 Apr 2023 08:47:14 +0000 (10:47 +0200)] 
Merge pull request #12734 from omoerbeek/prep-4.9.0-alpha1

rec: Prep for rec-4.9.0-alpha1

17 months agoMerge pull request #12735 from zeha/rec-ubuntu-compression rec-4.9.0-alpha1
Peter van Dijk [Tue, 11 Apr 2023 14:15:51 +0000 (16:15 +0200)] 
Merge pull request #12735 from zeha/rec-ubuntu-compression

recursor: restore explicit gzip compression for Ubuntu

17 months agoPrep for rec-4.9.0-alpha1 12734/head
Otto Moerbeek [Mon, 3 Apr 2023 12:57:47 +0000 (14:57 +0200)] 
Prep for rec-4.9.0-alpha1

17 months agorecursor: restore explicit gzip compression for Ubuntu 12735/head
Chris H [Tue, 11 Apr 2023 12:05:00 +0000 (14:05 +0200)] 
recursor: restore explicit gzip compression for Ubuntu

reprepro for builder.powerdns.com cannot handle xz compression yet, but
newer Debian and Ubuntu dh_builddeb turn it on by default.

Was accidentally removed in #10072.

17 months agoMerge pull request #12733 from omoerbeek/dnsdist-ebpf-docs
Otto Moerbeek [Tue, 11 Apr 2023 09:52:16 +0000 (11:52 +0200)] 
Merge pull request #12733 from omoerbeek/dnsdist-ebpf-docs

dnsdist: fix formatting and `external` description

17 months agodnsdist: fix formatting and `external` description 12733/head
Otto Moerbeek [Tue, 11 Apr 2023 09:37:53 +0000 (11:37 +0200)] 
dnsdist: fix formatting and `external` description

17 months agoMerge pull request #12730 from dwfreed/fix-pcks
Peter van Dijk [Tue, 11 Apr 2023 07:35:44 +0000 (09:35 +0200)] 
Merge pull request #12730 from dwfreed/fix-pcks

Fix spelling of PKCS

17 months agoMerge pull request #12723 from omoerbeek/rec-bulk-no-powerdnssec.org
Otto Moerbeek [Tue, 11 Apr 2023 07:26:49 +0000 (09:26 +0200)] 
Merge pull request #12723 from omoerbeek/rec-bulk-no-powerdnssec.org

rec: Do not generate large not really useful test file containing names in powerdnssec.org in bulk test

17 months agorec: Do not generate large not really useful test files containing names in powerdnss... 12723/head
Otto Moerbeek [Wed, 5 Apr 2023 12:44:09 +0000 (14:44 +0200)] 
rec: Do not generate large not really useful test files containing names in powerdnssec.org in bulk test by default

17 months agoFix spelling of PKCS 12730/head
Doug Freed [Tue, 11 Apr 2023 05:59:39 +0000 (05:59 +0000)] 
Fix spelling of PKCS

17 months agoMerge pull request #12722 from omoerbeek/rec-bulk-pdq
Otto Moerbeek [Wed, 5 Apr 2023 12:13:02 +0000 (14:13 +0200)] 
Merge pull request #12722 from omoerbeek/rec-bulk-pdq

rec: Also set pdns-distributes-queries for bulk tests.

17 months agorec: Also set pdns-distributes-quqeries for bulk tests. 12722/head
Otto Moerbeek [Wed, 5 Apr 2023 11:04:24 +0000 (13:04 +0200)] 
rec: Also set pdns-distributes-quqeries for bulk tests.

Large imbalance seen without.

17 months agoMerge pull request #12571 from fredmorcos/rec-unused-args-cleanup
Otto Moerbeek [Wed, 5 Apr 2023 09:19:20 +0000 (11:19 +0200)] 
Merge pull request #12571 from fredmorcos/rec-unused-args-cleanup

Recursor: Unused parameters cleanup

17 months agoRemove unused `now` argument from addRecordToRRSet 12571/head
Otto Moerbeek [Wed, 5 Apr 2023 08:07:00 +0000 (10:07 +0200)] 
Remove unused `now` argument from addRecordToRRSet

17 months agoFix cases mentioned in review, plus a few spotted on macOS
Otto Moerbeek [Tue, 4 Apr 2023 14:23:20 +0000 (16:23 +0200)] 
Fix cases mentioned in review, plus a few spotted on macOS

17 months agorec: Remove -Wno-unused-parameter from default C(XX)FLAGS
Fred Morcos [Mon, 20 Feb 2023 10:59:53 +0000 (11:59 +0100)] 
rec: Remove -Wno-unused-parameter from default C(XX)FLAGS

17 months agorec: Fix unused parameter warnings
Fred Morcos [Fri, 17 Feb 2023 12:38:00 +0000 (13:38 +0100)] 
rec: Fix unused parameter warnings

17 months agoMerge pull request #12717 from omoerbeek/rec-regr-threads
Otto Moerbeek [Wed, 5 Apr 2023 05:58:37 +0000 (07:58 +0200)] 
Merge pull request #12717 from omoerbeek/rec-regr-threads

rec: bulk tests (with their one client driving the test) do not work well with reuseport=yes and many workers

17 months agoThe bulk tests (with it's one client) do not work well with reuseport=yes and many... 12717/head
Otto Moerbeek [Tue, 4 Apr 2023 10:01:30 +0000 (12:01 +0200)] 
The bulk tests (with it's one client) do not work well with reuseport=yes and many workers

Use (the now non-default) reuseport=no

17 months agoMerge pull request #12594 from omoerbeek/rec-packetcache-sharded
Otto Moerbeek [Tue, 4 Apr 2023 09:01:14 +0000 (11:01 +0200)] 
Merge pull request #12594 from omoerbeek/rec-packetcache-sharded

Rec: sharded and shared packet cache

17 months agoMerge pull request #12710 from omoerbeek/rcodesenum
Otto Moerbeek [Tue, 4 Apr 2023 08:29:36 +0000 (10:29 +0200)] 
Merge pull request #12710 from omoerbeek/rcodesenum

Cleanup rcode enums: base one is 8 bit unsigned, extended one 16 bit unsigned

17 months agoMerge pull request #12716 from omoerbeek/rec-debian-build
Otto Moerbeek [Tue, 4 Apr 2023 07:33:26 +0000 (09:33 +0200)] 
Merge pull request #12716 from omoerbeek/rec-debian-build

rec: followup to #10072: add missing boost-filesystem dependency

17 months agoMore consistent naming and some general clang-tidy cleanup 12594/head
Otto Moerbeek [Tue, 4 Apr 2023 07:23:59 +0000 (09:23 +0200)] 
More consistent naming and some general clang-tidy cleanup

17 months agoAlso enable NOD explictly in spec file 12716/head
Otto Moerbeek [Tue, 4 Apr 2023 06:52:02 +0000 (08:52 +0200)] 
Also enable NOD explictly in spec file

17 months agorec: followup to #10072: add missing boost-filesystem dependency
Otto Moerbeek [Tue, 4 Apr 2023 06:45:52 +0000 (08:45 +0200)] 
rec: followup to #10072: add missing boost-filesystem dependency

Fixes #12715: NOD functionality was lost due to a missing boost-filesystem dependency.
Add the dependency and explicitly enable NOD.

17 months agoChange defaults to pdns-distributes-queries = no and reuseport = yes
Otto Moerbeek [Mon, 3 Apr 2023 09:14:00 +0000 (11:14 +0200)] 
Change defaults to pdns-distributes-queries = no and reuseport = yes

17 months agoAnother case of a test calling the API before it is ready
Otto Moerbeek [Wed, 22 Mar 2023 09:53:00 +0000 (10:53 +0100)] 
Another case of a test calling the API before it is ready

17 months agoA separate setting for packet cache shards.
Otto Moerbeek [Fri, 17 Mar 2023 13:09:00 +0000 (14:09 +0100)] 
A separate setting for packet cache shards.

17 months agoTweaks
Otto Moerbeek [Mon, 27 Feb 2023 14:14:14 +0000 (15:14 +0100)] 
Tweaks

17 months agoStop disabling packet cache for bulk tests
Otto Moerbeek [Mon, 27 Feb 2023 14:11:08 +0000 (15:11 +0100)] 
Stop disabling packet cache for bulk tests

17 months agoAccount for size per shard
Otto Moerbeek [Mon, 27 Feb 2023 10:29:46 +0000 (11:29 +0100)] 
Account for size per shard

17 months agoAdd contention info about PC in stats report
Otto Moerbeek [Mon, 27 Feb 2023 09:37:11 +0000 (10:37 +0100)] 
Add contention info about PC in stats report

17 months agoAdd contention/acquired stats to sharded packet cache
Otto Moerbeek [Fri, 24 Feb 2023 10:32:22 +0000 (11:32 +0100)] 
Add contention/acquired stats to sharded packet cache

17 months agoInitial integration with recursor
Otto Moerbeek [Wed, 22 Feb 2023 15:30:48 +0000 (16:30 +0100)] 
Initial integration with recursor

17 months agoMake packet cache sharded
Otto Moerbeek [Wed, 22 Feb 2023 15:03:41 +0000 (16:03 +0100)] 
Make packet cache sharded

Unit test run fine, but recursor itself has not been adapted yet

17 months agoCleanup
Otto Moerbeek [Wed, 22 Feb 2023 13:53:08 +0000 (14:53 +0100)] 
Cleanup

17 months agoMerge pull request #12709 from omoerbeek/rec-pc-neg-vs-servfail
Otto Moerbeek [Mon, 3 Apr 2023 11:12:05 +0000 (13:12 +0200)] 
Merge pull request #12709 from omoerbeek/rec-pc-neg-vs-servfail

rec: More fine grained capping of packet cache TTL

17 months agoMerge pull request #12698 from omoerbeek/rec-synthesized
Otto Moerbeek [Mon, 3 Apr 2023 11:10:46 +0000 (13:10 +0200)] 
Merge pull request #12698 from omoerbeek/rec-synthesized

rec: Start using newly assigned "Synthesized" EDE

17 months agoMerge pull request #12655 from omoerbeek/rec-hints-names
Otto Moerbeek [Mon, 3 Apr 2023 11:10:24 +0000 (13:10 +0200)] 
Merge pull request #12655 from omoerbeek/rec-hints-names

Rec: rework root priming code to allow multiple addresses per NS

17 months agoMerge pull request #10072 from zeha/debian-update-rec
Otto Moerbeek [Mon, 3 Apr 2023 10:29:44 +0000 (12:29 +0200)] 
Merge pull request #10072 from zeha/debian-update-rec

Update Debian packaging for Recursor

17 months agoAdd test, with some reorganization as reczones is not linked into testrunner. 12655/head
Otto Moerbeek [Mon, 3 Apr 2023 10:18:02 +0000 (12:18 +0200)] 
Add test, with some reorganization as reczones is not linked into testrunner.

So move a few functions to reczones-helpers.cc

17 months agoRefactor of root priming code
Otto Moerbeek [Mon, 6 Feb 2023 07:57:31 +0000 (08:57 +0100)] 
Refactor of root priming code

17 months agorec: process hints with multiple addresses per name correctly.
Otto Moerbeek [Wed, 1 Feb 2023 12:44:47 +0000 (13:44 +0100)] 
rec: process hints with multiple addresses per name correctly.

Fixes #12486

17 months agoChange default packet TTL to 24 hours 12709/head
Otto Moerbeek [Mon, 3 Apr 2023 08:57:46 +0000 (10:57 +0200)] 
Change default packet TTL to 24 hours

17 months agoMerge pull request #12497 from jsoref/shorthands-for-seconds
Otto Moerbeek [Mon, 3 Apr 2023 08:24:36 +0000 (10:24 +0200)] 
Merge pull request #12497 from jsoref/shorthands-for-seconds

Shorthands for seconds

17 months agoRegression tests should use new EDE 12698/head
Otto Moerbeek [Mon, 3 Apr 2023 07:20:12 +0000 (09:20 +0200)] 
Regression tests should use new EDE

17 months agoMerge pull request #12708 from aerique/bugfix/dnsdist-18-eol
Otto Moerbeek [Mon, 3 Apr 2023 06:22:35 +0000 (08:22 +0200)] 
Merge pull request #12708 from aerique/bugfix/dnsdist-18-eol

Fix EOL table for DNSdist.

17 months agoMerge pull request #12707 from Habbie/ywh
Otto Moerbeek [Mon, 3 Apr 2023 06:22:07 +0000 (08:22 +0200)] 
Merge pull request #12707 from Habbie/ywh

change hackerone references to point to yeswehack

17 months agoMerge pull request #12705 from hlindqvist/pdnsrec-perf-notrack-tcp-reminder
Otto Moerbeek [Mon, 3 Apr 2023 06:20:14 +0000 (08:20 +0200)] 
Merge pull request #12705 from hlindqvist/pdnsrec-perf-notrack-tcp-reminder

Add reminders for 53/tcp rules in the NOTRACK example rules in pdns-rec docs

17 months agoCleanup rcodes enums: base one is 8 bit unisgned, extended one 16 bit unsigned 12710/head
Otto Moerbeek [Fri, 31 Mar 2023 11:36:04 +0000 (13:36 +0200)] 
Cleanup rcodes enums: base one is 8 bit unisgned, extended one 16 bit unsigned

17 months agoMore fine grained capping of packet cache TTL
Otto Moerbeek [Fri, 31 Mar 2023 08:02:31 +0000 (10:02 +0200)] 
More fine grained capping of packet cache TTL

Distinguish between negative answers (NxDomain and NoData), failure to resolve
(ServFail and completely empty answers) and ordinary answers when capping the
packet cache TTL. A new setting (packetcache-negative-ttl) is created for that.

NoData is: empty answer section but SOA record present in authority section.

17 months agoFix EOL table for DNSdist. 12708/head
Erik Winkels [Thu, 30 Mar 2023 14:23:04 +0000 (16:23 +0200)] 
Fix EOL table for DNSdist.

17 months agochange hackerone references to point to yeswehack 12707/head
Peter van Dijk [Thu, 30 Mar 2023 14:03:49 +0000 (16:03 +0200)] 
change hackerone references to point to yeswehack

17 months agoMerge pull request #12692 from rgacogne/ddist180-changelog-secpoll
aerique [Thu, 30 Mar 2023 13:12:18 +0000 (15:12 +0200)] 
Merge pull request #12692 from rgacogne/ddist180-changelog-secpoll

dnsdist: Prepare ChangeLog and secpoll update for 1.8.0

17 months agodnsdist: Prepare ChangeLog and secpoll update for 1.8.0 12692/head
Erik Winkels [Thu, 30 Mar 2023 11:17:16 +0000 (13:17 +0200)] 
dnsdist: Prepare ChangeLog and secpoll update for 1.8.0

17 months agoMerge pull request #12706 from san983/master
Peter van Dijk [Thu, 30 Mar 2023 07:52:55 +0000 (09:52 +0200)] 
Merge pull request #12706 from san983/master

Fixes a typo in pdnsutil clear-zone help output

17 months agoFixes a typo in pdnsutil clear-zone help output 12706/head
Santiago Traversa [Thu, 30 Mar 2023 03:39:02 +0000 (00:39 -0300)] 
Fixes a typo in pdnsutil clear-zone help output

from
# pdnsutil clear-zone foo bar
Syntax: pdnsutil edit-zone ZONE

to
# pdnsutil clear-zone foo bar
Syntax: pdnsutil clear-zone ZONE

17 months agoAdd reminders for 53/tcp in the NOTRACK rules in docs 12705/head
Håkan Lindqvist [Wed, 29 Mar 2023 20:25:29 +0000 (22:25 +0200)] 
Add reminders for 53/tcp in the NOTRACK rules in docs

17 months agoMerge pull request #12704 from omoerbeek/rec-spellcheck-memlock
Peter van Dijk [Wed, 29 Mar 2023 21:04:09 +0000 (23:04 +0200)] 
Merge pull request #12704 from omoerbeek/rec-spellcheck-memlock

spellcheck: Fix entry for memlock

17 months agoFix entry for memlock 12704/head
Otto Moerbeek [Wed, 29 Mar 2023 14:20:37 +0000 (16:20 +0200)] 
Fix entry for memlock

16:20 < Habbie> uppercase requires uppercase, lowercase matches both?
16:20 < Habbie> and putting both in triggers a bug?
16:20 < timeless> Right
16:20 < timeless> More or less

17 months agoMerge pull request #12703 from omoerbeek/rec-prep-2023-02
Otto Moerbeek [Wed, 29 Mar 2023 11:11:36 +0000 (13:11 +0200)] 
Merge pull request #12703 from omoerbeek/rec-prep-2023-02

Prep for PowerDNS Security Advisory 2023-02

17 months agoMerge pull request #12699 from omoerbeek/rec-spoof
Otto Moerbeek [Wed, 29 Mar 2023 10:33:07 +0000 (12:33 +0200)] 
Merge pull request #12699 from omoerbeek/rec-spoof

rec: Deterred spoofing attempts can lead to authoritative servers being marked unavailable

17 months agoSpellcheck 12703/head
Otto Moerbeek [Wed, 29 Mar 2023 10:08:50 +0000 (12:08 +0200)] 
Spellcheck

17 months agoPrep for PowerDNS Security Advisory 2023-02
Otto Moerbeek [Tue, 28 Mar 2023 07:51:38 +0000 (09:51 +0200)] 
Prep for PowerDNS Security Advisory 2023-02

17 months agoStart using newly assigned "Synthesized" EDE
Otto Moerbeek [Wed, 29 Mar 2023 09:18:54 +0000 (11:18 +0200)] 
Start using newly assigned "Synthesized" EDE

17 months agoPowerDNS Security Advisory 2023-02: Deterred spoofing attempts can lead to authoritat... 12699/head
Otto Moerbeek [Wed, 29 Mar 2023 07:44:10 +0000 (09:44 +0200)] 
PowerDNS Security Advisory 2023-02: Deterred spoofing attempts can lead to authoritative servers being marked unavailable (CVE-2023-26437)

17 months agoMerge pull request #12697 from rgacogne/ddist-wait-longer-before-killing
Remi Gacogne [Wed, 29 Mar 2023 03:38:16 +0000 (05:38 +0200)] 
Merge pull request #12697 from rgacogne/ddist-wait-longer-before-killing

dnsdist: Wait a bit longer for the process to exit before killing it

17 months agoMerge pull request #12696 from omoerbeek/rec-negcache-test-race
Otto Moerbeek [Tue, 28 Mar 2023 15:48:08 +0000 (17:48 +0200)] 
Merge pull request #12696 from omoerbeek/rec-negcache-test-race

rec: fix a race in the negcache unit tests

17 months agodnsdist: Wait a bit longer for the process to exit before killing it 12697/head
Remi Gacogne [Tue, 28 Mar 2023 15:22:27 +0000 (17:22 +0200)] 
dnsdist: Wait a bit longer for the process to exit before killing it

This prevents a long list of
```
kill... <Popen: returncode: None args: ['../pdns/dnsdistdist/dnsdist', '--supervised...>
```
when running with TSAN-enabled.
In my tests it did not seem to really slow the build: roughly 3%
slower but that might even be in the error margin for these tests.

17 months agorec: fix a race in the negcache unit tests 12696/head
Otto Moerbeek [Tue, 28 Mar 2023 14:32:41 +0000 (16:32 +0200)] 
rec: fix a race in the negcache unit tests

17 months agoMerge pull request #12694 from omoerbeek/rec-reset-ede
Otto Moerbeek [Tue, 28 Mar 2023 14:16:32 +0000 (16:16 +0200)] 
Merge pull request #12694 from omoerbeek/rec-reset-ede

rec: reset EDE in context when starting to resolve

17 months agoMerge pull request #12695 from omoerbeek/rec-map-stack-fbsd
Otto Moerbeek [Tue, 28 Mar 2023 12:52:54 +0000 (14:52 +0200)] 
Merge pull request #12695 from omoerbeek/rec-map-stack-fbsd

rec: Unbreak FreeBSD mthread stack allocation

17 months agoTest that an intermediate EDE does not get reported with the final answer 12694/head
Otto Moerbeek [Tue, 28 Mar 2023 12:48:26 +0000 (14:48 +0200)] 
Test that an intermediate EDE does not get reported with the final answer

17 months agoUnbreak FreeBSD mthread stack allocation 12695/head
Otto Moerbeek [Tue, 28 Mar 2023 12:00:03 +0000 (14:00 +0200)] 
Unbreak FreeBSD mthread stack allocation

On FreeBSD, MAP_STACK has a completely different meaning compared to
OpenBSD. So only use MAP_STACK on OpenBSD.

17 months agoMerge pull request #12674 from rgacogne/less-shared-ptr dnsdist-1.9.0-alpha0
Remi Gacogne [Tue, 28 Mar 2023 11:20:16 +0000 (13:20 +0200)] 
Merge pull request #12674 from rgacogne/less-shared-ptr

validate: Stop passing shared pointers all the way down

17 months agoMerge pull request #12689 from rgacogne/ddist-grepq-tofile
Remi Gacogne [Tue, 28 Mar 2023 11:19:18 +0000 (13:19 +0200)] 
Merge pull request #12689 from rgacogne/ddist-grepq-tofile

dnsdist: Add an option to write `grepq`'s output to a file

17 months agoMerge pull request #12682 from rgacogne/ddist-ci-wait-for dnsdist-1.8.0
Remi Gacogne [Tue, 28 Mar 2023 10:39:46 +0000 (12:39 +0200)] 
Merge pull request #12682 from rgacogne/ddist-ci-wait-for

dnsdist: Wait until dnsdist is listening on the requested port in the tests

17 months agorec: reset EDE in context when starting to resolve
Otto Moerbeek [Tue, 28 Mar 2023 09:09:40 +0000 (11:09 +0200)] 
rec: reset EDE in context when starting to resolve

Fixes #12691

There is a slight complication here: If QM found an error, a retry
without QM is done, and that clears the EDE but might not find an
EDE itself (since it does not walk all labels).  So remember the
original EDE and put it back in place if the last effort attempt
failed but did not set an EDE.

17 months agodnsdist: Apply suggestions from code review, apply formatting 12689/head
Remi Gacogne [Tue, 28 Mar 2023 07:12:25 +0000 (09:12 +0200)] 
dnsdist: Apply suggestions from code review, apply formatting

17 months agoMerge pull request #12688 from omoerbeek/rec-bound-invariant
Otto Moerbeek [Mon, 27 Mar 2023 15:04:41 +0000 (17:04 +0200)] 
Merge pull request #12688 from omoerbeek/rec-bound-invariant

rec: re-establish "recursion depth is always increasing" invariant

17 months agodnsdist: Add an option to write `grepq`'s output to a file
Remi Gacogne [Mon, 27 Mar 2023 15:03:43 +0000 (17:03 +0200)] 
dnsdist: Add an option to write `grepq`'s output to a file

17 months agoALso derive alias recursion bound from s_maxdepth. 12688/head
Otto Moerbeek [Mon, 27 Mar 2023 10:22:16 +0000 (12:22 +0200)] 
ALso derive alias recursion bound from s_maxdepth.

This should be revisited, as it looks like the check
in doCNAMECacheCheck() overrides the less strick check in
doResolveNoQNameMinimization().

17 months agodnsdist: Don't test the web server port before the concurrent conns check 12682/head
Remi Gacogne [Mon, 27 Mar 2023 08:01:51 +0000 (10:01 +0200)] 
dnsdist: Don't test the web server port before the concurrent conns check

17 months agorec: re-establish "recursion depth is always increasing" invariant
Otto Moerbeek [Thu, 23 Mar 2023 10:42:35 +0000 (11:42 +0100)] 
rec: re-establish "recursion depth is always increasing" invariant

Now that we have getQMFallbackMode(), we can go back to always increase depth
and never decrease it and adapt the upper bound check if needed.

This should prevent a re-occurence of a bug similar to PowerDNS Security Advisory 2023-01.

17 months agoMerge pull request #12687 from rgacogne/ddist-rule-params
Remi Gacogne [Sat, 25 Mar 2023 14:54:09 +0000 (15:54 +0100)] 
Merge pull request #12687 from rgacogne/ddist-rule-params

dnsdist: Fix 'Unknown key' issue for actions and rules parameters

17 months agoMerge pull request #12684 from Habbie/amazon-linux-2023
Peter van Dijk [Fri, 24 Mar 2023 22:51:20 +0000 (23:51 +0100)] 
Merge pull request #12684 from Habbie/amazon-linux-2023

builder: add amazon-2023 target

17 months agodnsdist: Fix 'Unknown key' issue for actions and rules parameters 12687/head
Remi Gacogne [Fri, 24 Mar 2023 17:26:13 +0000 (18:26 +0100)] 
dnsdist: Fix 'Unknown key' issue for actions and rules parameters

The parameters were properly parsed but not marked as consumed,
leading to warnings such as:
```
addAction: Unknown key 'name' given - ignored
```