]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
4 years agoCoverity 1469728 Resource leak by using annotation
Otto Moerbeek [Fri, 29 Apr 2022 07:41:45 +0000 (09:41 +0200)] 
Coverity 1469728 Resource leak by using annotation

4 years agoMerge pull request #11587 from omoerbeek/rec-outgoing-pb-race
Otto Moerbeek [Fri, 29 Apr 2022 07:46:29 +0000 (09:46 +0200)] 
Merge pull request #11587 from omoerbeek/rec-outgoing-pb-race

rec: Avoid a race in test code between processing the first query and the priming code

4 years agoMerge pull request #11586 from Y7n05h/doc
Remi Gacogne [Fri, 29 Apr 2022 07:31:16 +0000 (09:31 +0200)] 
Merge pull request #11586 from Y7n05h/doc

dnsdist: fix wrong parameter type in document

4 years agoMerge pull request #11543 from rgacogne/ddist-console-max-size-log
Remi Gacogne [Fri, 29 Apr 2022 06:16:35 +0000 (08:16 +0200)] 
Merge pull request #11543 from rgacogne/ddist-console-max-size-log

dnsdist: Log when a console message exceeds the maximum size

4 years agoMerge pull request #11578 from rgacogne/ddist-relayed-msg
Remi Gacogne [Fri, 29 Apr 2022 06:13:26 +0000 (08:13 +0200)] 
Merge pull request #11578 from rgacogne/ddist-relayed-msg

dnsdist: Include the address of the backend in 'relayed to' messages

4 years agodnsdist: Support link-level address retrieval for IPv6 as well
Remi Gacogne [Thu, 28 Apr 2022 12:45:22 +0000 (14:45 +0200)] 
dnsdist: Support link-level address retrieval for IPv6 as well

The existing implementation used /proc/net/arp which only contains
MAC addresses for IPv4 addresses. Switching to netlink provides
support for IPv6 addresses as well, and roughly the same performance
(it seems a tiny bit faster but the difference is in the error margin).

4 years agoAvoid a race in test code between processing the first query and the priming code. 11587/head
Otto Moerbeek [Thu, 28 Apr 2022 11:38:14 +0000 (11:38 +0000)] 
Avoid a race in test code between processing the first query and the priming code.

It can happen the root updating houskeeping code has not run yet when
processing the first query.  In that case, we do not have root DNSKEY
records in cache.  When validating the answer, rec will then go out and
fetch those, so no real issue, apart form the fact that it interferes
with our expected outgoing protobuf messages.

Same make sure the root DNSKEY records are cached before doing the actual
test query.

4 years agodnsdist: fix wrong parameter type in document 11586/head
Y7n05h [Thu, 28 Apr 2022 08:32:07 +0000 (16:32 +0800)] 
dnsdist: fix wrong parameter type in document

Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
4 years agodnsdist: add parameter in blockRange
Y7n05h [Wed, 27 Apr 2022 09:52:27 +0000 (17:52 +0800)] 
dnsdist: add parameter in blockRange

Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
4 years agoUse IPNetwork instead of IPAddress
Y7n05h [Tue, 26 Apr 2022 04:05:46 +0000 (12:05 +0800)] 
Use IPNetwork instead of IPAddress

4 years agoTest Ed448 as part of the generic mechanism for testing signers
Fred Morcos [Tue, 26 Apr 2022 13:31:50 +0000 (15:31 +0200)] 
Test Ed448 as part of the generic mechanism for testing signers

This also automatically tests a few things that weren't being tested before.

4 years agoMerge pull request #11514 from rgacogne/ddist-api-noauth 11368/head
Remi Gacogne [Tue, 26 Apr 2022 12:31:45 +0000 (14:31 +0200)] 
Merge pull request #11514 from rgacogne/ddist-api-noauth

dnsdist: Add an option for unauthenticated access to the API

4 years agoAvoid using magic numbers for algorithms
Fred Morcos [Tue, 26 Apr 2022 09:14:07 +0000 (11:14 +0200)] 
Avoid using magic numbers for algorithms

4 years agoClean-up signer params
Fred Morcos [Tue, 26 Apr 2022 09:07:36 +0000 (11:07 +0200)] 
Clean-up signer params

4 years agotest-signers: Use boost fixtures and print info about signers/tests
Fred Morcos [Wed, 20 Apr 2022 15:12:18 +0000 (17:12 +0200)] 
test-signers: Use boost fixtures and print info about signers/tests

This also prints out information about what signers are available and what tests are
getting enabled. Use the `--log_level=message` argument to the boost `testrunner` to see
that information.

4 years agoLint fixes (consts, boolean conditions)
Fred Morcos [Mon, 25 Apr 2022 09:07:27 +0000 (11:07 +0200)] 
Lint fixes (consts, boolean conditions)

4 years agodnsdist: Include the address of the backend in 'relayed to' messages 11578/head
Remi Gacogne [Tue, 26 Apr 2022 07:54:15 +0000 (09:54 +0200)] 
dnsdist: Include the address of the backend in 'relayed to' messages

Not all backends have a name.

4 years agodnsdist: Scan the UDP buckets only when we have outstanding queries 11577/head
Remi Gacogne [Tue, 26 Apr 2022 07:50:50 +0000 (09:50 +0200)] 
dnsdist: Scan the UDP buckets only when we have outstanding queries

4 years agoMerge pull request #11574 from rgacogne/ddist-1.7.1-changelog-secpoll
Remi Gacogne [Mon, 25 Apr 2022 09:55:48 +0000 (11:55 +0200)] 
Merge pull request #11574 from rgacogne/ddist-1.7.1-changelog-secpoll

dnsdist: ChangeLog and secpoll update for dnsdist 1.7.1

4 years agodnsdist: Hopefully we will release 1.7.1 today 11574/head
Remi Gacogne [Mon, 25 Apr 2022 09:18:50 +0000 (11:18 +0200)] 
dnsdist: Hopefully we will release 1.7.1 today

4 years agoFormatting
Fred Morcos [Mon, 25 Apr 2022 09:07:13 +0000 (11:07 +0200)] 
Formatting

4 years agoMerge pull request #11493 from fredmorcos/11325-eddsa-import-export-pem
Peter van Dijk [Mon, 25 Apr 2022 08:26:51 +0000 (10:26 +0200)] 
Merge pull request #11493 from fredmorcos/11325-eddsa-import-export-pem

Support PEM import and export of EdDSA keys

4 years agoMerge pull request #11562 from fredmorcos/find-libdecaf-headers
Peter van Dijk [Mon, 25 Apr 2022 07:59:08 +0000 (09:59 +0200)] 
Merge pull request #11562 from fredmorcos/find-libdecaf-headers

Try harder to find libdecaf headers

4 years agoMerge pull request #11573 from rgacogne/ddist-no-downstream
Remi Gacogne [Mon, 25 Apr 2022 07:48:29 +0000 (09:48 +0200)] 
Merge pull request #11573 from rgacogne/ddist-no-downstream

dnsdist: Better log message when no downstream server are available

4 years agoUpdate document
Y7n05h [Fri, 22 Apr 2022 18:01:46 +0000 (02:01 +0800)] 
Update document

Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
4 years agorename BPFFilter:unblockRange() to BPFFilter:allowRange()
Y7n05h [Fri, 22 Apr 2022 17:49:41 +0000 (01:49 +0800)] 
rename BPFFilter:unblockRange() to BPFFilter:allowRange()

Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
4 years agoadd BPFFilter::getRangeStats()
Y7n05h [Thu, 21 Apr 2022 15:12:20 +0000 (23:12 +0800)] 
add BPFFilter::getRangeStats()
add BPF_MAP_TYPE_LPM_TRIE support in getStats()

Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
4 years agoRevert "add BPF_MAP_TYPE_LPM_TRIE support in getStats()"
Y7n05h [Thu, 21 Apr 2022 11:26:17 +0000 (19:26 +0800)] 
Revert "add BPF_MAP_TYPE_LPM_TRIE support in getStats()"

This reverts commit a8b0100a28b4367d8038726382e007f727d23ad1.

4 years agoUpdate bpf_create_map type declare
Y7n05h [Thu, 21 Apr 2022 11:18:52 +0000 (19:18 +0800)] 
Update bpf_create_map type declare

Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
Co-authored-by: Remi Gacogne <github@coredump.fr>
4 years agochange name
Y7n05h [Thu, 21 Apr 2022 11:18:18 +0000 (19:18 +0800)] 
change name

Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
Co-authored-by: Remi Gacogne <github@coredump.fr>
4 years agochange code style
Y7n05h [Fri, 22 Apr 2022 18:31:55 +0000 (02:31 +0800)] 
change code style

Co-authored-by: Remi Gacogne <github@coredump.fr>
Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
4 years agoUpdate pdns/dnsdistdist/docs/reference/ebpf.rst
Y7n05h [Thu, 21 Apr 2022 11:22:11 +0000 (19:22 +0800)] 
Update pdns/dnsdistdist/docs/reference/ebpf.rst

Co-authored-by: Remi Gacogne <github@coredump.fr>
4 years agodnsdist: ChangeLog and secpoll update for dnsdist 1.7.1
Remi Gacogne [Fri, 22 Apr 2022 13:27:37 +0000 (15:27 +0200)] 
dnsdist: ChangeLog and secpoll update for dnsdist 1.7.1

4 years agoMerge pull request #11570 from omoerbeek/rec-codeql-j4
Otto Moerbeek [Fri, 22 Apr 2022 11:57:24 +0000 (13:57 +0200)] 
Merge pull request #11570 from omoerbeek/rec-codeql-j4

rec: Reduce make -j parameter from 8 to 4 for CodeQL action, as dnsdist does.

4 years agodnsdist: Better log message when no downstream server are available 11573/head
Remi Gacogne [Fri, 22 Apr 2022 11:51:51 +0000 (13:51 +0200)] 
dnsdist: Better log message when no downstream server are available

4 years agoReduce make -j parameter from 8 to 4, as dnsdist does. 11570/head
Otto Moerbeek [Fri, 22 Apr 2022 09:02:12 +0000 (11:02 +0200)] 
Reduce make -j parameter from 8 to 4, as dnsdist does.

This might fix the occasional build issues with the CodeQL GH Action.

4 years agodnsdist: Use the right function name (setVerbose) in the documentation 11567/head
Remi Gacogne [Thu, 21 Apr 2022 12:17:44 +0000 (14:17 +0200)] 
dnsdist: Use the right function name (setVerbose) in the documentation

Co-authored-by: Charles-Henri Bruyand <charleshenri.bruyand+github@gmail.com>
4 years agodnsdist: Add setVerbose() to switch the verbose mode at runtime
Remi Gacogne [Thu, 21 Apr 2022 09:45:16 +0000 (11:45 +0200)] 
dnsdist: Add setVerbose() to switch the verbose mode at runtime

And also from the configuration, without having to edit the arguments
passed to the program.

4 years agoadd BPF_MAP_TYPE_LPM_TRIE support in getStats()
Y7n05h [Wed, 20 Apr 2022 20:06:48 +0000 (04:06 +0800)] 
add BPF_MAP_TYPE_LPM_TRIE support in getStats()

Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
4 years agoupdate document
Y7n05h [Fri, 15 Apr 2022 17:36:27 +0000 (01:36 +0800)] 
update document

4 years agouse BPF_MAP_TYPE_LPM_TRIE map in XDP program to block a range
Y7n05h [Wed, 20 Apr 2022 18:52:35 +0000 (02:52 +0800)] 
use BPF_MAP_TYPE_LPM_TRIE map in XDP program to block a range

Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
4 years agoadd blockRange and unblockRange
Y7n05h [Wed, 20 Apr 2022 18:44:58 +0000 (02:44 +0800)] 
add blockRange and unblockRange

4 years agoSupport create bpf map with BPF_MAP_TYPE_LPM_TRIE type
Y7n05h [Wed, 13 Apr 2022 19:31:37 +0000 (03:31 +0800)] 
Support create bpf map with BPF_MAP_TYPE_LPM_TRIE type

Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
4 years agoMerge pull request #11565 from rgacogne/ddist-fix-ebpf-qnames
Remi Gacogne [Thu, 21 Apr 2022 08:41:42 +0000 (10:41 +0200)] 
Merge pull request #11565 from rgacogne/ddist-fix-ebpf-qnames

dnsdist: Fix wrong eBPF values (qtype, counter) being inserted for qnames

4 years agoMerge pull request #11544 from rgacogne/ddist-bpf-block-action
Remi Gacogne [Thu, 21 Apr 2022 08:41:24 +0000 (10:41 +0200)] 
Merge pull request #11544 from rgacogne/ddist-bpf-block-action

dnsdist: Properly use eBPF when the DynBlock is not set

4 years agoMerge pull request #11547 from rgacogne/ddist-add-address-accessor-to-frontends
Remi Gacogne [Thu, 21 Apr 2022 08:40:54 +0000 (10:40 +0200)] 
Merge pull request #11547 from rgacogne/ddist-add-address-accessor-to-frontends

dnsdist: Add a 'getAddressAndPort()' method to DOHFrontend and TLSFrontend objects

4 years agoMerge pull request #11545 from rgacogne/ddist-fix-backend-proto
Remi Gacogne [Thu, 21 Apr 2022 08:40:37 +0000 (10:40 +0200)] 
Merge pull request #11545 from rgacogne/ddist-fix-backend-proto

dnsdist: Use the correct outgoing protocol in our ring buffers

4 years agoMerge pull request #11561 from omoerbeek/dnsdist-include-openbsd
Otto Moerbeek [Wed, 20 Apr 2022 14:25:28 +0000 (16:25 +0200)] 
Merge pull request #11561 from omoerbeek/dnsdist-include-openbsd

dnsdist: include <unordered_map>

4 years agodnsdist: Fix wrong eBPF values (qtype, counter) being inserted for qnames 11565/head
Remi Gacogne [Wed, 20 Apr 2022 12:32:14 +0000 (14:32 +0200)] 
dnsdist: Fix wrong eBPF values (qtype, counter) being inserted for qnames

4 years agoHeaders in /usr/local/include/decaf are now automatically detected 11562/head
Fred Morcos [Wed, 20 Apr 2022 07:58:05 +0000 (09:58 +0200)] 
Headers in /usr/local/include/decaf are now automatically detected

4 years agoAdd autoconf checks for libdecaf headers
Fred Morcos [Fri, 15 Apr 2022 15:21:51 +0000 (17:21 +0200)] 
Add autoconf checks for libdecaf headers

This adds a few things:
- Passing a user-defined header location through LIBDECAF_CFLAGS=-I...
- Otherwise, check the following directories for decaf.hxx:
  - /usr/include
  - /usr/include/decaf
  - Add whichever one is picked to LIBDECAF_CFLAGS
- Then AC_CHECK_HEADER decaf.hxx using CXXFLAGS with LIBDECAF_CFLAGS

The reason for this change is that some package systems have decaf.hxx
under /usr/include and others have it under /usr/include/decaf.

4 years agoWhitespace
Fred Morcos [Fri, 15 Apr 2022 15:21:32 +0000 (17:21 +0200)] 
Whitespace

4 years agoReimpl sodium ed25519 sign & verify using the simpler detached mode 11493/head
Fred Morcos [Thu, 14 Apr 2022 12:42:31 +0000 (14:42 +0200)] 
Reimpl sodium ed25519 sign & verify using the simpler detached mode

4 years agoLibsodium expects the pub key concatenated to the secret key buffer
Fred Morcos [Thu, 14 Apr 2022 12:41:58 +0000 (14:41 +0200)] 
Libsodium expects the pub key concatenated to the secret key buffer

4 years agoPrint data in base64 for better debugging experience when tests fail
Fred Morcos [Thu, 14 Apr 2022 12:41:07 +0000 (14:41 +0200)] 
Print data in base64 for better debugging experience when tests fail

4 years agoFormatting
Fred Morcos [Mon, 11 Apr 2022 13:24:33 +0000 (15:24 +0200)] 
Formatting

4 years agoCleanup
Fred Morcos [Mon, 11 Apr 2022 13:23:08 +0000 (15:23 +0200)] 
Cleanup

4 years agoLibdecaf impl of Ed448 PEM import and export
Fred Morcos [Fri, 8 Apr 2022 12:32:22 +0000 (14:32 +0200)] 
Libdecaf impl of Ed448 PEM import and export

4 years agoLibdecaf impl of Ed25519 PEM import and export
Fred Morcos [Fri, 8 Apr 2022 12:20:55 +0000 (14:20 +0200)] 
Libdecaf impl of Ed25519 PEM import and export

4 years agoGuard libsodium PEM methods with libcrypto
Fred Morcos [Thu, 7 Apr 2022 12:59:49 +0000 (14:59 +0200)] 
Guard libsodium PEM methods with libcrypto

These methods depend on OpenSSL for PEM import and export.

4 years agoSodium impl of EDDSA PEM import
Fred Morcos [Fri, 1 Apr 2022 10:14:16 +0000 (12:14 +0200)] 
Sodium impl of EDDSA PEM import

4 years agoOpenSSL impl of EDDSA PEM import
Fred Morcos [Fri, 1 Apr 2022 08:21:09 +0000 (10:21 +0200)] 
OpenSSL impl of EDDSA PEM import

4 years agoTest data for EDDSA PEM import and export
Fred Morcos [Fri, 1 Apr 2022 08:20:46 +0000 (10:20 +0200)] 
Test data for EDDSA PEM import and export

4 years agoSodium impl of EDDSA PEM export
Fred Morcos [Wed, 30 Mar 2022 08:39:03 +0000 (10:39 +0200)] 
Sodium impl of EDDSA PEM export

There's no real way to serialize keys in Sodium, so we fall-back to
using OpenSSL which is available in our Sodium-based builds.

4 years agoCleanup: Unused local storage
Fred Morcos [Tue, 29 Mar 2022 09:55:16 +0000 (11:55 +0200)] 
Cleanup: Unused local storage

4 years agoOpenSSL impl of EDDSA PEM export
Fred Morcos [Tue, 29 Mar 2022 09:24:30 +0000 (11:24 +0200)] 
OpenSSL impl of EDDSA PEM export

4 years agoWhitespace
Fred Morcos [Tue, 29 Mar 2022 08:17:00 +0000 (10:17 +0200)] 
Whitespace

4 years agoMerge pull request #11564 from Habbie/circleci-docs-no-texlive
Peter van Dijk [Wed, 20 Apr 2022 10:27:39 +0000 (12:27 +0200)] 
Merge pull request #11564 from Habbie/circleci-docs-no-texlive

circleci: revert docs build to specific debian image, instead of the debian:testing underlying the texlive image

4 years agorevert docs build to specific debian image, instead of the debian:testing underlying... 11564/head
Peter van Dijk [Wed, 20 Apr 2022 08:31:12 +0000 (10:31 +0200)] 
revert docs build to specific debian image, instead of the debian:testing underlying the texlive image

4 years agoInclude <unordered_map> 11561/head
Otto Moerbeek [Tue, 19 Apr 2022 14:50:08 +0000 (16:50 +0200)] 
Include <unordered_map>

On OpenBSD you don't get std::unordered_map for free

4 years agoMerge pull request #11541 from omoerbeek/rec-fix-dot-probe
Otto Moerbeek [Tue, 19 Apr 2022 09:19:39 +0000 (11:19 +0200)] 
Merge pull request #11541 from omoerbeek/rec-fix-dot-probe

Fix DoT port, as noted by ph1 on IRC

4 years agoDecide to use Dot earlier. 11541/head
Otto Moerbeek [Tue, 19 Apr 2022 07:57:23 +0000 (09:57 +0200)] 
Decide to use Dot earlier.

To keep the nsspeed table good, we need to decide to use DoT earlier.
Now the lookup and updats of the speed table occur in a proper way
(using the port that is actually used for the connetion) and when
we switch from/to DoT, the old nsspeeds are cleared by the already
existing code.

4 years agoMerge pull request #11546 from rgacogne/ddist-fix-0-sized-cache
Remi Gacogne [Tue, 19 Apr 2022 07:31:03 +0000 (09:31 +0200)] 
Merge pull request #11546 from rgacogne/ddist-fix-0-sized-cache

dnsdist: Raise the number of entries in a packet cache to at least 1

4 years agoMerge pull request #11539 from rgacogne/rec-fix-dnssec-counters-documentation
Remi Gacogne [Tue, 19 Apr 2022 07:30:53 +0000 (09:30 +0200)] 
Merge pull request #11539 from rgacogne/rec-fix-dnssec-counters-documentation

rec: DNSSEC counters track responses sent, not actual validations performed

4 years agoSimplify code 11552/head
Daniel Frey [Sun, 17 Apr 2022 07:42:45 +0000 (09:42 +0200)] 
Simplify code

Removes a superfluous `if` and folds both branches which had identical behavior.

4 years agoMerge pull request #11535 from Y7n05h/MergeParams
Remi Gacogne [Fri, 15 Apr 2022 15:18:59 +0000 (17:18 +0200)] 
Merge pull request #11535 from Y7n05h/MergeParams

Merge multiple parameters in newBPFFilter

4 years agoUpdate pdns/dnsdistdist/docs/reference/ebpf.rst 11535/head
Remi Gacogne [Fri, 15 Apr 2022 15:18:45 +0000 (17:18 +0200)] 
Update pdns/dnsdistdist/docs/reference/ebpf.rst

4 years agospell-check: Allow UNPRIV from BPF_UNPRIV_DEFAULT_OFF 11548/head
Remi Gacogne [Fri, 15 Apr 2022 13:15:16 +0000 (15:15 +0200)] 
spell-check: Allow UNPRIV from BPF_UNPRIV_DEFAULT_OFF

4 years agodnsdist: Document external eBPF programs and maps
Remi Gacogne [Fri, 15 Apr 2022 13:11:15 +0000 (15:11 +0200)] 
dnsdist: Document external eBPF programs and maps

4 years agodnsdist: Better documentation of the eBPF requirements
Remi Gacogne [Fri, 15 Apr 2022 12:32:43 +0000 (14:32 +0200)] 
dnsdist: Better documentation of the eBPF requirements

4 years agodnsdist: Fix formatting 11547/head
Remi Gacogne [Fri, 15 Apr 2022 12:21:57 +0000 (14:21 +0200)] 
dnsdist: Fix formatting

4 years agodnsdist: Add a 'getAddressAndPort()' method to DOHFrontend and TLSFrontend objects
Remi Gacogne [Fri, 15 Apr 2022 10:57:53 +0000 (12:57 +0200)] 
dnsdist: Add a 'getAddressAndPort()' method to DOHFrontend and TLSFrontend objects

4 years agodnsdist: Raise the number of entries in a packet cache to at least 1 11546/head
Remi Gacogne [Fri, 15 Apr 2022 10:46:44 +0000 (12:46 +0200)] 
dnsdist: Raise the number of entries in a packet cache to at least 1

And make sure that we cannot create such an object.

4 years agodnsdist: Use the correct outgoing protocol in our ring buffers 11545/head
Remi Gacogne [Fri, 15 Apr 2022 10:35:20 +0000 (12:35 +0200)] 
dnsdist: Use the correct outgoing protocol in our ring buffers

4 years agodnsdist: Properly use eBPF when the DynBlock is not set 11544/head
Remi Gacogne [Fri, 15 Apr 2022 10:19:46 +0000 (12:19 +0200)] 
dnsdist: Properly use eBPF when the DynBlock is not set

When the DynBlock rule does not set a specific action we use the
default one, set with `setDynBlocksAction()`, so we should follow
the same logic when determining whether to insert an eBPF block.

4 years agofix d_type in MapConfiguration
Y7n05h [Fri, 15 Apr 2022 09:27:23 +0000 (17:27 +0800)] 
fix d_type in MapConfiguration

4 years agorec: Fix DNSSEC counters description in web/prometheus as well 11539/head
Remi Gacogne [Fri, 15 Apr 2022 09:15:02 +0000 (11:15 +0200)] 
rec: Fix DNSSEC counters description in web/prometheus as well

4 years agofix errer key in access convertParamsToConfig
Y7n05h [Fri, 15 Apr 2022 08:46:13 +0000 (16:46 +0800)] 
fix errer key in access convertParamsToConfig

Signed-off-by: Y7n05h <Y7n05h@protonmail.com>
4 years agodnsdist: Prevent leaking the console's socket descriptors 11543/head
Remi Gacogne [Fri, 15 Apr 2022 08:38:08 +0000 (10:38 +0200)] 
dnsdist: Prevent leaking the console's socket descriptors

I don't see any case where that could happen but better wrap the
socket descriptors in FDWrapper objects so that we cannot forget to
close them if an exception is raised, for example.

4 years agodnsdist: Log when a console message exceeds the maximum size
Remi Gacogne [Fri, 15 Apr 2022 08:34:44 +0000 (10:34 +0200)] 
dnsdist: Log when a console message exceeds the maximum size

Otherwise one cannot know whether the server has closed the connection
or sent a too large message.

4 years agoMissing newline in dump output, noted by ph1
Otto Moerbeek [Thu, 14 Apr 2022 19:36:47 +0000 (21:36 +0200)] 
Missing newline in dump output, noted by ph1

4 years agoFix port, as noted by ph1 on IRC
Otto Moerbeek [Thu, 14 Apr 2022 17:44:06 +0000 (19:44 +0200)] 
Fix port, as noted by ph1 on IRC

Without this, probed DoT actually becomes regular TCP.

4 years agoUpdate pdns/dnsdistdist/docs/reference/ebpf.rst
Y7n05h [Thu, 14 Apr 2022 15:26:22 +0000 (23:26 +0800)] 
Update pdns/dnsdistdist/docs/reference/ebpf.rst

Co-authored-by: Remi Gacogne <github@coredump.fr>
4 years agorec: DNSSEC counters track responses sent, not actual validations performed
Remi Gacogne [Thu, 14 Apr 2022 15:20:15 +0000 (17:20 +0200)] 
rec: DNSSEC counters track responses sent, not actual validations performed

Since 4.1 these counters are updated for every response sent, even if the DNSSEC
status was fetched from the records cache and did not involve any actual
validation.

4 years agoUpdate pdns/dnsdistdist/docs/reference/ebpf.rst
Y7n05h [Thu, 14 Apr 2022 15:25:41 +0000 (23:25 +0800)] 
Update pdns/dnsdistdist/docs/reference/ebpf.rst

Co-authored-by: Remi Gacogne <github@coredump.fr>
4 years agoMerge pull request #11381 from omoerbeek/rec-dynamic-root-refresh-period
Otto Moerbeek [Thu, 14 Apr 2022 14:24:13 +0000 (16:24 +0200)] 
Merge pull request #11381 from omoerbeek/rec-dynamic-root-refresh-period

rec: Adaptive root refresh interval, normally at 80% of max-cache-ttl

4 years agoUpdate document
Y7n05h [Thu, 14 Apr 2022 12:40:57 +0000 (20:40 +0800)] 
Update document

4 years agoSimplify the parameters of newBPFFilter
Y7n05h [Thu, 14 Apr 2022 12:36:11 +0000 (20:36 +0800)] 
Simplify the parameters of newBPFFilter

4 years agoMerge pull request #11518 from fredmorcos/add-libdecaf-to-github-actions
Peter van Dijk [Thu, 14 Apr 2022 12:52:41 +0000 (14:52 +0200)] 
Merge pull request #11518 from fredmorcos/add-libdecaf-to-github-actions

Add libdecaf (auth) tests to Github Actions

4 years agoRefer to new root hint handling info from settings docs 11381/head
Otto Moerbeek [Thu, 14 Apr 2022 12:24:27 +0000 (14:24 +0200)] 
Refer to new root hint handling info from settings docs