]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
2 years agoPrint compiler version at the end of configure 12401/head
Fred Morcos [Mon, 9 Jan 2023 14:49:09 +0000 (15:49 +0100)] 
Print compiler version at the end of configure

2 years agoInclude failure message when creating DSRCs
Fred Morcos [Tue, 3 Jan 2023 15:02:54 +0000 (16:02 +0100)] 
Include failure message when creating DSRCs

2 years agoLint cleanups of test-signers.cc
Fred Morcos [Mon, 5 Dec 2022 14:32:26 +0000 (15:32 +0100)] 
Lint cleanups of test-signers.cc

2 years agoOpenSSL signers test for getPubKeyHash()
Fred Morcos [Wed, 9 Nov 2022 16:45:58 +0000 (17:45 +0100)] 
OpenSSL signers test for getPubKeyHash()

2 years agoCleanup DNSCryptoKeyEngine
Fred Morcos [Tue, 22 Nov 2022 15:55:07 +0000 (16:55 +0100)] 
Cleanup DNSCryptoKeyEngine

2 years agoPrint checkKey() error messages in signer tests
Fred Morcos [Tue, 22 Nov 2022 09:55:14 +0000 (10:55 +0100)] 
Print checkKey() error messages in signer tests

2 years agoCleanup test_generic_signers in test-signers.cc
Fred Morcos [Tue, 22 Nov 2022 09:56:39 +0000 (10:56 +0100)] 
Cleanup test_generic_signers in test-signers.cc

2 years agoCleanup of ipcipher.cc
Fred Morcos [Tue, 11 Oct 2022 11:32:29 +0000 (13:32 +0200)] 
Cleanup of ipcipher.cc

2 years agoCleanup includes in misc.cc
Fred Morcos [Fri, 30 Dec 2022 15:21:45 +0000 (16:21 +0100)] 
Cleanup includes in misc.cc

2 years agoAdd OpenSSL error handler
Fred Morcos [Tue, 22 Nov 2022 11:18:47 +0000 (12:18 +0100)] 
Add OpenSSL error handler

2 years agoFormatting of various files like ipcipher and opensslsigners
Fred Morcos [Tue, 11 Oct 2022 11:32:15 +0000 (13:32 +0200)] 
Formatting of various files like ipcipher and opensslsigners

2 years agoRelax clang-tidy regarding magic numbers
Fred Morcos [Mon, 5 Dec 2022 09:04:06 +0000 (10:04 +0100)] 
Relax clang-tidy regarding magic numbers

2 years agoAdd _build dir to docs/.gitignore
Fred Morcos [Mon, 5 Dec 2022 09:03:49 +0000 (10:03 +0100)] 
Add _build dir to docs/.gitignore

2 years agoMerge pull request #12397 from rgacogne/fix-cachecleaner
Remi Gacogne [Mon, 9 Jan 2023 11:17:44 +0000 (12:17 +0100)] 
Merge pull request #12397 from rgacogne/fix-cachecleaner

cachecleaner: Add cmath, needed for std::ceil and std::round

2 years agoMerge pull request #12354 from rgacogne/ddist-unique-ednsoptions
Remi Gacogne [Mon, 9 Jan 2023 11:16:31 +0000 (12:16 +0100)] 
Merge pull request #12354 from rgacogne/ddist-unique-ednsoptions

dnsdist: Move DNSQuestion's EDNS options to a unique pointer

2 years agocachecleaner: Add cmath, needed for std::ceil and std::round 12397/head
Remi Gacogne [Mon, 9 Jan 2023 11:09:28 +0000 (12:09 +0100)] 
cachecleaner: Add cmath, needed for std::ceil and std::round

2 years agodnsdist: Use EDNSOptionViewMap in more places 12354/head
Remi Gacogne [Mon, 9 Jan 2023 10:24:42 +0000 (11:24 +0100)] 
dnsdist: Use EDNSOptionViewMap in more places

As suggested by Otto.

2 years agoMerge pull request #12365 from rgacogne/ddist-fix-tcp-queued-underflow-12357
Remi Gacogne [Mon, 9 Jan 2023 10:16:11 +0000 (11:16 +0100)] 
Merge pull request #12365 from rgacogne/ddist-fix-tcp-queued-underflow-12357

dnsdist: Prevent an underflow of the TCP d_queued counter

2 years agoMerge pull request #12391 from omoerbeek/dnsdist-pgpkeys
Otto Moerbeek [Fri, 6 Jan 2023 16:08:30 +0000 (17:08 +0100)] 
Merge pull request #12391 from omoerbeek/dnsdist-pgpkeys

dnsdist: update pgp keys listed in docs: add Otto, move Pieter and Bert to old keys

2 years agodnsdist: update pgp keys listed in docs: add Otto, move Pieter and Bert to old keys 12391/head
Otto Moerbeek [Fri, 6 Jan 2023 15:24:57 +0000 (16:24 +0100)] 
dnsdist: update pgp keys listed in docs: add Otto, move Pieter and Bert to old keys

2 years agoMerge pull request #12374 from omoerbeek/rec-cache-clean
Otto Moerbeek [Fri, 6 Jan 2023 13:29:45 +0000 (14:29 +0100)] 
Merge pull request #12374 from omoerbeek/rec-cache-clean

Rec: make cache cleaning more fair when under pressure

2 years agoBe more eager to evict expired entries in the first loop by continuing scanning the... 12374/head
Otto Moerbeek [Fri, 6 Jan 2023 11:57:04 +0000 (12:57 +0100)] 
Be more eager to evict expired entries in the first loop by continuing scanning the fraction of each shard we originally computed

2 years agoMerge pull request #12352 from zjs604381586/recursor-stale
Otto Moerbeek [Fri, 6 Jan 2023 10:12:25 +0000 (11:12 +0100)] 
Merge pull request #12352 from zjs604381586/recursor-stale

Refresh of negcache stale entry might use wrong qtype

2 years agoMerge pull request #12378 from omoerbeek/pgp-keys
Otto Moerbeek [Fri, 6 Jan 2023 09:36:12 +0000 (10:36 +0100)] 
Merge pull request #12378 from omoerbeek/pgp-keys

Update the pgp keys listed in docs

2 years agoMerge pull request #12313 from darnuria/clang-tidy/one-more-time
Otto Moerbeek [Fri, 6 Jan 2023 08:26:25 +0000 (09:26 +0100)] 
Merge pull request #12313 from darnuria/clang-tidy/one-more-time

Clang-tidy: one more time

2 years agoMention Bert and Pieter did sign old releases 12378/head
Otto Moerbeek [Wed, 4 Jan 2023 14:03:05 +0000 (15:03 +0100)] 
Mention Bert and Pieter did sign old releases

2 years agoUpdate the keys listed: remove Bert and Pieter, add Remi and Otto
Otto Moerbeek [Wed, 4 Jan 2023 12:50:55 +0000 (13:50 +0100)] 
Update the keys listed: remove Bert and Pieter, add Remi and Otto

2 years agoTake shard size and number of remaining shards into account when cleaning, so that...
Otto Moerbeek [Tue, 3 Jan 2023 10:36:54 +0000 (11:36 +0100)] 
Take shard size and number of remaining shards into account when cleaning, so that big shards get pruned more and if we are behind due to rounding etc we get more eager.

2 years agoMerge pull request #12373 from omoerbeek/rec-stack-usage-warning
Otto Moerbeek [Tue, 3 Jan 2023 13:54:14 +0000 (14:54 +0100)] 
Merge pull request #12373 from omoerbeek/rec-stack-usage-warning

rec: Warn on high (90%) mthread stack usage

2 years agoWarn on high (90%) mthread stack usage 12373/head
Otto Moerbeek [Tue, 3 Jan 2023 11:36:14 +0000 (12:36 +0100)] 
Warn on high (90%) mthread stack usage

2 years ago- Print shard info in cache dumps
Otto Moerbeek [Tue, 3 Jan 2023 10:35:14 +0000 (11:35 +0100)] 
- Print shard info in cache dumps
- change # of shard of negcache to be 1/8th of main record cache, same for size

2 years agoMerge pull request #12334 from omoerbeek/rec-more-edns
Otto Moerbeek [Tue, 3 Jan 2023 10:20:26 +0000 (11:20 +0100)] 
Merge pull request #12334 from omoerbeek/rec-more-edns

rec: Generate EDE in more cases, specifically on unreachable auths or sythesized results.

2 years agoMake a distinction between "ordinary" negcache results and entire name results. 12334/head
Otto Moerbeek [Tue, 3 Jan 2023 08:24:05 +0000 (09:24 +0100)] 
Make a distinction between "ordinary" negcache results and entire name results.

2 years agoMerge pull request #12368 from rgacogne/rec-add-missing-exception-reason-parse-auth...
Otto Moerbeek [Mon, 2 Jan 2023 11:09:51 +0000 (12:09 +0100)] 
Merge pull request #12368 from rgacogne/rec-add-missing-exception-reason-parse-auth-packet

rec: Add the 'parse packet from auth' error message to structured logging

2 years agorec: Add the 'parse packet from auth' error message to structured logging 12368/head
Remi Gacogne [Wed, 28 Dec 2022 08:49:41 +0000 (09:49 +0100)] 
rec: Add the 'parse packet from auth' error message to structured logging

2 years agodnsdist: Prevent an underflow of the TCP d_queued counter 12365/head
Remi Gacogne [Tue, 27 Dec 2022 16:01:55 +0000 (17:01 +0100)] 
dnsdist: Prevent an underflow of the TCP d_queued counter

By incrementing it _before_ writing to the pipe, and decrementing
it in case of an error, we prevent a very possible underflow from
occurring if the reader manages to decrement before we can return
from write and increment it.

2 years agoclang-tidy: uninitialized variables explicitly defaulted. 12313/head
Axel Viala [Sun, 11 Dec 2022 15:12:44 +0000 (16:12 +0100)] 
clang-tidy: uninitialized variables explicitly defaulted.

Also pass to one declaration per line at one site.

2 years agoclang-tidy: IsTimeSpec function: curly + implicit conversions.
Axel Viala [Sun, 11 Dec 2022 14:56:31 +0000 (15:56 +0100)] 
clang-tidy: IsTimeSpec function: curly + implicit conversions.

Review Apply @omoerbeek suggestion fix cast to unsigned char.

2 years agoclang-tidy: Use auto on iterator for loop
Axel Viala [Sun, 11 Dec 2022 14:56:06 +0000 (15:56 +0100)] 
clang-tidy: Use auto on iterator for loop

2 years agoRemove redundant headers
Axel Viala [Sun, 11 Dec 2022 14:44:45 +0000 (15:44 +0100)] 
Remove redundant headers

- recursor_cache.cc
- zoneparser-tng.cc

2 years agoclang-tidy: nullptr where possible.
Axel Viala [Sun, 11 Dec 2022 11:41:28 +0000 (12:41 +0100)] 
clang-tidy: nullptr where possible.

- ldapbackend.cc
- recursor_cache.cc
- recusor_cache.hh
- zoneparser-tng.cc

2 years ago[clang-tidy:Ccast] Avoid a C cast and modernize.
Axel Viala [Thu, 6 Oct 2022 11:50:43 +0000 (13:50 +0200)] 
[clang-tidy:Ccast] Avoid a C cast and modernize.

Code inspired by how it's done in test-dnsrecords_cc.cc.

2 years ago[clang-tidy:empty] use empty() in various places.
Axel Viala [Thu, 6 Oct 2022 11:48:58 +0000 (13:48 +0200)] 
[clang-tidy:empty] use empty() in various places.

- dnsrecords.cc
- recursor_cache.cc
- dnsrecords.cc.
- zoneparser-tng.cc

empty

2 years ago[clang-tidy:array] in dnsparser.cc use std::array.
Axel Viala [Thu, 6 Oct 2022 11:33:02 +0000 (13:33 +0200)] 
[clang-tidy:array] in dnsparser.cc use std::array.

Review by @omoerbeek: Fix size inconsistancy.

2 years agoclang-tidy: modernize deprecated header invarious places
Axel Viala [Thu, 6 Oct 2022 11:32:14 +0000 (13:32 +0200)] 
clang-tidy: modernize deprecated header invarious places

- time.h -> ctime.
- signal.h -> csignal
- errno.h -> cerrno

2 years ago[clang-tidy:array] getTypeString std::array<static string> instead of char * C array.
Axel Viala [Thu, 6 Oct 2022 11:23:10 +0000 (13:23 +0200)] 
[clang-tidy:array] getTypeString std::array<static string> instead of char * C array.

Apply @Omoerbeek suggestion. char * -> static string &

2 years ago[pdnsutils] Use const std::array for metadata whitelist.
Axel Viala [Wed, 5 Oct 2022 21:50:10 +0000 (23:50 +0200)] 
[pdnsutils] Use const std::array for metadata whitelist.

2 years agoMerge pull request #12348 from omoerbeek/rec-tcounters-dnssec
Otto Moerbeek [Fri, 23 Dec 2022 07:06:09 +0000 (08:06 +0100)] 
Merge pull request #12348 from omoerbeek/rec-tcounters-dnssec

rec: move dnssec and policy counters to TCounter object

2 years agoMerge pull request #12292 from rgacogne/minicurl-smart
Remi Gacogne [Thu, 22 Dec 2022 09:29:37 +0000 (10:29 +0100)] 
Merge pull request #12292 from rgacogne/minicurl-smart

auth, rec: Wrap the CURL raw pointers in smart pointers

2 years agoMiniCurl: Make it safe to reuse a MiniCurl object 12292/head
Remi Gacogne [Wed, 21 Dec 2022 13:50:31 +0000 (14:50 +0100)] 
MiniCurl: Make it safe to reuse a MiniCurl object

2 years agoMerge pull request #12320 from rgacogne/ddist-pkcs12-openssl3
Remi Gacogne [Wed, 21 Dec 2022 12:42:20 +0000 (13:42 +0100)] 
Merge pull request #12320 from rgacogne/ddist-pkcs12-openssl3

dnsdist: Fix loading PKCS12-encrypted (RC2 CBC) certs with OpenSSL 3.x

2 years agoMerge pull request #12329 from rgacogne/ddist-ids-overlay-rebased
Remi Gacogne [Wed, 21 Dec 2022 12:35:53 +0000 (13:35 +0100)] 
Merge pull request #12329 from rgacogne/ddist-ids-overlay-rebased

dnsdist: Turn DNSQuestion and DNSResponse into internal state overlays

2 years agoChange the logic a bit, as negcache->get() can be called with qtype = QType:::ENT, 12352/head
Otto Moerbeek [Wed, 21 Dec 2022 09:12:46 +0000 (10:12 +0100)] 
Change the logic a bit, as negcache->get() can be called with qtype = QType:::ENT,
but we do not want to push a task with QType::ENT

Also change a few QType& to QType, it's a small int, no need to pass by reference.

2 years agochange negcache stale resolveTask qtype
zhaojingshi [Wed, 21 Dec 2022 03:22:57 +0000 (11:22 +0800)] 
change negcache stale resolveTask qtype

2 years agoMerge pull request #12347 from omoerbeek/rec-serve-stale-methodname
Otto Moerbeek [Tue, 20 Dec 2022 12:49:10 +0000 (13:49 +0100)] 
Merge pull request #12347 from omoerbeek/rec-serve-stale-methodname

rec: Use correct logic for isEntryUsable()

2 years agoMerge pull request #10167 from rgacogne/dnsreplay-spoof-source
Remi Gacogne [Tue, 20 Dec 2022 12:33:35 +0000 (13:33 +0100)] 
Merge pull request #10167 from rgacogne/dnsreplay-spoof-source

dnsreplay: Add an option to spoof the initial source IP

2 years agoAnds move policy name hits to tcounters 12348/head
Otto Moerbeek [Mon, 19 Dec 2022 13:31:06 +0000 (14:31 +0100)] 
Ands move policy name hits to tcounters

2 years agoUse correct logic for isEntryUsable() 12347/head
Otto Moerbeek [Tue, 20 Dec 2022 11:30:54 +0000 (12:30 +0100)] 
Use correct logic for isEntryUsable()

Existing code was correct but used the wrong name for the method:
isEntryUsable() actually tested for isUnusable, but the caller
compensated for it. Reverse logic to make it more clear.

2 years agoA few tests on the new EDEs
Otto Moerbeek [Tue, 20 Dec 2022 10:42:07 +0000 (11:42 +0100)] 
A few tests on the new EDEs

2 years agoIntroduce a context object holding vState and extendedErrors
Otto Moerbeek [Fri, 16 Dec 2022 15:43:11 +0000 (16:43 +0100)] 
Introduce a context object holding vState and extendedErrors

Later, more fields that apply to a specific beginResolve call
might be added.

2 years agodnsreplay: Better error message 10167/head
Remi Gacogne [Tue, 20 Dec 2022 08:08:44 +0000 (09:08 +0100)] 
dnsreplay: Better error message

Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 years agoMerge pull request #12100 from rgacogne/ddist-single-soa-ixfr
Remi Gacogne [Mon, 19 Dec 2022 15:23:33 +0000 (16:23 +0100)] 
Merge pull request #12100 from rgacogne/ddist-single-soa-ixfr

dnsdist: Properly handle single-SOA XFR responses

2 years agoMerge pull request #12127 from hlindqvist/ixfrdist-ixfr-multiple-changes
Peter van Dijk [Mon, 19 Dec 2022 15:07:10 +0000 (16:07 +0100)] 
Merge pull request #12127 from hlindqvist/ixfrdist-ixfr-multiple-changes

Fix multiple-version IXFR request handling in ixfrdist

2 years agoMerge pull request #12260 from omoerbeek/webserver-json-utf8
Otto Moerbeek [Mon, 19 Dec 2022 15:06:33 +0000 (16:06 +0100)] 
Merge pull request #12260 from omoerbeek/webserver-json-utf8

auth: Properly encode json strings containing binary data

2 years agoMerge pull request #12284 from jsoref/github-output
Peter van Dijk [Mon, 19 Dec 2022 13:08:32 +0000 (14:08 +0100)] 
Merge pull request #12284 from jsoref/github-output

Switch from set-output to GITHUB_OUTPUT

2 years agoMove DNSSEC and Policy counters to TCounter object
Otto Moerbeek [Mon, 19 Dec 2022 12:39:36 +0000 (13:39 +0100)] 
Move DNSSEC and Policy counters to TCounter object

2 years agoMerge pull request #12337 from omoerbeek/rec-tcounter-test-tweaks
Otto Moerbeek [Mon, 19 Dec 2022 10:27:53 +0000 (11:27 +0100)] 
Merge pull request #12337 from omoerbeek/rec-tcounter-test-tweaks

rec: tcounter test tweaks

2 years agoUpdate pdns/recursordist/testrunner.cc 12337/head
Otto Moerbeek [Mon, 19 Dec 2022 09:55:57 +0000 (10:55 +0100)] 
Update pdns/recursordist/testrunner.cc

Co-authored-by: Remi Gacogne <github@coredump.fr>
2 years agoSome systems have a low-resolution nanosleep(2), calling it will
Otto Moerbeek [Mon, 19 Dec 2022 08:08:14 +0000 (09:08 +0100)] 
Some systems have a low-resolution nanosleep(2), calling it will
sleep for at least a few ms. Compensate for that by running fewer
loops with longer sleeps.

Also use dns_random and make sure it is initlized properly for all tests.

2 years agoMerge pull request #12309 from omoerbeek/test-anybind
Otto Moerbeek [Sat, 17 Dec 2022 07:46:34 +0000 (08:46 +0100)] 
Merge pull request #12309 from omoerbeek/test-anybind

Test ANY bind UDP handling for the v4 case

2 years agoMerge pull request #12333 from omoerbeek/rec-sockbufsize-log
Otto Moerbeek [Fri, 16 Dec 2022 10:16:05 +0000 (11:16 +0100)] 
Merge pull request #12333 from omoerbeek/rec-sockbufsize-log

Setting socket buf size: not decreasing is not an error

2 years agoMerge pull request #12322 from mind04/auth-lmdb-tsig
Peter van Dijk [Fri, 16 Dec 2022 10:01:14 +0000 (11:01 +0100)] 
Merge pull request #12322 from mind04/auth-lmdb-tsig

auth: lmdb, fix TSIG key removal

2 years agoMerge pull request #12325 from Habbie/remove-toysdig
Peter van Dijk [Fri, 16 Dec 2022 09:53:41 +0000 (10:53 +0100)] 
Merge pull request #12325 from Habbie/remove-toysdig

remove toysdig

2 years agoReformat
Otto Moerbeek [Fri, 16 Dec 2022 08:57:49 +0000 (09:57 +0100)] 
Reformat

2 years agoGenerate EDE in more cases, specifically on unreachable auths or synthesized results.
Otto Moerbeek [Wed, 14 Dec 2022 13:06:36 +0000 (14:06 +0100)] 
Generate EDE in more cases, specifically on unreachable auths or synthesized results.

As there is no specific EDE for synthesised, use noError with a text.

We have to be careful here: a single client query can lead to
multiple beginResolve calls. Some of these are done after the main
result has been looked up, for example to validate the result. These
subsequent calls can generate EDE's but we do not want to copy the
EDE to the main result in those cases. A typical example would be
an absent DS for an Insecure domain. Nothing wrong with these but
we do not want the potential absent DS EDE (which could be synthesize)
to be returned with the main query,

To solve this, mimic the processing of validation state and add
an extra argument to a few methods.

I am not terribly happy with the extra argument. Maybe we should
move to an object holding the parameters and result status of the
nested or subsequent calls.  This would also avoid some of the saveX,
setX, beginResolve, restore X sequences.

So marking this as Draft for now.

2 years agopdnsutil and testrunner need validate.hh, which the previous commit removed from... 12325/head
Peter van Dijk [Fri, 16 Dec 2022 08:36:52 +0000 (09:36 +0100)] 
pdnsutil and testrunner need validate.hh, which the previous commit removed from dist

2 years agoFor setting socket buf size not decreasing is not an error 12333/head
Otto Moerbeek [Fri, 16 Dec 2022 08:24:44 +0000 (09:24 +0100)] 
For setting socket buf size not decreasing is not an error

2 years agoMerge pull request #12323 from omoerbeek/rec-tcounter-responsestats
Otto Moerbeek [Fri, 16 Dec 2022 07:52:30 +0000 (08:52 +0100)] 
Merge pull request #12323 from omoerbeek/rec-tcounter-responsestats

rec: make response stats a tcounter object

2 years agodnsdist: Move DNSQuestion's EDNS options to a unique pointer
Remi Gacogne [Thu, 15 Dec 2022 09:24:39 +0000 (10:24 +0100)] 
dnsdist: Move DNSQuestion's EDNS options to a unique pointer

2 years agoMerge pull request #12327 from rgacogne/ddist-fix-tcp-only-checktimeout-ms
Remi Gacogne [Thu, 15 Dec 2022 08:39:28 +0000 (09:39 +0100)] 
Merge pull request #12327 from rgacogne/ddist-fix-tcp-only-checktimeout-ms

dnsdist: Fix the health-check timeout computation for DoH backend

2 years agodnsdist: Store the maximum UDP payload size in the internal state 12329/head
Remi Gacogne [Wed, 14 Dec 2022 16:41:29 +0000 (17:41 +0100)] 
dnsdist: Store the maximum UDP payload size in the internal state

2 years agodnsdist: Store the initial query time in the internal state as well
Remi Gacogne [Wed, 14 Dec 2022 16:29:27 +0000 (17:29 +0100)] 
dnsdist: Store the initial query time in the internal state as well

That way it is available in the response.

2 years agoMerge pull request #12328 from rgacogne/ddist-stop-responders-faster
Remi Gacogne [Wed, 14 Dec 2022 16:03:20 +0000 (17:03 +0100)] 
Merge pull request #12328 from rgacogne/ddist-stop-responders-faster

dnsdist: Stop the responders more quickly during the tests

2 years agodnsdist: Turn DNSQuestion and DNSResponse into IDState overlays
Remi Gacogne [Fri, 25 Nov 2022 16:38:07 +0000 (17:38 +0100)] 
dnsdist: Turn DNSQuestion and DNSResponse into IDState overlays

Remaining:

queryRealTime
udpPayloadSize

2 years agodnsdist: Clean up unused fieds from the IDState
Remi Gacogne [Thu, 24 Nov 2022 16:22:37 +0000 (17:22 +0100)] 
dnsdist: Clean up unused fieds from the IDState

2 years agodnsdist: Refactor the handling of responses for UDP clients
Remi Gacogne [Thu, 24 Nov 2022 16:21:48 +0000 (17:21 +0100)] 
dnsdist: Refactor the handling of responses for UDP clients

2 years agodnsdist: Add dnsdist::Protocol::isUDP()
Remi Gacogne [Thu, 24 Nov 2022 16:20:27 +0000 (17:20 +0100)] 
dnsdist: Add dnsdist::Protocol::isUDP()

2 years agodnsdist: Stop the responders more quickly during the tests 12328/head
Remi Gacogne [Wed, 14 Dec 2022 15:19:49 +0000 (16:19 +0100)] 
dnsdist: Stop the responders more quickly during the tests

We use `SO_REUSEPORT` in these tests so if the old responder is
still around when the next test starts, it is quite likely that
it might get one of the new queries. This is usually fine because
responders with a different behaviour listen on different ports,
but if a query is queued to an old responder socket right during
the time that responder is checking whether it should stop and
the actual exit, the query will be lost.

2 years agodnsdist: Fix the health-check timeout computation for DoH backend 12327/head
Remi Gacogne [Wed, 14 Dec 2022 15:10:49 +0000 (16:10 +0100)] 
dnsdist: Fix the health-check timeout computation for DoH backend

The remaining milliseconds after handling the full seconds was not
properly converted to microseconds.

2 years agoMerge pull request #12326 from omoerbeek/dnsdist-regr-wait-responders
Remi Gacogne [Wed, 14 Dec 2022 14:45:18 +0000 (15:45 +0100)] 
Merge pull request #12326 from omoerbeek/dnsdist-regr-wait-responders

dnsdist: Wait for TCP responder to become active before starting dnsdist

2 years agoremove toysdig
Peter van Dijk [Wed, 14 Dec 2022 10:29:26 +0000 (11:29 +0100)] 
remove toysdig

2 years agoWait for TCP responder to become active before starting dnsdist 12326/head
Otto Moerbeek [Wed, 14 Dec 2022 09:55:28 +0000 (10:55 +0100)] 
Wait for TCP responder to become active before starting dnsdist

2 years agorec: make response stats a tcounter object 12323/head
Otto Moerbeek [Tue, 13 Dec 2022 11:25:12 +0000 (12:25 +0100)] 
rec: make response stats a tcounter object

This allows for the packet cache hit path to record response stats without performance impact.

The qtype and rcode counters are capped, as i ran into trouble with
the thread stack sizes on macOS and OpenBSD. See the source comment
for explanation.

Closes #11534

2 years agoauth: lmdb, fix TSIG key removal 12322/head
Kees Monshouwer [Tue, 13 Dec 2022 22:25:27 +0000 (23:25 +0100)] 
auth: lmdb, fix TSIG key removal

2 years agoauth, rec: Wrap the CURL raw pointers in smart pointers
Remi Gacogne [Wed, 7 Dec 2022 13:26:33 +0000 (14:26 +0100)] 
auth, rec: Wrap the CURL raw pointers in smart pointers

2 years agodnsdist: Fix loading PKCS12-encrypted (RC2 CBC) certs with OpenSSL 3.x 12320/head
Remi Gacogne [Tue, 13 Dec 2022 14:59:28 +0000 (15:59 +0100)] 
dnsdist: Fix loading PKCS12-encrypted (RC2 CBC) certs with OpenSSL 3.x

2 years agoMerge pull request #12319 from omoerbeek/dnsdist-rlim_t
Otto Moerbeek [Tue, 13 Dec 2022 11:25:59 +0000 (12:25 +0100)] 
Merge pull request #12319 from omoerbeek/dnsdist-rlim_t

dnsdist: Use rlim_t for limit

2 years agoUse rlim_t for limit 12319/head
Otto Moerbeek [Tue, 13 Dec 2022 10:14:08 +0000 (11:14 +0100)] 
Use rlim_t for limit

2 years agoMerge pull request #12318 from omoerbeek/rec-reorg
Otto Moerbeek [Tue, 13 Dec 2022 10:12:11 +0000 (11:12 +0100)] 
Merge pull request #12318 from omoerbeek/rec-reorg

Rec reorg: move recursor specific files to recursordist

2 years agoStep 3: reformat moved files previously not formatted 12318/head
Otto Moerbeek [Tue, 13 Dec 2022 08:30:46 +0000 (09:30 +0100)] 
Step 3: reformat moved files previously not formatted