]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
2 years agodnsdist: Stop caching responses to XFR queries 12422/head
Remi Gacogne [Mon, 23 Jan 2023 14:56:24 +0000 (15:56 +0100)] 
dnsdist: Stop caching responses to XFR queries

2 years agodnsdist: Simplify the sample rule to disable caching for NOTIFY queries
Remi Gacogne [Mon, 23 Jan 2023 14:13:50 +0000 (15:13 +0100)] 
dnsdist: Simplify the sample rule to disable caching for NOTIFY queries

2 years agodnsdist: Fix a typo (ORRule -> OrRule) in the XFR documentation
Remi Gacogne [Mon, 23 Jan 2023 14:13:21 +0000 (15:13 +0100)] 
dnsdist: Fix a typo (ORRule -> OrRule) in the XFR documentation

2 years agodnsdist: Document interactions between XFR, NOTIFY and the cache
Remi Gacogne [Mon, 16 Jan 2023 14:55:28 +0000 (15:55 +0100)] 
dnsdist: Document interactions between XFR, NOTIFY and the cache

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 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 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 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 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 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 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: Add SetReducedTTLResponseAction
Remi Gacogne [Fri, 6 Jan 2023 15:46:53 +0000 (16:46 +0100)] 
dnsdist: Add SetReducedTTLResponseAction

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 agoBe more careful saving errno in makeClientSocket() and closesocket() 12392/head
Otto Moerbeek [Fri, 6 Jan 2023 14:45:46 +0000 (15:45 +0100)] 
Be more careful saving errno in makeClientSocket() and closesocket()

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 agoAdd missing comma to pdns_control ccounts 12367/head
Josh Soref [Wed, 28 Dec 2022 00:30:53 +0000 (19:30 -0500)] 
Add missing comma to pdns_control ccounts

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