]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
11 days agodnsdist: Don't try to convert consumed bytes to a nghttp2 error 17153/head
Remi Gacogne [Fri, 17 Apr 2026 11:06:27 +0000 (13:06 +0200)] 
dnsdist: Don't try to convert consumed bytes to a nghttp2 error

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
11 days agodnsdist: Remove commented out leftover debug messages in outgoing DoH 17154/head
Remi Gacogne [Fri, 17 Apr 2026 10:16:10 +0000 (12:16 +0200)] 
dnsdist: Remove commented out leftover debug messages in outgoing DoH

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
11 days agodnsdist: Better handling of nghttp2 errors
Remi Gacogne [Fri, 17 Apr 2026 10:11:52 +0000 (12:11 +0200)] 
dnsdist: Better handling of nghttp2 errors

There are a few cases where an error returned by `nghttp2` could
have been silently ignored. Thanks to ilhamaf for reporting this!
As far as I can tell there is no actual impact, except perhaps that
we can detect errors/stale connections earlier, but I haven't been
able to cause any actual problem introduced by not handling these
errors properly.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
11 days agoHarden stripDomainSuffix() logic. 17152/head
Miod Vallat [Thu, 16 Apr 2026 14:28:14 +0000 (16:28 +0200)] 
Harden stripDomainSuffix() logic.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
12 days agoMerge pull request #17151 from rgacogne/ddist-ywh-230
Remi Gacogne [Thu, 16 Apr 2026 14:49:17 +0000 (16:49 +0200)] 
Merge pull request #17151 from rgacogne/ddist-ywh-230

dnsdist: Fix handling of long HTTP/2 Date headers, handle non-POSIX locales

12 days agoDrop boolean return from stripDomainSuffix().
Miod Vallat [Fri, 27 Jun 2025 09:53:20 +0000 (11:53 +0200)] 
Drop boolean return from stripDomainSuffix().

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
12 days agoRemove ciEqual(), clone of pdns_iequals().
Miod Vallat [Fri, 27 Jun 2025 09:20:29 +0000 (11:20 +0200)] 
Remove ciEqual(), clone of pdns_iequals().

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
12 days agoMerge pull request #17149 from miodvallat/parse_is_hard
Miod Vallat [Thu, 16 Apr 2026 12:22:50 +0000 (14:22 +0200)] 
Merge pull request #17149 from miodvallat/parse_is_hard

webserver: correctly split the basic authorization cookie

12 days agoMerge pull request #17148 from miodvallat/httpenury
Miod Vallat [Thu, 16 Apr 2026 12:22:22 +0000 (14:22 +0200)] 
Merge pull request #17148 from miodvallat/httpenury

auth: add a configurable limit of web server connections

12 days agodnsdist: Check the value of the HTTP Date header, even with a weird locale 17151/head
Remi Gacogne [Thu, 16 Apr 2026 10:40:08 +0000 (12:40 +0200)] 
dnsdist: Check the value of the HTTP Date header, even with a weird locale

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
12 days agodnsdist: Use the POSIX locale to generate the HTTP Date header
Remi Gacogne [Thu, 16 Apr 2026 10:37:56 +0000 (12:37 +0200)] 
dnsdist: Use the POSIX locale to generate the HTTP Date header

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
12 days agodnsdist: Split HTTP Date header generation, use timebuf_t
Remi Gacogne [Thu, 16 Apr 2026 09:47:41 +0000 (11:47 +0200)] 
dnsdist: Split HTTP Date header generation, use timebuf_t

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
12 days agodnsdist: Fix handling of long HTTP/2 Date headers
Remi Gacogne [Tue, 14 Apr 2026 08:14:36 +0000 (10:14 +0200)] 
dnsdist: Fix handling of long HTTP/2 Date headers

Some days of the year can, in some specific locales, require more than 40 bytes.
We should handle that gracefully with a larger buffer, and also just skip the
`Date` header altogether if it somehow does not fit into our buffer.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
12 days agodnsdist: Appease ruff 17150/head
Remi Gacogne [Thu, 16 Apr 2026 10:21:44 +0000 (12:21 +0200)] 
dnsdist: Appease ruff

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
12 days agodnsdist: Handle missing X-Forwarded-For on existing DoH connection
Remi Gacogne [Thu, 16 Apr 2026 09:18:17 +0000 (11:18 +0200)] 
dnsdist: Handle missing X-Forwarded-For on existing DoH connection

If `trustForwardedForHeader` is enabled, meaning we trust an upstream
reverse-proxy to fill it with the address of the initial client, and
the header was set on at least one previous query of the current DoH
connection, but is missing from the current query, we should fall back
to the address the connection is coming from instead of using the value
of the last received `X-Forwarded-For` header.
This should never happen in practice: if we trust the reverse proxy
to set the `X-Forwarded-For` header it should always do so. But let's
handle the case nevertheless, or we will get an endless stream of
reports from LLMs about it.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
12 days agoCorrectly split the basic authorization cookie. 17149/head
Miod Vallat [Thu, 16 Apr 2026 07:16:12 +0000 (09:16 +0200)] 
Correctly split the basic authorization cookie.

This allows passwords containing colons to be correctly handled.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
12 days agoAdd a limit of the number of concurrent connections to auth webserver. 17148/head
Miod Vallat [Thu, 16 Apr 2026 06:49:10 +0000 (08:49 +0200)] 
Add a limit of the number of concurrent connections to auth webserver.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
13 days agoMove connection-management.hh to shared place.
Miod Vallat [Wed, 15 Apr 2026 12:40:47 +0000 (14:40 +0200)] 
Move connection-management.hh to shared place.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
13 days agoMerge pull request #17002 from miodvallat/directbackenderror
Miod Vallat [Wed, 15 Apr 2026 07:44:38 +0000 (09:44 +0200)] 
Merge pull request #17002 from miodvallat/directbackenderror

pdnsutil: possibly helpful backend-cmd help

13 days agoMerge pull request #17134 from miodvallat/gallup
Miod Vallat [Wed, 15 Apr 2026 07:44:11 +0000 (09:44 +0200)] 
Merge pull request #17134 from miodvallat/gallup

auth: only perform secpoll checks when they make sense

13 days agoMerge pull request #17141 from rgacogne/ddist-coverity-20260414
Remi Gacogne [Wed, 15 Apr 2026 06:59:37 +0000 (08:59 +0200)] 
Merge pull request #17141 from rgacogne/ddist-coverity-20260414

dnsdist: Silence performance warnings from Coverity

2 weeks agodnsdist: Silence performance warnings from Coverity 17141/head
Remi Gacogne [Tue, 14 Apr 2026 09:13:58 +0000 (11:13 +0200)] 
dnsdist: Silence performance warnings from Coverity

Coverity (CID 503155 and 503156, at least) is worried that we are
mistakenly duplicating the `std::string`s that our Lua bindings are
returning. We are doing it on purpose, so let's make it clear.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 weeks agoMerge pull request #17140 from PowerDNS/dependabot/cargo/pdns/recursordist/rec-rust...
Remi Gacogne [Tue, 14 Apr 2026 07:55:25 +0000 (09:55 +0200)] 
Merge pull request #17140 from PowerDNS/dependabot/cargo/pdns/recursordist/rec-rust-lib/rust/rand-0.9.4

build(deps): bump rand from 0.9.2 to 0.9.4 in /pdns/recursordist/rec-rust-lib/rust

2 weeks agobuild(deps): bump rand in /pdns/recursordist/rec-rust-lib/rust 17140/head
dependabot[bot] [Tue, 14 Apr 2026 03:32:45 +0000 (03:32 +0000)] 
build(deps): bump rand in /pdns/recursordist/rec-rust-lib/rust

Bumps [rand](https://github.com/rust-random/rand) from 0.9.2 to 0.9.4.
- [Release notes](https://github.com/rust-random/rand/releases)
- [Changelog](https://github.com/rust-random/rand/blob/0.9.4/CHANGELOG.md)
- [Commits](https://github.com/rust-random/rand/compare/rand_core-0.9.2...0.9.4)

---
updated-dependencies:
- dependency-name: rand
  dependency-version: 0.9.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2 weeks agoMerge pull request #17139 from miodvallat/codeupdate
Miod Vallat [Mon, 13 Apr 2026 16:03:20 +0000 (18:03 +0200)] 
Merge pull request #17139 from miodvallat/codeupdate

auth: comb the dns update code

2 weeks agoBetter variable names. 17139/head
Miod Vallat [Mon, 13 Apr 2026 13:02:29 +0000 (15:02 +0200)] 
Better variable names.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 weeks agoWork on DNSRecord references rather than pointers whenever possible.
Miod Vallat [Mon, 13 Apr 2026 13:02:21 +0000 (15:02 +0200)] 
Work on DNSRecord references rather than pointers whenever possible.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 weeks agoReduce scope of MOADNSParser objects.
Miod Vallat [Mon, 13 Apr 2026 13:02:08 +0000 (15:02 +0200)] 
Reduce scope of MOADNSParser objects.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 weeks agoPass the MOADNSParser d_answers field rather than the whole object.
Miod Vallat [Mon, 13 Apr 2026 13:01:54 +0000 (15:01 +0200)] 
Pass the MOADNSParser d_answers field rather than the whole object.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 weeks agoDo not keep secpolling for non-releases. 17134/head
Miod Vallat [Fri, 10 Apr 2026 11:58:07 +0000 (13:58 +0200)] 
Do not keep secpolling for non-releases.

Fixes: #17133
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 weeks agoMerge pull request #17132 from rgacogne/ddist-fix-dnsresponse_t-lua-ffi
Remi Gacogne [Fri, 10 Apr 2026 10:03:15 +0000 (12:03 +0200)] 
Merge pull request #17132 from rgacogne/ddist-fix-dnsresponse_t-lua-ffi

dnsdist: Lua FFI response actions are passed a `dnsdist_ffi_dnsresponse_t`

2 weeks agoAllow `dnsresponse` 17132/head
Remi Gacogne [Fri, 10 Apr 2026 09:10:24 +0000 (11:10 +0200)] 
Allow `dnsresponse`

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 weeks agodnsdist: Lua FFI _response_ actions are passed a `dnsdist_ffi_dnsresponse_t`
Remi Gacogne [Fri, 10 Apr 2026 09:04:41 +0000 (11:04 +0200)] 
dnsdist: Lua FFI _response_ actions are passed a `dnsdist_ffi_dnsresponse_t`

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 weeks agoMerge pull request #17124 from rgacogne/ddist-refactor-dq-header-interface
Remi Gacogne [Fri, 10 Apr 2026 07:08:27 +0000 (09:08 +0200)] 
Merge pull request #17124 from rgacogne/ddist-refactor-dq-header-interface

dnsdist: Refactor access to DNS headers from Lua

2 weeks agoMerge pull request #17126 from miodvallat/createhex
Miod Vallat [Fri, 10 Apr 2026 05:27:58 +0000 (07:27 +0200)] 
Merge pull request #17126 from miodvallat/createhex

auth lua: one more bad case of createForward

2 weeks agoMerge pull request #17044 from PowerDNS/dependabot/pip/meson/requests-2.33.0
Pieter Lexis [Thu, 9 Apr 2026 15:34:36 +0000 (17:34 +0200)] 
Merge pull request #17044 from PowerDNS/dependabot/pip/meson/requests-2.33.0

build(deps): bump requests from 2.32.4 to 2.33.0 in /meson

2 weeks agoMerge pull request #17046 from PowerDNS/dependabot/pip/regression-tests.api/requests...
Pieter Lexis [Thu, 9 Apr 2026 15:34:08 +0000 (17:34 +0200)] 
Merge pull request #17046 from PowerDNS/dependabot/pip/regression-tests.api/requests-2.33.0

build(deps): bump requests from 2.32.4 to 2.33.0 in /regression-tests.api

2 weeks agoMerge pull request #17130 from miodvallat/dynlistentome
Miod Vallat [Thu, 9 Apr 2026 15:09:35 +0000 (17:09 +0200)] 
Merge pull request #17130 from miodvallat/dynlistentome

auth: some pdns_control love

2 weeks agoMerge pull request #17129 from rgacogne/ddist-coverity-cid-502893
Remi Gacogne [Thu, 9 Apr 2026 15:05:03 +0000 (17:05 +0200)] 
Merge pull request #17129 from rgacogne/ddist-coverity-cid-502893

dnsdist: Fix a warning from Coverity about unintentional copy

2 weeks agoMerge pull request #17128 from omoerbeek/rec-coverity-lua
Otto Moerbeek [Thu, 9 Apr 2026 14:37:46 +0000 (16:37 +0200)] 
Merge pull request #17128 from omoerbeek/rec-coverity-lua

rec: minor optimization from Coverity

2 weeks agoGive some details about control socket setup and access control. 17130/head
Miod Vallat [Thu, 9 Apr 2026 14:34:52 +0000 (16:34 +0200)] 
Give some details about control socket setup and access control.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 weeks agorec: minor optimization from Coverity 17128/head
Otto Moerbeek [Thu, 9 Apr 2026 13:24:51 +0000 (15:24 +0200)] 
rec: minor optimization from Coverity

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 weeks agodnsdist: Fix a warning from Coverity about unintentional copy 17129/head
Remi Gacogne [Thu, 9 Apr 2026 13:09:55 +0000 (15:09 +0200)] 
dnsdist: Fix a warning from Coverity about unintentional copy

It is intentional, so make it clear.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 weeks agodnsdist: Apply documentation suggestions from Pieter (thanks!) 17124/head
Remi Gacogne [Thu, 9 Apr 2026 13:03:35 +0000 (15:03 +0200)] 
dnsdist: Apply documentation suggestions from Pieter (thanks!)

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 weeks agoMerge pull request #17127 from kpfleming/complete-rename-swagger-to-openapi
Miod Vallat [Thu, 9 Apr 2026 12:59:06 +0000 (14:59 +0200)] 
Merge pull request #17127 from kpfleming/complete-rename-swagger-to-openapi

Complete the transition from Swagger to OpenAPI

2 weeks agoMerge pull request #17125 from pieterlexis/dnsdist-padding-ecs
Pieter Lexis [Thu, 9 Apr 2026 11:41:06 +0000 (13:41 +0200)] 
Merge pull request #17125 from pieterlexis/dnsdist-padding-ecs

feat(dnsdist): Test for Frontend padding and backend ECS

2 weeks agoComplete the transition from Swagger to OpenAPI 17127/head
Kevin P. Fleming [Thu, 9 Apr 2026 11:28:49 +0000 (07:28 -0400)] 
Complete the transition from Swagger to OpenAPI

Remove one remaining reference to Swagger in the documentation, and
rename the API schema file to use 'openapi' instead of
'swagger'. These are all internal (build system and other) changes and
should have no effect on users.

Signed-off-by: Kevin P. Fleming <kevin@km6g.us>
2 weeks agoAdd a test with trailing hex digits for createfoward 1-2-3-4. 17126/head
Miod Vallat [Thu, 9 Apr 2026 10:11:37 +0000 (12:11 +0200)] 
Add a test with trailing hex digits for createfoward 1-2-3-4.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 weeks agoReject trailing hex digits in createforward 1-2-3-4 format.
Miod Vallat [Thu, 9 Apr 2026 10:10:55 +0000 (12:10 +0200)] 
Reject trailing hex digits in createforward 1-2-3-4 format.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 weeks agofeat(dnsdist): Test for Frontend padding and backend ECS 17125/head
Pieter Lexis [Thu, 9 Apr 2026 09:21:57 +0000 (11:21 +0200)] 
feat(dnsdist): Test for Frontend padding and backend ECS

2 weeks agoMake more use of all-zeros strings. NFC
Miod Vallat [Thu, 9 Apr 2026 09:57:53 +0000 (11:57 +0200)] 
Make more use of all-zeros strings. NFC

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 weeks agoMerge pull request #17123 from miodvallat/backtick
Miod Vallat [Thu, 9 Apr 2026 06:25:42 +0000 (08:25 +0200)] 
Merge pull request #17123 from miodvallat/backtick

fix markdown error

2 weeks agoGive more details about what happens if split-domain setting is changed.
Miod Vallat [Thu, 9 Apr 2026 06:12:09 +0000 (08:12 +0200)] 
Give more details about what happens if split-domain setting is changed.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 weeks agoRemove spurious backticks. 17123/head
Miod Vallat [Thu, 9 Apr 2026 05:50:46 +0000 (07:50 +0200)] 
Remove spurious backticks.

Closes: #17111
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 weeks agodnsdist: Refactor access to DNS headers from Lua
Remi Gacogne [Wed, 8 Apr 2026 13:58:37 +0000 (15:58 +0200)] 
dnsdist: Refactor access to DNS headers from Lua

The existing interface is error-prone: it provides a pointer to
a buffer that might get invalidated if the user keeps it around
too long. The new interface makes it clear when the modification
is actually performed, and there is no dangling pointer.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 weeks agoMerge pull request #17120 from rgacogne/ddist-coverity-20260408
Remi Gacogne [Wed, 8 Apr 2026 11:43:09 +0000 (13:43 +0200)] 
Merge pull request #17120 from rgacogne/ddist-coverity-20260408

dnsdist: Fix some warnings reported by Coverity

2 weeks agodnsdist: Fix some warnings reported by Coverity 17120/head
Remi Gacogne [Wed, 8 Apr 2026 10:33:38 +0000 (12:33 +0200)] 
dnsdist: Fix some warnings reported by Coverity

Being more consistent when moving `RemoteLogActionConfiguration` objects.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 weeks agoMerge pull request #17081 from rgacogne/ddist-dont-keep-parsed-edns-options-around
Remi Gacogne [Wed, 8 Apr 2026 09:52:10 +0000 (11:52 +0200)] 
Merge pull request #17081 from rgacogne/ddist-dont-keep-parsed-edns-options-around

dnsdist: Do not keep the parsed EDNS options around

2 weeks agoMerge pull request #17058 from rgacogne/ddist-move-dnsname-response-ring
Remi Gacogne [Wed, 8 Apr 2026 09:04:24 +0000 (11:04 +0200)] 
Merge pull request #17058 from rgacogne/ddist-move-dnsname-response-ring

dnsdist: Move the existing DNSName into the response rings

2 weeks agobuild(deps): bump requests in /regression-tests.api 17046/head
dependabot[bot] [Wed, 8 Apr 2026 09:00:50 +0000 (09:00 +0000)] 
build(deps): bump requests in /regression-tests.api

Bumps [requests](https://github.com/psf/requests) from 2.32.4 to 2.33.0.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.32.4...v2.33.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-version: 2.33.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2 weeks agobuild(deps): bump requests from 2.32.4 to 2.33.0 in /meson 17044/head
dependabot[bot] [Wed, 8 Apr 2026 09:00:13 +0000 (09:00 +0000)] 
build(deps): bump requests from 2.32.4 to 2.33.0 in /meson

Bumps [requests](https://github.com/psf/requests) from 2.32.4 to 2.33.0.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.32.4...v2.33.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-version: 2.33.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2 weeks agoMerge pull request #17115 from pieterlexis/dnsdist-yw-202-padding
Pieter Lexis [Wed, 8 Apr 2026 08:58:45 +0000 (10:58 +0200)] 
Merge pull request #17115 from pieterlexis/dnsdist-yw-202-padding

dnsdist: Actually pad responses

2 weeks agoMerge pull request #17119 from pieterlexis/update-py-deps
Pieter Lexis [Wed, 8 Apr 2026 08:58:22 +0000 (10:58 +0200)] 
Merge pull request #17119 from pieterlexis/update-py-deps

chore: Update all python dependencies

2 weeks agodnsdist: Pass copies of EDNS options to Lua, views are error-prone 17081/head
Remi Gacogne [Thu, 2 Apr 2026 10:14:09 +0000 (12:14 +0200)] 
dnsdist: Pass copies of EDNS options to Lua, views are error-prone

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 weeks agodnsdist: Do not keep the parsed EDNS options around
Remi Gacogne [Tue, 31 Mar 2026 14:12:09 +0000 (16:12 +0200)] 
dnsdist: Do not keep the parsed EDNS options around

The idea to keep the EDNS options around to avoid parsing them
a second time was a nice one, but invalidation is error-prone and
this is rarely useful in practice.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 weeks agochore: Update all python dependencies 17119/head
Pieter Lexis [Wed, 8 Apr 2026 08:05:50 +0000 (10:05 +0200)] 
chore: Update all python dependencies

2 weeks agoMerge pull request #17117 from ronhombre/fix/cpq-use-after-move-doh3
Remi Gacogne [Wed, 8 Apr 2026 07:44:12 +0000 (09:44 +0200)] 
Merge pull request #17117 from ronhombre/fix/cpq-use-after-move-doh3

Hardened DoH3 internal error handling for cpq

2 weeks agochore(dnsdist): Add unit tests for addEDNSPadding 17115/head
Pieter Lexis [Tue, 7 Apr 2026 14:32:11 +0000 (16:32 +0200)] 
chore(dnsdist): Add unit tests for addEDNSPadding

2 weeks agoMerge pull request #17116 from pieterlexis/dnsdist-remove-debug
Pieter Lexis [Wed, 8 Apr 2026 07:09:53 +0000 (09:09 +0200)] 
Merge pull request #17116 from pieterlexis/dnsdist-remove-debug

chore(dnsdist): clean up troubleshooting code

2 weeks agoPlug protobuf logging at a higher level, to get more packets. 17014/head
Miod Vallat [Fri, 20 Mar 2026 10:28:16 +0000 (11:28 +0100)] 
Plug protobuf logging at a higher level, to get more packets.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 weeks agoauth: basic protobuf emission including test
Peter van Dijk [Fri, 20 Mar 2026 07:23:12 +0000 (08:23 +0100)] 
auth: basic protobuf emission including test

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 weeks agoHardened DoH3 internal error handling for cpq 17117/head
Ron Lauren Hombre [Wed, 8 Apr 2026 02:21:02 +0000 (10:21 +0800)] 
Hardened DoH3 internal error handling for cpq

Added a check for cpq before releasing DU to handle exceptional cases.

Signed-off-by: Ron Lauren Hombre <118486316+ronhombre@users.noreply.github.com>
3 weeks agofix(dnsdist): allow adding empty options in addOrReplaceEDNSOption
Pieter Lexis [Tue, 7 Apr 2026 14:31:34 +0000 (16:31 +0200)] 
fix(dnsdist): allow adding empty options in addOrReplaceEDNSOption

3 weeks agofix(dnsdist): actually pad responses when requested
Pieter Lexis [Tue, 7 Apr 2026 13:21:00 +0000 (15:21 +0200)] 
fix(dnsdist): actually pad responses when requested

3 weeks agofeat(dnsdist): test self-answered, padded DOH
Pieter Lexis [Tue, 7 Apr 2026 12:16:45 +0000 (14:16 +0200)] 
feat(dnsdist): test self-answered, padded DOH

3 weeks agofix(dnsdist): do not let dnspython pad responses
Pieter Lexis [Tue, 7 Apr 2026 12:15:28 +0000 (14:15 +0200)] 
fix(dnsdist): do not let dnspython pad responses

3 weeks agochore(dnsdist): clean up troubleshooting code 17116/head
Pieter Lexis [Tue, 7 Apr 2026 15:26:37 +0000 (17:26 +0200)] 
chore(dnsdist): clean up troubleshooting code

3 weeks agoMerge pull request #17114 from ronhombre/fix/cpq-use-after-move
Remi Gacogne [Tue, 7 Apr 2026 15:12:33 +0000 (17:12 +0200)] 
Merge pull request #17114 from ronhombre/fix/cpq-use-after-move

Hardened DoQ internal error handling for cpq

3 weeks agoMerge pull request #17110 from ronhombre/fix/give-tcp-thread-to-doq-and-doh3
Remi Gacogne [Tue, 7 Apr 2026 15:12:23 +0000 (17:12 +0200)] 
Merge pull request #17110 from ronhombre/fix/give-tcp-thread-to-doq-and-doh3

Give TCP thread as default for definition USE_SINGLE_ACCEPTOR_THREAD

3 weeks agoHardened DoQ internal error handling for cpq 17114/head
Ron Lauren Hombre [Tue, 7 Apr 2026 14:04:19 +0000 (22:04 +0800)] 
Hardened DoQ internal error handling for cpq

Added a check for cpq before releasing DU to handle exceptional cases.

Signed-off-by: Ron Lauren Hombre <118486316+ronhombre@users.noreply.github.com>
3 weeks agoMerge branch 'PowerDNS:master' into fix/give-tcp-thread-to-doq-and-doh3 17110/head
Ron Lauren Hombre [Tue, 7 Apr 2026 13:57:11 +0000 (21:57 +0800)] 
Merge branch 'PowerDNS:master' into fix/give-tcp-thread-to-doq-and-doh3

3 weeks agoMerge pull request #17112 from jsoref/check-spelling-0.0.26
Remi Gacogne [Tue, 7 Apr 2026 13:53:56 +0000 (15:53 +0200)] 
Merge pull request #17112 from jsoref/check-spelling-0.0.26

Upgrade check-spelling to v0.0.26

3 weeks agoSimplify TCP client thread initialization
Ron Lauren Hombre [Tue, 7 Apr 2026 13:48:26 +0000 (21:48 +0800)] 
Simplify TCP client thread initialization

Removed conditional TCP client thread creation and make them the default for definition USE_SINGLE_ACCEPTOR_THREAD

Signed-off-by: Ron Lauren Hombre <118486316+ronhombre@users.noreply.github.com>
3 weeks agodnsdist: Document that limits apply to QUIC connections as well 17208/head
Remi Gacogne [Tue, 24 Mar 2026 10:24:50 +0000 (11:24 +0100)] 
dnsdist: Document that limits apply to QUIC connections as well

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
3 weeks agodnsdist: Apply TCP connections limits to DoQ/DoH3 connections
Remi Gacogne [Mon, 16 Mar 2026 15:47:50 +0000 (16:47 +0100)] 
dnsdist: Apply TCP connections limits to DoQ/DoH3 connections

After all they are consuming memory and the TLS cost is similar.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
3 weeks agodnsdist: Add a unit test for the DNSCrypt divide by zero case
Remi Gacogne [Tue, 7 Apr 2026 10:30:18 +0000 (12:30 +0200)] 
dnsdist: Add a unit test for the DNSCrypt divide by zero case

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
3 weeks agoMerge pull request #17070 from rgacogne/ddist-ywh-102
Remi Gacogne [Tue, 7 Apr 2026 07:29:29 +0000 (09:29 +0200)] 
Merge pull request #17070 from rgacogne/ddist-ywh-102

dnsdist: Fix use-after-free in EDNS options handling

3 weeks agoUpgrade check-spelling to v0.0.26 17112/head
Josh Soref [Tue, 7 Apr 2026 00:57:26 +0000 (20:57 -0400)] 
Upgrade check-spelling to v0.0.26

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 weeks agospelling: whether or not
Josh Soref [Tue, 7 Apr 2026 01:08:44 +0000 (21:08 -0400)] 
spelling: whether or not

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 weeks agospelling: see
Josh Soref [Tue, 7 Apr 2026 01:18:43 +0000 (21:18 -0400)] 
spelling: see

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 weeks agospelling: please
Josh Soref [Tue, 7 Apr 2026 01:07:52 +0000 (21:07 -0400)] 
spelling: please

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 weeks agospelling: lowercase
Josh Soref [Tue, 7 Apr 2026 01:05:46 +0000 (21:05 -0400)] 
spelling: lowercase

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 weeks agospelling: configuration:
Josh Soref [Tue, 7 Apr 2026 01:16:20 +0000 (21:16 -0400)] 
spelling: configuration:

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 weeks agospelling: better or worse
Josh Soref [Tue, 7 Apr 2026 01:09:13 +0000 (21:09 -0400)] 
spelling: better or worse

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 weeks agospelling: be
Josh Soref [Tue, 7 Apr 2026 01:04:24 +0000 (21:04 -0400)] 
spelling: be

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 weeks agospelling: auth-zone:
Josh Soref [Tue, 7 Apr 2026 01:10:24 +0000 (21:10 -0400)] 
spelling: auth-zone:

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 weeks agospelling: also
Josh Soref [Tue, 7 Apr 2026 01:07:42 +0000 (21:07 -0400)] 
spelling: also

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 weeks agospelling: a
Josh Soref [Tue, 7 Apr 2026 01:04:41 +0000 (21:04 -0400)] 
spelling: a

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 weeks agoUse internet archive link
Josh Soref [Tue, 7 Apr 2026 01:18:28 +0000 (21:18 -0400)] 
Use internet archive link

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 weeks agoGive TCP thread for DoQ and DoH3
Ron Lauren Hombre [Sun, 5 Apr 2026 17:42:22 +0000 (01:42 +0800)] 
Give TCP thread for DoQ and DoH3

On OpenWRT, the dnsdist implementation isn't normally built with DoQ and DoH3 due to the lack of quiche support. However, when it is enabled and queried through QUIC, dnsdist sees that the connection we have is too big and goes out of its way to try to use TCP to make that request upstream when using PROXYv2.

This fixes that by checking if DoQ or DoH3 are enabled so that in certain configurations with only DoQ or DoH3 enabled, a TCP thread is given to the internal client.

Signed-off-by: Ron Lauren Hombre <118486316+ronhombre@users.noreply.github.com>