]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
2 months agorec: Actually test the deserialized cache content in the unit test 16993/head
Remi Gacogne [Tue, 17 Mar 2026 11:32:27 +0000 (12:32 +0100)] 
rec: Actually test the deserialized cache content in the unit test

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agorec: Fix serialization of cached authority records
Remi Gacogne [Tue, 17 Mar 2026 11:31:26 +0000 (12:31 +0100)] 
rec: Fix serialization of cached authority records

The type needs to be present in the protobuf output before
the content, otherwise we cannot decode the content properly
when deserializing.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agoMerge pull request #16977 from miodvallat/wallet-rrtype auth-5.1.0-alpha1
Miod Vallat [Fri, 13 Mar 2026 15:40:37 +0000 (16:40 +0100)] 
Merge pull request #16977 from miodvallat/wallet-rrtype

auth: Add support to the new WALLET RRType

2 months agoMerge pull request #16477 from pieterlexis/ci-python-black
Pieter Lexis [Fri, 13 Mar 2026 15:38:05 +0000 (16:38 +0100)] 
Merge pull request #16477 from pieterlexis/ci-python-black

ci: Force python formatting with ruff

2 months agochore: reformat all Python files with ruff 16477/head
Pieter Lexis [Fri, 13 Mar 2026 14:06:43 +0000 (15:06 +0100)] 
chore: reformat all Python files with ruff

2 months agoci: Force python formatting with ruff
Pieter Lexis [Wed, 12 Nov 2025 12:46:51 +0000 (13:46 +0100)] 
ci: Force python formatting with ruff

2 months agoMerge pull request #16979 from rgacogne/ddist-fix-downstream-timeout-msg-verbosity
Remi Gacogne [Fri, 13 Mar 2026 12:30:19 +0000 (13:30 +0100)] 
Merge pull request #16979 from rgacogne/ddist-fix-downstream-timeout-msg-verbosity

dnsdist: Downstream timeouts should be logged at verbose level

2 months agoMerge pull request #16980 from rgacogne/ddist-update-quiche-0.26.1
Remi Gacogne [Fri, 13 Mar 2026 12:29:57 +0000 (13:29 +0100)] 
Merge pull request #16980 from rgacogne/ddist-update-quiche-0.26.1

dnsdist: Update Quiche to 0.26.1

2 months agodnsdist: Downstream timeouts should be logged at verbose level 16979/head
Remi Gacogne [Fri, 13 Mar 2026 08:56:49 +0000 (09:56 +0100)] 
dnsdist: Downstream timeouts should be logged at verbose level

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agoMerge pull request #16973 from pieterlexis/dnsdist-ot-config
Pieter Lexis [Fri, 13 Mar 2026 08:48:18 +0000 (09:48 +0100)] 
Merge pull request #16973 from pieterlexis/dnsdist-ot-config

feat(dnsdist): Change OT Trace YAML config to a struct

2 months agoMerge pull request #16741 from pieterlexis/dnsdist-ot-serverid-instance
Pieter Lexis [Fri, 13 Mar 2026 08:48:07 +0000 (09:48 +0100)] 
Merge pull request #16741 from pieterlexis/dnsdist-ot-serverid-instance

feat(dnsdist): Add instance field to OT Trace messages

2 months agoMerge pull request #16951 from pieterlexis/decryptus/master
Pieter Lexis [Fri, 13 Mar 2026 08:20:35 +0000 (09:20 +0100)] 
Merge pull request #16951 from pieterlexis/decryptus/master

auth: SortA API RRs by content if name and type are equal

2 months agofeat(dnsdist): Change OT Trace YAML config to a struct 16973/head
Pieter Lexis [Thu, 12 Mar 2026 19:34:09 +0000 (20:34 +0100)] 
feat(dnsdist): Change OT Trace YAML config to a struct

This'll allow us to add more trace feature configuration in the future
and it mirrors the `structured_logging` config.

2 months agoMerge pull request #16974 from omoerbeek/rec-web-docs
Otto Moerbeek [Thu, 12 Mar 2026 15:49:06 +0000 (16:49 +0100)] 
Merge pull request #16974 from omoerbeek/rec-web-docs

docs: only expose web server on a as-needed basis

2 months agoDocument WALLET record type. 16977/head
Miod Vallat [Thu, 12 Mar 2026 14:15:37 +0000 (15:15 +0100)] 
Document WALLET record type.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agoAdd support to the new WALLET RRType.
Renato Alencar [Thu, 12 Mar 2026 10:03:59 +0000 (11:03 +0100)] 
Add support to the new WALLET RRType.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agodnsdist: Update Quiche to 0.26.1 16980/head
Remi Gacogne [Thu, 12 Mar 2026 14:54:34 +0000 (15:54 +0100)] 
dnsdist: Update Quiche to 0.26.1

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agoMake this meson-build compatible
Miod Vallat [Thu, 12 Mar 2026 13:45:14 +0000 (14:45 +0100)] 
Make this meson-build compatible

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agoMerge pull request #16975 from omoerbeek/rel-workflows-update
Otto Moerbeek [Thu, 12 Mar 2026 13:49:25 +0000 (14:49 +0100)] 
Merge pull request #16975 from omoerbeek/rel-workflows-update

GH workflows: Update to current release branch status

2 months agoAlso include auth and dnsdist 16974/head
Otto Moerbeek [Thu, 12 Mar 2026 13:47:50 +0000 (14:47 +0100)] 
Also include auth and dnsdist

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoUpdate to current release branch status 16975/head
Otto Moerbeek [Thu, 12 Mar 2026 13:13:27 +0000 (14:13 +0100)] 
Update to current release branch status

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoTypo
Otto Moerbeek [Thu, 12 Mar 2026 12:56:55 +0000 (13:56 +0100)] 
Typo

Co-authored-by: Miod Vallat <miod.vallat@powerdns.com>
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoSome advice: only expose web server on a as-needed basis
Otto Moerbeek [Thu, 12 Mar 2026 12:31:53 +0000 (13:31 +0100)] 
Some advice: only expose web server on a as-needed basis

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoMerge pull request #16966 from rgacogne/ddist210-beta2
Remi Gacogne [Thu, 12 Mar 2026 09:24:36 +0000 (10:24 +0100)] 
Merge pull request #16966 from rgacogne/ddist210-beta2

dnsdist: Update ChangeLog and security polling zone for 2.1.0-beta2

2 months agoMerge pull request #16944 from pieterlexis/dev-tasks
Pieter Lexis [Thu, 12 Mar 2026 09:12:19 +0000 (10:12 +0100)] 
Merge pull request #16944 from pieterlexis/dev-tasks

chore: Add invoke tasks to configure with meson for development

2 months agoMerge pull request #16956 from miodvallat/neper
Miod Vallat [Thu, 12 Mar 2026 08:50:00 +0000 (09:50 +0100)] 
Merge pull request #16956 from miodvallat/neper

Remove error-prone logger interfaces

2 months agoMerge pull request #16965 from rgacogne/auth-pp-buffer-size
Remi Gacogne [Thu, 12 Mar 2026 08:49:06 +0000 (09:49 +0100)] 
Merge pull request #16965 from rgacogne/auth-pp-buffer-size

auth: Use the proper size after processing a proxy protocol payload

2 months agoMerge pull request #14057 from mind04/auth-catalog-cleanup
Miod Vallat [Wed, 11 Mar 2026 15:51:36 +0000 (16:51 +0100)] 
Merge pull request #14057 from mind04/auth-catalog-cleanup

Auth: fix a crash and some cleanup in the auth-catalogzone.cc

2 months agoBe less scary in logs 16956/head
Miod Vallat [Wed, 11 Mar 2026 14:35:52 +0000 (15:35 +0100)] 
Be less scary in logs

Co-authored-by: Remi Gacogne <github@coredump.fr>
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agoauth: improve changed catalog detection 14057/head
Kees Monshouwer [Fri, 12 Apr 2024 08:50:16 +0000 (10:50 +0200)] 
auth: improve changed catalog detection

Signed-off-by: Kees Monshouwer <mind04@monshouwer.org>
2 months agoauth: don't crash when a catalog SOA is invalid
Kees Monshouwer [Tue, 9 Apr 2024 23:09:57 +0000 (01:09 +0200)] 
auth: don't crash when a catalog SOA is invalid

Signed-off-by: Kees Monshouwer <mind04@monshouwer.org>
2 months agoauth: cleanup auth-catalogzone.cc a bit
Kees Monshouwer [Tue, 9 Apr 2024 20:35:24 +0000 (22:35 +0200)] 
auth: cleanup auth-catalogzone.cc a bit

Signed-off-by: Kees Monshouwer <mind04@monshouwer.org>
2 months agochore(auth): add task to configure auth for dev 16944/head
Pieter Lexis [Wed, 4 Mar 2026 13:33:40 +0000 (14:33 +0100)] 
chore(auth): add task to configure auth for dev

2 months agochore(rec): add task to configure recursor for dev
Pieter Lexis [Wed, 4 Mar 2026 13:23:56 +0000 (14:23 +0100)] 
chore(rec): add task to configure recursor for dev

2 months agoRemove unused "verbosity" part of the Logger.
Miod Vallat [Wed, 11 Mar 2026 06:45:09 +0000 (07:45 +0100)] 
Remove unused "verbosity" part of the Logger.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agoRemove no longer useful Logger::enabled().
Miod Vallat [Wed, 11 Mar 2026 06:39:31 +0000 (07:39 +0100)] 
Remove no longer useful Logger::enabled().

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agoRemove no longer used Logr::Absent.
Miod Vallat [Wed, 11 Mar 2026 06:38:46 +0000 (07:38 +0100)] 
Remove no longer used Logr::Absent.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agochore(dndist): add task to configure dnsdist for dev
Pieter Lexis [Wed, 4 Mar 2026 12:53:09 +0000 (13:53 +0100)] 
chore(dndist): add task to configure dnsdist for dev

2 months agoMerge pull request #16968 from rgacogne/ddist-fix-compression-dname-srv
Remi Gacogne [Tue, 10 Mar 2026 15:07:56 +0000 (16:07 +0100)] 
Merge pull request #16968 from rgacogne/ddist-fix-compression-dname-srv

dnsdist: Fix the use of compression for SRV and DNAME targets

2 months agodnsdist: Fix the use of compression for SRV and DNAME targets 16968/head
Remi Gacogne [Tue, 10 Mar 2026 14:12:36 +0000 (15:12 +0100)] 
dnsdist: Fix the use of compression for SRV and DNAME targets

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agoMerge pull request #16967 from rgacogne/ddist-compress-when-changing-name
Remi Gacogne [Tue, 10 Mar 2026 14:04:33 +0000 (15:04 +0100)] 
Merge pull request #16967 from rgacogne/ddist-compress-when-changing-name

dnsdist: Compress DNS names when changing the name in a packet

2 months agodnsdist: Compress DNS names when changing the name in a packet 16967/head
Remi Gacogne [Tue, 10 Mar 2026 12:01:48 +0000 (13:01 +0100)] 
dnsdist: Compress DNS names when changing the name in a packet

Otherwise the resulting packet might be bigger than needed.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agodnsdist: Update ChangeLog and security polling zone for 2.1.0-beta2 16966/head
Remi Gacogne [Tue, 10 Mar 2026 11:47:01 +0000 (12:47 +0100)] 
dnsdist: Update ChangeLog and security polling zone for 2.1.0-beta2

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agoauth: Use the proper size after processing a proxy protocol payload 16965/head
Remi Gacogne [Tue, 10 Mar 2026 09:48:08 +0000 (10:48 +0100)] 
auth: Use the proper size after processing a proxy protocol payload

Reported in #YWH-PGM6095-116. While it is a bug, I don't believe it
is a security issue because I'm not aware of any implementation
actually releasing the memory unless `shrink_to_fit()` is called,
and even then it's not always the case. The content of the memory
contains part of the existing query and it is still owned by this
buffer so there is no information disclosure.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
2 months agoMerge pull request #16946 from omoerbeek/rec-rpz-defpol-test
Otto Moerbeek [Tue, 10 Mar 2026 06:17:20 +0000 (07:17 +0100)] 
Merge pull request #16946 from omoerbeek/rec-rpz-defpol-test

rec: add a regresion test for defpol handling

2 months agoMerge pull request #16955 from pieterlexis/lua-headers
Pieter Lexis [Mon, 9 Mar 2026 13:02:30 +0000 (14:02 +0100)] 
Merge pull request #16955 from pieterlexis/lua-headers

auth: Allow adding HTTP Headers in LUA Record ifurlup

2 months agofix(auth): Properly sort API RRSets by content 16951/head
Pieter Lexis [Thu, 5 Mar 2026 13:48:53 +0000 (14:48 +0100)] 
fix(auth): Properly sort API RRSets by content

For content, we need to lexographically sort. I would have preferred
canonical ordering of the content. But as this point we have strings we
don't need to roundtrip through the parser.

This also adds an RRSet ordering test.

2 months agoSort by content if name and type are equal
Adrien Delle Cave [Mon, 3 Jan 2022 11:10:12 +0000 (12:10 +0100)] 
Sort by content if name and type are equal

Signed-off-by: Adrien Delle Cave <adrien.delle.cave@commandersact.com>
2 months agoMerge pull request #16958 from miodvallat/cover_your_log
Miod Vallat [Mon, 9 Mar 2026 12:31:48 +0000 (13:31 +0100)] 
Merge pull request #16958 from miodvallat/cover_your_log

auth: coverity-induced fixes

2 months agoThere is no guarantee that the slog initializer is a compile-time constant. 16958/head
Miod Vallat [Mon, 9 Mar 2026 08:51:42 +0000 (09:51 +0100)] 
There is no guarantee that the slog initializer is a compile-time constant.

Therefore we can not safely assume it is safe to check its value in other
global constructors.

Reported by Coverity.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agoFix various inefficiencies pointed by Coverity.
Miod Vallat [Mon, 9 Mar 2026 08:48:15 +0000 (09:48 +0100)] 
Fix various inefficiencies pointed by Coverity.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
2 months agoMerge pull request #16959 from omoerbeek/prep-rec-5.4.0
Otto Moerbeek [Mon, 9 Mar 2026 10:48:43 +0000 (11:48 +0100)] 
Merge pull request #16959 from omoerbeek/prep-rec-5.4.0

rec: prep for rec-5.4.0 final release

2 months agorec: prep for rec-5.4.0 final release 16959/head
Otto Moerbeek [Thu, 5 Mar 2026 08:46:41 +0000 (09:46 +0100)] 
rec: prep for rec-5.4.0 final release

Code equal to rc1, one missed PR in changelog of rc1

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
2 months agoMerge pull request #16957 from jsoref/codeql-set-first-query-false-for-next-query
Miod Vallat [Mon, 9 Mar 2026 05:55:15 +0000 (06:55 +0100)] 
Merge pull request #16957 from jsoref/codeql-set-first-query-false-for-next-query

Set `firstQuery` to false for next query

2 months agoSet firstQuery to false for next query 16957/head
Josh Soref [Sun, 8 Mar 2026 00:52:07 +0000 (19:52 -0500)] 
Set firstQuery to false for next query

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2 months agoMerge pull request #13360 from stasic/patch-5
Miod Vallat [Fri, 6 Mar 2026 16:30:37 +0000 (17:30 +0100)] 
Merge pull request #13360 from stasic/patch-5

Update alias.rst

3 months agofeat(dnsdist): Add instance field to OT Trace messages 16741/head
Pieter Lexis [Tue, 20 Jan 2026 09:28:16 +0000 (10:28 +0100)] 
feat(dnsdist): Add instance field to OT Trace messages

And drop hostname as a result.

3 months agodocs(auth): Add suggestions from @miodvallat 13360/head
Pieter Lexis [Fri, 6 Mar 2026 11:58:01 +0000 (12:58 +0100)] 
docs(auth): Add suggestions from @miodvallat

3 months agodocs(auth): address review comments
Pieter Lexis [Fri, 6 Mar 2026 11:27:47 +0000 (12:27 +0100)] 
docs(auth): address review comments

3 months agoUpdate alias.rst
Arsen Stasic [Thu, 12 Oct 2023 06:52:23 +0000 (06:52 +0000)] 
Update alias.rst

If a zone is operated with different nameserver software than PowerDNS and ALIAS is used it could result in an out-of-sync sencondary.

Signed-off-by: Arsen Stasic <arsen.stasic@gmail.com>
3 months agoRemove logging interfaces which lack a priority.
Miod Vallat [Fri, 6 Mar 2026 10:05:30 +0000 (11:05 +0100)] 
Remove logging interfaces which lack a priority.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
3 months agoMake sure not to use logging interfaces not taking priority by mistake.
Miod Vallat [Fri, 6 Mar 2026 10:23:19 +0000 (11:23 +0100)] 
Make sure not to use logging interfaces not taking priority by mistake.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
3 months agofeat(auth): Allow HTTP Headers in ifurlup requests 16955/head
Pieter Lexis [Fri, 6 Mar 2026 10:58:09 +0000 (11:58 +0100)] 
feat(auth): Allow HTTP Headers in ifurlup requests

Closes: #8295
Closes: #11610
3 months agofeat(auth): Allow arrays in LUA Record config
Pieter Lexis [Fri, 6 Mar 2026 10:57:39 +0000 (11:57 +0100)] 
feat(auth): Allow arrays in LUA Record config

3 months agofeat: Allow setting HTTP Headers in MiniCurl
Pieter Lexis [Fri, 6 Mar 2026 10:53:58 +0000 (11:53 +0100)] 
feat: Allow setting HTTP Headers in MiniCurl

3 months agoMerge pull request #16954 from miodvallat/slowapi
Miod Vallat [Fri, 6 Mar 2026 10:19:39 +0000 (11:19 +0100)] 
Merge pull request #16954 from miodvallat/slowapi

Remove dead code

3 months agoMerge pull request #16693 from miodvallat/log_at_first_sight
Miod Vallat [Fri, 6 Mar 2026 10:13:19 +0000 (11:13 +0100)] 
Merge pull request #16693 from miodvallat/log_at_first_sight

auth: structured logging

3 months agoRemove dead code. 16954/head
Miod Vallat [Fri, 6 Mar 2026 09:42:08 +0000 (10:42 +0100)] 
Remove dead code.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
3 months agoMerge pull request #16953 from jsoref/codeql-remove-duplicate-variable-assignment
Miod Vallat [Fri, 6 Mar 2026 06:14:09 +0000 (07:14 +0100)] 
Merge pull request #16953 from jsoref/codeql-remove-duplicate-variable-assignment

Remove double assignment

3 months agoMerge pull request #16952 from jsoref/codeql-remove-stray-udp-query
Otto Moerbeek [Thu, 5 Mar 2026 19:40:31 +0000 (20:40 +0100)] 
Merge pull request #16952 from jsoref/codeql-remove-stray-udp-query

Remove unnecessary udp query

3 months agoRemove double assignment 16953/head
Josh Soref [Thu, 5 Mar 2026 17:35:43 +0000 (12:35 -0500)] 
Remove double assignment

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 months agoRemove unnecessary udp query 16952/head
Josh Soref [Thu, 5 Mar 2026 17:30:26 +0000 (12:30 -0500)] 
Remove unnecessary udp query

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 months agoGive users the ability to enable structured logging in Auth. 16693/head
Miod Vallat [Fri, 27 Feb 2026 14:18:04 +0000 (15:18 +0100)] 
Give users the ability to enable structured logging in Auth.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
3 months agoStructured logging support for the Authoritative server.
Miod Vallat [Mon, 6 Oct 2025 08:56:08 +0000 (10:56 +0200)] 
Structured logging support for the Authoritative server.

Setup a syslog structured logger for pdns-server and pdnsutil,
copied from recursor.

Add structured logging flavour of existing log messages in the
Authoritative server, except in tools (ixfrdist and pdnsutil).

Structured logging is not enabled yet in the server or any of its tools
and can not be enabled yet.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
3 months agoMerge pull request #16598 from jsoref/codeql-remove-unused-variables
Pieter Lexis [Thu, 5 Mar 2026 16:00:12 +0000 (17:00 +0100)] 
Merge pull request #16598 from jsoref/codeql-remove-unused-variables

Codeql remove unused variables

3 months agoMerge pull request #11147 from jsoref/tinydns
Pieter Lexis [Thu, 5 Mar 2026 15:06:02 +0000 (16:06 +0100)] 
Merge pull request #11147 from jsoref/tinydns

doc: clarify tinydns wildcard divergence

3 months agoMerge pull request #16947 from miodvallat/tsigarillo
Miod Vallat [Thu, 5 Mar 2026 14:39:02 +0000 (15:39 +0100)] 
Merge pull request #16947 from miodvallat/tsigarillo

auth: correctly update tsig keys with PostgreSQL

3 months agoMerge pull request #16949 from omoerbeek/rec-clarify-rpz-defpol
Otto Moerbeek [Thu, 5 Mar 2026 14:35:05 +0000 (15:35 +0100)] 
Merge pull request #16949 from omoerbeek/rec-clarify-rpz-defpol

rec: clarify RPZ defpol docs

3 months agoMention gpgsql query change. 16947/head
Miod Vallat [Thu, 5 Mar 2026 13:49:22 +0000 (14:49 +0100)] 
Mention gpgsql query change.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
3 months agoMerge pull request #16950 from miodvallat/both_but_singular
Otto Moerbeek [Thu, 5 Mar 2026 13:39:15 +0000 (14:39 +0100)] 
Merge pull request #16950 from miodvallat/both_but_singular

rec: minor documentation tweak

3 months agoMerge pull request #16948 from pieterlexis/auth-lua-records-positive-weight
Pieter Lexis [Thu, 5 Mar 2026 13:38:38 +0000 (14:38 +0100)] 
Merge pull request #16948 from pieterlexis/auth-lua-records-positive-weight

auth: Ensure LUA record weights are > 0

3 months agoGrammar. 16950/head
Miod Vallat [Thu, 5 Mar 2026 12:55:25 +0000 (13:55 +0100)] 
Grammar.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
3 months agoTake suggestion from Miod 16949/head
Otto Moerbeek [Thu, 5 Mar 2026 12:54:20 +0000 (13:54 +0100)] 
Take suggestion from Miod

Co-authored-by: Miod Vallat <miod.vallat@powerdns.com>
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
3 months agoMerge pull request #16831 from miodvallat/dnsnotupdate
Miod Vallat [Thu, 5 Mar 2026 12:50:41 +0000 (13:50 +0100)] 
Merge pull request #16831 from miodvallat/dnsnotupdate

auth: stricter handing of the Lua DNS update policy

3 months agorec: Add axample for rzpPrimary with defpol=Policy.Custom
Otto Moerbeek [Thu, 5 Mar 2026 12:26:42 +0000 (13:26 +0100)] 
rec: Add axample for rzpPrimary with defpol=Policy.Custom

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
3 months agofix(auth): check LUA record weights are > 0 16948/head
Pieter Lexis [Thu, 5 Mar 2026 10:39:40 +0000 (11:39 +0100)] 
fix(auth): check LUA record weights are > 0

3 months agofeat: add `pdns::checked_conv_nonzero`
Pieter Lexis [Thu, 5 Mar 2026 10:38:21 +0000 (11:38 +0100)] 
feat: add `pdns::checked_conv_nonzero`

This function just calls `pdns::checked_conv` and verifies the result is
not `0`.

This commit also adds some basic tests for
`pdns::checked_conv{,nonzero}`.

3 months agorec: add a regresion test for defpol handling 16946/head
Otto Moerbeek [Thu, 5 Mar 2026 10:31:35 +0000 (11:31 +0100)] 
rec: add a regresion test for defpol handling

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
3 months agoUpdate pgsql set-tsig-key query to handle conflicts.
Miod Vallat [Thu, 5 Mar 2026 10:28:00 +0000 (11:28 +0100)] 
Update pgsql set-tsig-key query to handle conflicts.

This relies upon a feature introduced in PostgreSQL 9.5, 10 years ago.
We can reasonably assume that distributions people use to run
PowerDNS on those days carry at least that version (which is EOL since
five years now).

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
3 months agoClarify comment documenting set-tsig-key limitations.
Miod Vallat [Thu, 5 Mar 2026 10:27:30 +0000 (11:27 +0100)] 
Clarify comment documenting set-tsig-key limitations.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
3 months agoMerge pull request #16942 from omoerbeek/rec-pc-ttl-docs
Otto Moerbeek [Wed, 4 Mar 2026 15:30:34 +0000 (16:30 +0100)] 
Merge pull request #16942 from omoerbeek/rec-pc-ttl-docs

rec docs: fix and improve docs for packetcache.negative_ttl and packetcache.servfail_ttl

3 months agorec docs: fix and improve docs for packetcache.negative_ttl and packetcache.servfail_ttl 16942/head
Otto Moerbeek [Wed, 4 Mar 2026 09:54:19 +0000 (10:54 +0100)] 
rec docs: fix and improve docs for packetcache.negative_ttl and packetcache.servfail_ttl

Currently there is a quoting issue in packetcache.servfail_ttl, making it render badly.
Also remove the ref to 4.0.0, it's *way* too old.

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
3 months agoMerge pull request #16939 from pieterlexis/dnsdist-rcoderatio-16934
Pieter Lexis [Tue, 3 Mar 2026 10:29:08 +0000 (11:29 +0100)] 
Merge pull request #16939 from pieterlexis/dnsdist-rcoderatio-16934

dnsdist: fix AllowedRCodeRatio with Lua config

3 months agofix(dnsdist): Lua config DBR w/ AllowedRCodeRatio 16939/head
Pieter Lexis [Mon, 2 Mar 2026 18:18:25 +0000 (19:18 +0100)] 
fix(dnsdist): Lua config DBR w/ AllowedRCodeRatio

@omoerbeek wrote the fix, I added a test.

Closes: #16934
3 months agoMerge pull request #16936 from omoerbeek/rec-qr0-response
Otto Moerbeek [Mon, 2 Mar 2026 09:52:09 +0000 (10:52 +0100)] 
Merge pull request #16936 from omoerbeek/rec-qr0-response

rec: drop QR=0 responses from auths

3 months agoAdd tests 16936/head
Otto Moerbeek [Thu, 26 Feb 2026 10:43:11 +0000 (11:43 +0100)] 
Add tests

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
3 months agoMerge pull request #16920 from miodvallat/structured_recursion
Miod Vallat [Thu, 26 Feb 2026 14:04:36 +0000 (15:04 +0100)] 
Merge pull request #16920 from miodvallat/structured_recursion

plumbing: pass a Logr::logr_t down AXFRRetriever and TSIGTCPVerifier. NFC yet.

3 months agoPass a Logr::logr_t down AXFRRetriever and TSIGTCPVerifier. NFC yet. 16920/head
Miod Vallat [Fri, 20 Feb 2026 13:26:24 +0000 (14:26 +0100)] 
Pass a Logr::logr_t down AXFRRetriever and TSIGTCPVerifier. NFC yet.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
3 months agoRemove old backward compability cases for broken servers
Otto Moerbeek [Thu, 26 Feb 2026 10:42:27 +0000 (11:42 +0100)] 
Remove old backward compability cases for broken servers

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
3 months agorec: do not treat qr=0 responses lenient
Otto Moerbeek [Thu, 26 Feb 2026 09:06:09 +0000 (10:06 +0100)] 
rec: do not treat qr=0 responses lenient

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>