]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
2 years agoProcess review comments from @rgacogne, thanks! 12434/head
Otto Moerbeek [Wed, 25 Jan 2023 09:18:01 +0000 (10:18 +0100)] 
Process review comments from @rgacogne, thanks!

2 years agoSome cases of d_prefix vs prefix were missed previously
Otto Moerbeek [Wed, 18 Jan 2023 13:10:12 +0000 (14:10 +0100)] 
Some cases of d_prefix vs prefix were missed previously

2 years agoFix VLOG in !rec case, gcc does not like #define X #error ...
Otto Moerbeek [Tue, 17 Jan 2023 14:14:45 +0000 (15:14 +0100)] 
Fix VLOG in !rec case, gcc does not like #define X #error ...

2 years agoReformat
Otto Moerbeek [Tue, 17 Jan 2023 14:10:58 +0000 (15:10 +0100)] 
Reformat

2 years agoconst correctness and better macro defined in logger.hh instead of two spots
Otto Moerbeek [Tue, 17 Jan 2023 11:18:02 +0000 (12:18 +0100)] 
const correctness and better macro defined in logger.hh instead of two spots

2 years agoRemove remains of g_dnssecLOG
Otto Moerbeek [Tue, 17 Jan 2023 09:59:04 +0000 (10:59 +0100)] 
Remove remains of g_dnssecLOG

It was never set from !recursor and has the same value as trace in
rec.  Now validationo logging goes the same  as other trace handling,
so trace-regex also shows validation.

2 years agoAvoid recomputing prefix all the time, pass it as a argument if possible
Otto Moerbeek [Mon, 16 Jan 2023 15:37:58 +0000 (16:37 +0100)] 
Avoid recomputing prefix all the time, pass it as a argument if possible

2 years agoConsistently use prefix and mark trace regex lines
Otto Moerbeek [Mon, 16 Jan 2023 10:31:51 +0000 (11:31 +0100)] 
Consistently use prefix and mark trace regex lines

2 years agoPrefix helper method
Otto Moerbeek [Mon, 16 Jan 2023 10:00:13 +0000 (11:00 +0100)] 
Prefix helper method

2 years agoPlumbing to let validate.cc and aggressive-nsec.cc use the recursor trace logging
Otto Moerbeek [Wed, 11 Jan 2023 14:25:27 +0000 (15:25 +0100)] 
Plumbing to let validate.cc and aggressive-nsec.cc use the recursor trace logging

Until now the logging of the DNSSEC code used it's own logging, which has
the consequence that prefixed, tracing and indenditng all worked differently
compared to the regular (trace) logging in rec.

So provide a construct to unify them without exposing syncres
internals to the validation code.

2 years agoMerge pull request #12425 from omoerbeek/rec-forward-nord
Otto Moerbeek [Wed, 18 Jan 2023 08:44:38 +0000 (09:44 +0100)] 
Merge pull request #12425 from omoerbeek/rec-forward-nord

rec: Change the way RD=0 forwarded queries are handled.

2 years agoMerge pull request #12428 from rgacogne/moved-credentials
Remi Gacogne [Wed, 18 Jan 2023 08:43:49 +0000 (09:43 +0100)] 
Merge pull request #12428 from rgacogne/moved-credentials

credentials: Explicitly clear credentials once they have been moved

2 years agocredentials: Explicitly clear credentials once they have been moved 12428/head
Remi Gacogne [Tue, 17 Jan 2023 16:52:09 +0000 (17:52 +0100)] 
credentials: Explicitly clear credentials once they have been moved

2 years agoMerge pull request #12415 from rgacogne/ddist-improv
Remi Gacogne [Tue, 17 Jan 2023 11:31:33 +0000 (12:31 +0100)] 
Merge pull request #12415 from rgacogne/ddist-improv

dnsdist: Small improvements

2 years agoChange the way RD=0 forwarded queries are handled. 12425/head
Otto Moerbeek [Tue, 17 Jan 2023 09:00:30 +0000 (10:00 +0100)] 
Change the way RD=0 forwarded queries are handled.

Since forever, there has been special case code for forwarded queries
in the RD=0 case.  This special case code does a hardcoded RD=0
query to the specified forwarder.  This code has two consequences:

1. Even if the forwarder is marked recursive it gets a RD=0 query
2. The cache is not consulted at all

The corresponding unit tests actually test this behaviour, but after
historic digging with help from @rgacogne it turns out the the unit
test do not reflect the desired functionality, but the current state
of affairs to help with a refactoring PR.  That is good, since
refactoring should not change functionality.

But now the time has come to change the code to do the desired thing:

1. If an RD=0 query is received, do a cache only-lookup in all cases.
2. Never send a RD=0 query to a recursive forwarder

I already did a similar thing when I wrote the QName Minimization
code, introducing a conditional that only gets set for that case,
to avoid changing unrelated (to QM) functionality.

2 years agoMerge pull request #12381 from rgacogne/fortify-3
Remi Gacogne [Tue, 17 Jan 2023 08:53:53 +0000 (09:53 +0100)] 
Merge pull request #12381 from rgacogne/fortify-3

Enable FORTIFY_SOURCE=3 when supported by the compiler

2 years agoMerge pull request #12420 from omoerbeek/rec-README
Otto Moerbeek [Tue, 17 Jan 2023 08:11:16 +0000 (09:11 +0100)] 
Merge pull request #12420 from omoerbeek/rec-README

rec: README tweaks, .md does not know :program:`...`

2 years agoMerge pull request #12407 from omoerbeek/rec-ecs-chaining
Otto Moerbeek [Mon, 16 Jan 2023 15:15:09 +0000 (16:15 +0100)] 
Merge pull request #12407 from omoerbeek/rec-ecs-chaining

rec: do not chain ecs enabled queries

2 years agoMerge pull request #12419 from omoerbeek/rec-close-fd-on-fdopen-fail
Otto Moerbeek [Mon, 16 Jan 2023 15:06:15 +0000 (16:06 +0100)] 
Merge pull request #12419 from omoerbeek/rec-close-fd-on-fdopen-fail

rec: negcache dump code: close fd on fdopen fail

2 years agorec: README tweaks, .md does not know :program:`...` 12420/head
Otto Moerbeek [Mon, 16 Jan 2023 14:24:15 +0000 (15:24 +0100)] 
rec: README tweaks, .md does not know :program:`...`

2 years agoMerge pull request #12364 from rgacogne/rec-doc-compiling
Otto Moerbeek [Mon, 16 Jan 2023 14:15:30 +0000 (15:15 +0100)] 
Merge pull request #12364 from rgacogne/rec-doc-compiling

rec: In compiling docs, warn about the GH tarballs, add deps from README

2 years agoMerge pull request #12396 from omoerbeek/stringerror-thread-safe
Otto Moerbeek [Mon, 16 Jan 2023 14:10:22 +0000 (15:10 +0100)] 
Merge pull request #12396 from omoerbeek/stringerror-thread-safe

Introduce a thread-safe version of stringerror()

2 years agoClose fd on fdopen fail. 12419/head
Otto Moerbeek [Mon, 16 Jan 2023 13:25:11 +0000 (14:25 +0100)] 
Close fd on fdopen fail.

Originally suggested by @rgacogne, but not included in the merge of #12374
somehow.

2 years agoMerge pull request #12412 from fredmorcos/openssl3-tls-mac
Remi Gacogne [Mon, 16 Jan 2023 08:52:52 +0000 (09:52 +0100)] 
Merge pull request #12412 from fredmorcos/openssl3-tls-mac

OpenSSL 3.0: TLS MAC handling

2 years agoMerge pull request #12416 from Habbie/variable-mirror
Remi Gacogne [Mon, 16 Jan 2023 08:51:28 +0000 (09:51 +0100)] 
Merge pull request #12416 from Habbie/variable-mirror

build-and-test-all: add functionality to quickly switch ubuntu mirrors

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

2 years agoMerge pull request #12405 from rgacogne/ddist-frontend-responses
Remi Gacogne [Fri, 13 Jan 2023 15:51:01 +0000 (16:51 +0100)] 
Merge pull request #12405 from rgacogne/ddist-frontend-responses

dnsdist: Proper accounting of response and cache hits

2 years agoMerge pull request #12386 from rgacogne/single-doh-acceptor
Remi Gacogne [Fri, 13 Jan 2023 15:50:24 +0000 (16:50 +0100)] 
Merge pull request #12386 from rgacogne/single-doh-acceptor

dnsdist: Merge the 'main' and 'client' DoH threads in single acceptor mode

2 years agoMerge pull request #12384 from rgacogne/ddist-cap-ttl
Remi Gacogne [Fri, 13 Jan 2023 14:40:17 +0000 (15:40 +0100)] 
Merge pull request #12384 from rgacogne/ddist-cap-ttl

dnsdist: Add the ability to cap the TTL of records after insertion into the cache

2 years agodnsdist: Add more unit tests for the packet overlay 12415/head
Remi Gacogne [Fri, 13 Jan 2023 13:02:09 +0000 (14:02 +0100)] 
dnsdist: Add more unit tests for the packet overlay

2 years agom4: Fix interleaved output during `FORTIFY_SOURCE` detection 12381/head
Remi Gacogne [Fri, 13 Jan 2023 09:25:41 +0000 (10:25 +0100)] 
m4: Fix interleaved output during `FORTIFY_SOURCE` detection

2 years agoMerge pull request #12411 from fredmorcos/openssl3-ipcipher-ca6-crypto
Remi Gacogne [Fri, 13 Jan 2023 08:32:12 +0000 (09:32 +0100)] 
Merge pull request #12411 from fredmorcos/openssl3-ipcipher-ca6-crypto

Support OpenSSL 3.0 for ipcipher CA6 encryption/decryption

2 years agoOpenSSL 3.0: TLS MAC handling 12412/head
Fred Morcos [Mon, 9 Jan 2023 12:56:37 +0000 (13:56 +0100)] 
OpenSSL 3.0: TLS MAC handling

2 years agolibssl: Cleanup TLS-related code
Fred Morcos [Mon, 9 Jan 2023 11:33:34 +0000 (12:33 +0100)] 
libssl: Cleanup TLS-related code

2 years agolibssl: Formatting TLS-related code
Fred Morcos [Mon, 9 Jan 2023 11:31:21 +0000 (12:31 +0100)] 
libssl: Formatting TLS-related code

2 years agodnsdist: Appease the formatting gods
Remi Gacogne [Thu, 12 Jan 2023 15:01:50 +0000 (16:01 +0100)] 
dnsdist: Appease the formatting gods

2 years agoMerge pull request #12403 from rgacogne/spell-allow-eaca
Remi Gacogne [Thu, 12 Jan 2023 14:56:58 +0000 (15:56 +0100)] 
Merge pull request #12403 from rgacogne/spell-allow-eaca

spell-checker: Allow EACA (from the PGP public keys in the docs)

2 years agodnsdist: Use smaller event buffers in our socket multiplexers
Remi Gacogne [Thu, 12 Jan 2023 14:55:32 +0000 (15:55 +0100)] 
dnsdist: Use smaller event buffers in our socket multiplexers

2 years agodnsdist: Silence a warning about an unused variable in discovery.cc
Remi Gacogne [Thu, 12 Jan 2023 14:50:40 +0000 (15:50 +0100)] 
dnsdist: Silence a warning about an unused variable in discovery.cc

2 years agodnsdist: Remove a duplicated ';' in dnsdist-lua-actions.cc
Remi Gacogne [Thu, 12 Jan 2023 14:49:56 +0000 (15:49 +0100)] 
dnsdist: Remove a duplicated ';' in dnsdist-lua-actions.cc

2 years agocredentials: Add more unit tests
Remi Gacogne [Thu, 12 Jan 2023 14:49:03 +0000 (15:49 +0100)] 
credentials: Add more unit tests

2 years agoOpenSSL 3.0: decryptCA6 12411/head
Fred Morcos [Thu, 3 Nov 2022 09:21:03 +0000 (10:21 +0100)] 
OpenSSL 3.0: decryptCA6

2 years agoOpenSSL 3.0: encryptCA6
Fred Morcos [Thu, 3 Nov 2022 08:03:52 +0000 (09:03 +0100)] 
OpenSSL 3.0: encryptCA6

2 years agospell-checker: Allow prometheus values 12405/head
Remi Gacogne [Mon, 9 Jan 2023 16:26:53 +0000 (17:26 +0100)] 
spell-checker: Allow prometheus values

2 years agodnsdist: Fix a typo in the prometheus type
Remi Gacogne [Mon, 9 Jan 2023 16:26:34 +0000 (17:26 +0100)] 
dnsdist: Fix a typo in the prometheus type

2 years agodnsdist: Update the prometheus sample in the documentation
Remi Gacogne [Mon, 9 Jan 2023 16:19:46 +0000 (17:19 +0100)] 
dnsdist: Update the prometheus sample in the documentation

It was very old and not up-to-date.

2 years agodnsdist: Only record one hit or miss per query in the cache metrics
Remi Gacogne [Mon, 9 Jan 2023 16:17:21 +0000 (17:17 +0100)] 
dnsdist: Only record one hit or miss per query in the cache metrics

The scope-zero feature and the DoH paths can actually do more than
one lookup per query, and until now this led to an increase of the
per-cache metric for every lookup, while the global `cache-hits`
and `cache-misses` metrics were only updated once per query.
This has led to several questions and misunderstandings, so we now
only update the per-cache metrics once per query as well.

2 years agodnsdist: Properly record cache-hits as responses
Remi Gacogne [Mon, 9 Jan 2023 16:15:03 +0000 (17:15 +0100)] 
dnsdist: Properly record cache-hits as responses

For a very long time we have not been adding cache-hits to the
responses counter, which is wrong. Let's fix it now.

2 years agoCleanup ipcipher.hh
Fred Morcos [Wed, 11 Jan 2023 14:59:19 +0000 (15:59 +0100)] 
Cleanup ipcipher.hh

2 years agodnsdist: Merge the 'main' and 'client' DoH threads 12386/head
Remi Gacogne [Sat, 2 Jul 2022 14:09:56 +0000 (16:09 +0200)] 
dnsdist: Merge the 'main' and 'client' DoH threads

When we are in "single acceptor thread" mode, merge the 'main' and
'client' DoH threads into a single one. We use separate threads to
reduce the separate the handling of the HTTP/2 traffic from the DNS
handling, to reduce latency, but that does not really make sense on
small devices with a single, limited CPU core. On these we prefer
using as few threads as possible to reduce the context switches and
the memory usage.

2 years agodnsdist: Remove ttlCapTypes from the internal state 12384/head
Remi Gacogne [Fri, 2 Dec 2022 14:29:45 +0000 (15:29 +0100)] 
dnsdist: Remove ttlCapTypes from the internal state

2 years agodnsdist: Use unordered sets to speed things up a bit
Remi Gacogne [Fri, 24 Jun 2022 13:50:10 +0000 (15:50 +0200)] 
dnsdist: Use unordered sets to speed things up a bit

2 years agodnsdist: Implement the ability to cap TTLs for some record types only
Remi Gacogne [Fri, 11 Feb 2022 14:34:26 +0000 (15:34 +0100)] 
dnsdist: Implement the ability to cap TTLs for some record types only

2 years agodnsdist: Add MaxReturnedTTLResponseAction to cap the TTL after packet cache
Remi Gacogne [Wed, 12 Jan 2022 13:58:34 +0000 (14:58 +0100)] 
dnsdist: Add MaxReturnedTTLResponseAction to cap the TTL after packet cache

2 years agoMerge pull request #12383 from rgacogne/ddist-stronger-udp-path
Remi Gacogne [Wed, 11 Jan 2023 13:14:11 +0000 (14:14 +0100)] 
Merge pull request #12383 from rgacogne/ddist-stronger-udp-path

dnsdist: Stronger guarantees against data race in the UDP path

2 years agoMerge pull request #12401 from fredmorcos/openssl-3-prep
Remi Gacogne [Wed, 11 Jan 2023 13:13:28 +0000 (14:13 +0100)] 
Merge pull request #12401 from fredmorcos/openssl-3-prep

Openssl 3 prep work

2 years agodnsdist: Really fix the formatting this time 12383/head
Remi Gacogne [Wed, 11 Jan 2023 11:31:59 +0000 (12:31 +0100)] 
dnsdist: Really fix the formatting this time

2 years agodnsdist: Fix formatting
Remi Gacogne [Wed, 11 Jan 2023 11:30:29 +0000 (12:30 +0100)] 
dnsdist: Fix formatting

2 years agodnsdist: Apply suggestions from Otto's code review (thanks!)
Remi Gacogne [Wed, 11 Jan 2023 11:27:23 +0000 (12:27 +0100)] 
dnsdist: Apply suggestions from Otto's code review (thanks!)

2 years agodnsdist: Set a proper HTTP error code on Proxy Protocol failure
Remi Gacogne [Fri, 6 Jan 2023 10:56:34 +0000 (11:56 +0100)] 
dnsdist: Set a proper HTTP error code on Proxy Protocol failure

2 years agodnsdist: Stronger guarantees against data race in the UDP path
Remi Gacogne [Wed, 28 Sep 2022 15:21:16 +0000 (17:21 +0200)] 
dnsdist: Stronger guarantees against data race in the UDP path

2 years agoMerge pull request #12410 from rgacogne/unbreak-ci
Remi Gacogne [Wed, 11 Jan 2023 10:20:36 +0000 (11:20 +0100)] 
Merge pull request #12410 from rgacogne/unbreak-ci

CI: Work-around the "503  Service Unavailable" erros on azure.archive.ubuntu.com

2 years agoMerge pull request #12402 from rgacogne/ddist-dq-time
Remi Gacogne [Wed, 11 Jan 2023 08:54:39 +0000 (09:54 +0100)] 
Merge pull request #12402 from rgacogne/ddist-dq-time

dnsdist: Add bindings for the current and query times in DQ/DR

2 years agoCI: Work-around the "503 Service Unavailable" erros on azure.archive.ubuntu.com 12410/head
Remi Gacogne [Tue, 10 Jan 2023 08:37:23 +0000 (09:37 +0100)] 
CI: Work-around the "503  Service Unavailable" erros on azure.archive.ubuntu.com

2 years agoMerge pull request #12400 from rgacogne/ddist-reduce-ttl
Remi Gacogne [Tue, 10 Jan 2023 16:21:48 +0000 (17:21 +0100)] 
Merge pull request #12400 from rgacogne/ddist-reduce-ttl

dnsdist: Add SetReducedTTLResponseAction

2 years agodnsdist: Add Lua bindings for the current time and query time 12402/head
Remi Gacogne [Mon, 9 Jan 2023 14:14:28 +0000 (15:14 +0100)] 
dnsdist: Add Lua bindings for the current time and query time

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 agodnsdist: Better description of SetReducedTTLResponseAction 12400/head
Remi Gacogne [Tue, 10 Jan 2023 15:26:23 +0000 (16:26 +0100)] 
dnsdist: Better description of SetReducedTTLResponseAction

Co-authored-by: Charles-Henri Bruyand <charleshenri.bruyand+github@gmail.com>
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 agoMerge pull request #12385 from rgacogne/ddist-ffi-metrics
Remi Gacogne [Tue, 10 Jan 2023 14:40:24 +0000 (15:40 +0100)] 
Merge pull request #12385 from rgacogne/ddist-ffi-metrics

dnsdist: Add a Lua FFI interface for metrics

2 years agoReformat 12407/head
Otto Moerbeek [Tue, 10 Jan 2023 14:05:43 +0000 (15:05 +0100)] 
Reformat

2 years agoBetter wording of reason to not chain ECS enabled queries
Otto Moerbeek [Tue, 10 Jan 2023 13:42:41 +0000 (14:42 +0100)] 
Better wording of reason to not chain ECS enabled queries

Co-authored-by: Remi Gacogne <github@coredump.fr>
2 years agoTypo in comment
Otto Moerbeek [Tue, 10 Jan 2023 13:41:46 +0000 (14:41 +0100)] 
Typo in comment

Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
2 years agorec: do not chain ecs enabled queries.
Otto Moerbeek [Tue, 10 Jan 2023 13:27:27 +0000 (14:27 +0100)] 
rec: do not chain ecs enabled queries.

asyncresolve() assumes the recieved ecs info corresponds to the one sent out.

2 years agoMerge pull request #12387 from rgacogne/ddist-oom-udp
Remi Gacogne [Tue, 10 Jan 2023 09:08:40 +0000 (10:08 +0100)] 
Merge pull request #12387 from rgacogne/ddist-oom-udp

dnsdist: Handle out-of-memory exceptions in the UDP receiver thread

2 years agoMerge pull request #12399 from omoerbeek/rec-threadnames
Otto Moerbeek [Mon, 9 Jan 2023 18:56:57 +0000 (19:56 +0100)] 
Merge pull request #12399 from omoerbeek/rec-threadnames

rec: Name recursor threads consistently with a "rec/" prefix.

2 years agoMerge pull request #12392 from omoerbeek/bind-errno-cleanup
Otto Moerbeek [Mon, 9 Jan 2023 18:56:33 +0000 (19:56 +0100)] 
Merge pull request #12392 from omoerbeek/bind-errno-cleanup

Be more careful saving errno in makeClientSocket() and closesocket()

2 years agoMerge pull request #12367 from jsoref/pdns_control-ccounts-comma
Peter van Dijk [Mon, 9 Jan 2023 17:42:40 +0000 (18:42 +0100)] 
Merge pull request #12367 from jsoref/pdns_control-ccounts-comma

Add missing comma to pdns_control ccounts

2 years agospell-checker: Allow EACA (from the PGP public keys in the docs) 12403/head
Remi Gacogne [Mon, 9 Jan 2023 14:19:59 +0000 (15:19 +0100)] 
spell-checker: Allow EACA (from the PGP public keys in the docs)

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 agoName recursor threads consistently with a "rec/" prefix. 12399/head
Otto Moerbeek [Mon, 9 Jan 2023 12:19:28 +0000 (13:19 +0100)] 
Name recursor threads consistently with a "rec/" prefix.

Use thread names without capitals, as they look a bit ugly otherwise.

Threads started by libfstrm are not named, as they are created internally by the lib.

Partly supsersedes #11138

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 agoIntroduce a thread-safe version of stringerror() 12396/head
Otto Moerbeek [Mon, 9 Jan 2023 09:22:19 +0000 (10:22 +0100)] 
Introduce a thread-safe version of stringerror()

It turns out we already have the code, so call it.

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: Move the exception handling out of handleOnePacket() 12387/head
Remi Gacogne [Mon, 9 Jan 2023 10:31:12 +0000 (11:31 +0100)] 
dnsdist: Move the exception handling out of handleOnePacket()

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 agoAdd an --enable-fortify-source configure option
Remi Gacogne [Mon, 9 Jan 2023 09:35:32 +0000 (10:35 +0100)] 
Add an --enable-fortify-source configure option

The option defaults to 2 to keep the existing behaviour, but 3 and
auto are supported, with auto trying to select the highest version
supported by the compiler.

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