]>
git.ipfire.org Git - thirdparty/pdns.git/log
Miod Vallat [Thu, 19 Jun 2025 13:30:26 +0000 (15:30 +0200)]
Use faster logic in deleteDomainRecords().
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Miod Vallat [Wed, 18 Jun 2025 12:00:48 +0000 (14:00 +0200)]
Simple test for replaceRRSet ANY operation.
Also exercize the newest pdnsutil syntax while there.
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Miod Vallat [Wed, 18 Jun 2025 09:47:30 +0000 (11:47 +0200)]
Correctly handle QType::ANY in replaceRRSet().
Co-Authored-By: HÃ¥kan Lindqvist <h@qw.se>
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Miod Vallat [Wed, 18 Jun 2025 09:26:49 +0000 (11:26 +0200)]
Rework deleteDomainRecords() interface.
NFC yet, will benefit upcoming commits.
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Otto Moerbeek [Tue, 17 Jun 2025 12:12:40 +0000 (14:12 +0200)]
Merge pull request #15689 from omoerbeek/auth-no-more-instances-vec
auth: stop maintaining vector of ueberbackend instances
Remi Gacogne [Tue, 17 Jun 2025 10:24:59 +0000 (12:24 +0200)]
Merge pull request #15687 from rgacogne/ddist-remove-generated-doc-files
dnsdist: Remove generated YAML documentation files
Otto Moerbeek [Tue, 17 Jun 2025 09:47:11 +0000 (11:47 +0200)]
auth: stop maintaining vector of backend instances
Unused. Fixes #15688
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Remi Gacogne [Tue, 17 Jun 2025 08:48:12 +0000 (10:48 +0200)]
dnsdist: Remove generated YAML documentation files
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Tue, 17 Jun 2025 09:29:58 +0000 (11:29 +0200)]
Merge pull request #15682 from pieterlexis/superfluous-code-block
doc(dnsdist): remove superfluous code block in YAML config
Otto Moerbeek [Tue, 17 Jun 2025 08:52:44 +0000 (10:52 +0200)]
Merge pull request #15685 from omoerbeek/dnsdist-ssl-crypto
meson: Pick -lcrypto up from the spot defined by dep_libcrypto
Remi Gacogne [Tue, 17 Jun 2025 08:41:40 +0000 (10:41 +0200)]
dnsdist: remove superfluous code block in YAML config
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Tue, 17 Jun 2025 08:14:37 +0000 (10:14 +0200)]
Merge pull request #15676 from nokia/restartcnt
dnsdist: add a count to track the number of query restarts
Remi Gacogne [Tue, 17 Jun 2025 08:11:11 +0000 (10:11 +0200)]
Merge pull request #15670 from nokia/policy
dnsdist: add route policy of first ordered then weighted
Otto Moerbeek [Tue, 17 Jun 2025 07:59:29 +0000 (09:59 +0200)]
Pick -lcrypto up from the spot defined by dep_libcrypto
Also avoid a bunch of warning: as compile commands don't take -L:
c++: warning: argument unused during compilation: '-L/usr/local/eboringssl/lib' [-Wunused-command-line -argument]
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Oliver Chen [Tue, 17 Jun 2025 04:00:14 +0000 (04:00 +0000)]
Indentation correction
Oliver Chen [Tue, 17 Jun 2025 03:49:48 +0000 (03:49 +0000)]
Add regression test for the restart counting
Oliver Chen [Tue, 17 Jun 2025 03:01:02 +0000 (03:01 +0000)]
Optimize policy with already sorted servers and add tag testing
Pieter Lexis [Mon, 16 Jun 2025 20:24:58 +0000 (22:24 +0200)]
doc(dnsdist): remove superfluous code block in YAML config
Miod Vallat [Mon, 16 Jun 2025 13:56:45 +0000 (15:56 +0200)]
Merge pull request #15679 from miodvallat/fragmented_sun
Provide an IP_OFFMASK value for systems lacking it
Miod Vallat [Mon, 16 Jun 2025 12:46:27 +0000 (14:46 +0200)]
Merge pull request #15681 from miodvallat/geoipfeetshooting
Lua GeoIPQueryAttribute documentation update
Miod Vallat [Mon, 16 Jun 2025 12:13:59 +0000 (14:13 +0200)]
Fix documentation build warning.
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Miod Vallat [Mon, 16 Jun 2025 12:13:09 +0000 (14:13 +0200)]
Mention that GeoIPQueryAttribute symbolic constants in Lua are v5+.
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Miod Vallat [Mon, 16 Jun 2025 10:58:58 +0000 (12:58 +0200)]
Provide an IP_OFFMASK value for systems lacking it.
Fixes: #8060
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Remi Gacogne [Mon, 16 Jun 2025 07:32:28 +0000 (09:32 +0200)]
Merge pull request #15662 from rgacogne/ddist-apply-yaml-items-early
dnsdist: Apply generic YAML configuration items early
Oliver Chen [Mon, 16 Jun 2025 06:08:12 +0000 (06:08 +0000)]
Change integer type from uint8_t to int in the docs
Miod Vallat [Mon, 16 Jun 2025 06:04:22 +0000 (08:04 +0200)]
Merge pull request #15672 from miodvallat/silencing_the_signing
Stop listing the trusted keys at the end of tests
Otto Moerbeek [Mon, 16 Jun 2025 05:50:46 +0000 (07:50 +0200)]
Merge pull request #15661 from omoerbeek/rec-nta-retrieval
rec: fix negativetrustanchor.server CH TXT query processing (disabled by default)
Oliver Chen [Mon, 16 Jun 2025 00:52:24 +0000 (00:52 +0000)]
dnsdist: add a count to track the number of query restarts
Oliver Chen [Sat, 14 Jun 2025 13:18:58 +0000 (13:18 +0000)]
Address PR review comments
Peter van Dijk [Fri, 13 Jun 2025 21:10:09 +0000 (23:10 +0200)]
Merge pull request #15654 from Habbie/rec-build-amazon2023-and-assorted-nits
rec: amazon2023 build fix + nits
Oliver Chen [Fri, 13 Jun 2025 13:30:11 +0000 (13:30 +0000)]
Make clang-tidy checks happy
Miod Vallat [Fri, 13 Jun 2025 12:44:33 +0000 (14:44 +0200)]
Stop listing the trusted keys at the end of tests.
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
Oliver Chen [Fri, 13 Jun 2025 11:20:48 +0000 (11:20 +0000)]
dnsdist: add route policy of first ordered then weighted
User may require two levels of routing policy to select downstream
servers. First choose the least ordered, then distribute queries
according to weights among the same ordered servers. It also added
special filtering on selecting servers for query restart. If user
sets the required tag in the restarted query then the policy will
not select server(s) that had been tried before.
Remi Gacogne [Fri, 13 Jun 2025 10:58:43 +0000 (12:58 +0200)]
Merge pull request #15640 from rgacogne/ddist-remove-records-on-rcode-action
dnsdist: Clean up existing records when turning query into response
Otto Moerbeek [Fri, 13 Jun 2025 10:34:37 +0000 (12:34 +0200)]
Merge pull request #15221 from omoerbeek/loc-lat-long
Compute LOC text representation without using floating point for latitude and longitude
Remi Gacogne [Fri, 13 Jun 2025 10:05:46 +0000 (12:05 +0200)]
dnsdist: Apply Otto's suggestion of reordering ancount/arcount
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Signed-off-by: Remi Gacogne <github@coredump.fr>
Remi Gacogne [Fri, 13 Jun 2025 10:05:07 +0000 (12:05 +0200)]
Merge pull request #15602 from rgacogne/ddist-fix-edns-self-gen-from-packet
dnsdist: Do not replace EDNS in answers self-generated from a packet
Peter van Dijk [Tue, 10 Jun 2025 13:26:14 +0000 (15:26 +0200)]
match FROM/AS case
Peter van Dijk [Tue, 10 Jun 2025 11:22:02 +0000 (13:22 +0200)]
recursor.spec: explicitly check for el8 and amazon2023
Otto Moerbeek [Fri, 21 Mar 2025 08:02:52 +0000 (09:02 +0100)]
Upgrade guide note
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Otto Moerbeek [Tue, 25 Feb 2025 16:19:10 +0000 (17:19 +0100)]
Compute LOC text representation without using floating point for latitude and longitude
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Miod Vallat [Fri, 13 Jun 2025 09:26:59 +0000 (11:26 +0200)]
Merge pull request #15619 from Habbie/views-wsauth-netmask-error
auth views http: report network typos to user
Miod Vallat [Fri, 13 Jun 2025 09:26:37 +0000 (11:26 +0200)]
Merge pull request #15593 from Habbie/auth-version-loglevel
auth: restore correct logging level for startup version message
Miod Vallat [Fri, 13 Jun 2025 08:32:44 +0000 (10:32 +0200)]
Merge pull request #15664 from miodvallat/cleaning_me_softly
Low-hanging signature cache hanging fruit
Miod Vallat [Fri, 13 Jun 2025 08:32:12 +0000 (10:32 +0200)]
Merge pull request #15659 from miodvallat/spring_paranoia
Some spring paranoia
Miod Vallat [Fri, 13 Jun 2025 08:31:39 +0000 (10:31 +0200)]
Merge pull request #15657 from miodvallat/out_of_domain
More domain ID love
Miod Vallat [Fri, 13 Jun 2025 08:31:10 +0000 (10:31 +0200)]
Merge pull request #15609 from miodvallat/shard_removal
Packet Cache fixes for views
Peter van Dijk [Fri, 13 Jun 2025 08:08:13 +0000 (10:08 +0200)]
Merge pull request #15641 from Habbie/auth-2136-test-script-failure
dyndns test: report script failure
Miod Vallat [Fri, 13 Jun 2025 07:35:09 +0000 (09:35 +0200)]
Merge pull request #15667 from miodvallat/my_counter_is_rich
minor tsan fixes
Miod Vallat [Fri, 13 Jun 2025 06:58:36 +0000 (08:58 +0200)]
Use atomic types for the latency metrics.
Miod Vallat [Fri, 13 Jun 2025 06:37:56 +0000 (08:37 +0200)]
Use atomic types for "time for next cache cleanup" variable.
Fixes: #11816
Miod Vallat [Thu, 12 Jun 2025 14:58:07 +0000 (16:58 +0200)]
Merge pull request #15665 from jpmens/patch-18
pdnsutil: clarify provenance of default TTL
Jan-Piet Mens [Thu, 12 Jun 2025 14:29:12 +0000 (16:29 +0200)]
pdnsutil: clarify provenance of default TTL
Signed-off-by: Jan-Piet Mens <jp@mens.de>
Miod Vallat [Thu, 12 Jun 2025 13:29:26 +0000 (15:29 +0200)]
Throw some bones to clang-tidy.
Miod Vallat [Thu, 12 Jun 2025 13:00:55 +0000 (15:00 +0200)]
Clear DNSSEC signature cache outside of its write lock.
Miod Vallat [Thu, 12 Jun 2025 13:13:38 +0000 (15:13 +0200)]
Merge pull request #15663 from miodvallat/blind_as_a_mole
End sentences with dots, not commas.
Miod Vallat [Thu, 12 Jun 2025 12:29:55 +0000 (14:29 +0200)]
End sentences with dots, not commas.
Miod Vallat [Thu, 12 Jun 2025 11:42:19 +0000 (13:42 +0200)]
Merge pull request #15656 from miodvallat/deadbool
Remove never used argument
Miod Vallat [Thu, 12 Jun 2025 11:41:51 +0000 (13:41 +0200)]
Merge pull request #15605 from miodvallat/random_random
Boring coverity-induced changes
Remi Gacogne [Thu, 12 Jun 2025 10:42:34 +0000 (12:42 +0200)]
dnsdist: Re-generate the YAML settings documentation
Remi Gacogne [Thu, 12 Jun 2025 10:42:05 +0000 (12:42 +0200)]
dnsdist: Add a regression test for randomized IDs over UDP
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Thu, 12 Jun 2025 10:40:31 +0000 (12:40 +0200)]
dnsdist: Apply generic YAML configuration items early
Some of these are used when more complicated objects (backends,
for example) are created, so we need them to be applied before
we start creating objects.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Otto Moerbeek [Thu, 12 Jun 2025 09:49:16 +0000 (11:49 +0200)]
Reintroduce comment form rcpgenerator.cc
Otto Moerbeek [Thu, 12 Jun 2025 09:43:44 +0000 (11:43 +0200)]
rec: quote NTA reason retruned in negativetrustanchor.server and set answer to be variable
Otto Moerbeek [Thu, 12 Jun 2025 09:43:20 +0000 (11:43 +0200)]
Expose and tidy txtEscape
Miod Vallat [Thu, 12 Jun 2025 07:37:05 +0000 (09:37 +0200)]
Drop domainid argument from DNSSECKeeper::startTransaction.
It is never used in a destructive way.
Miod Vallat [Thu, 12 Jun 2025 07:36:46 +0000 (09:36 +0200)]
Make comments slightly less inaccurate.
Remi Gacogne [Thu, 12 Jun 2025 08:22:16 +0000 (10:22 +0200)]
dnsdist: Fix a typo in the upgrade guide, spotted by Miod
Remi Gacogne [Thu, 12 Jun 2025 08:22:06 +0000 (10:22 +0200)]
dnsdist: Use `uint8_t` for rcodes, not `uint16_t`
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Thu, 12 Jun 2025 08:04:31 +0000 (10:04 +0200)]
Merge pull request #15532 from nokia/master
dnsdist: add option to support cache sharing between different payload sizes
Miod Vallat [Wed, 11 Jun 2025 09:19:32 +0000 (11:19 +0200)]
Return proper domain id values in DNSResourceRecord.
Miod Vallat [Wed, 11 Jun 2025 09:19:22 +0000 (11:19 +0200)]
Try harder to have valid domain id values.
This makes sure the domain id in struct DomainInfo always gets set to
something (i.e. UnknownDomainID when the backend can't figure out a
meaningful value).
Fixes: #551
Miod Vallat [Wed, 11 Jun 2025 07:48:07 +0000 (09:48 +0200)]
Remove never used third argument of xfrName().
Miod Vallat [Wed, 11 Jun 2025 05:27:05 +0000 (07:27 +0200)]
Purge views more thoroughly.
Miod Vallat [Wed, 28 May 2025 09:25:11 +0000 (11:25 +0200)]
Add a few more std::move() when possible (coverity)
Miod Vallat [Wed, 28 May 2025 12:45:25 +0000 (14:45 +0200)]
When emptying a view, purge all its packetcache data.
Miod Vallat [Wed, 28 May 2025 12:44:23 +0000 (14:44 +0200)]
Let AuthZoneCache::removeFromView return whether the view is now empty.
Miod Vallat [Wed, 28 May 2025 12:50:31 +0000 (14:50 +0200)]
Add the ability to purge an entire view from the packetcache.
Miod Vallat [Wed, 28 May 2025 12:46:16 +0000 (14:46 +0200)]
Lock the topmost map (view->cache) in the packet cache.
Oliver Chen [Mon, 9 Jun 2025 01:54:00 +0000 (01:54 +0000)]
Address PR comments of reword and remove rsp payload size check
Remi Gacogne [Fri, 6 Jun 2025 09:01:10 +0000 (11:01 +0200)]
dnsdist: Gracefully handle list of integers in YAML
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Oliver Chen [Sat, 10 May 2025 03:56:07 +0000 (03:56 +0000)]
add missing empty condition check on payload rank option
Oliver Chen [Fri, 9 May 2025 14:29:34 +0000 (14:29 +0000)]
Use payload size ranking for cache sharing
Oliver Chen [Wed, 7 May 2025 07:35:18 +0000 (07:35 +0000)]
dnsdist: support skip hashing AR section for caching
Use case arise that two clients with different udp payload size,
a customized client uses 4096 while glibc resolver uses 1232.
User would like to share cache result for the same query name,
type and class in this case. The downstream servers does not use
ECS and would not return different answers upon other EDNS
options so this is to add an option to support such use case.
Remi Gacogne [Tue, 10 Jun 2025 08:50:36 +0000 (10:50 +0200)]
Merge pull request #15650 from edmonds/fix-yaml-bind-enable-proxy-protocol
dnsdist: YAML: Correct `enable_proxy_protocol` value for TCP/UDP binds
Remi Gacogne [Tue, 10 Jun 2025 08:30:05 +0000 (10:30 +0200)]
Merge pull request #15634 from rgacogne/rec-fix-asan-stack-use-after-scope
rec: Fix stack-use-after-scope reported by ASAN
Remi Gacogne [Tue, 10 Jun 2025 07:48:55 +0000 (09:48 +0200)]
dnsdist: Update documentation for `binds.enable_proxy_protocol`
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Robert Edmonds [Tue, 10 Jun 2025 03:15:15 +0000 (23:15 -0400)]
dnsdist: YAML: Correct `enable_proxy_protocol` value for TCP/UDP binds
The YAML `enable_proxy_protocol` property of `BindConfiguration` is
documented as defaulting to "true", but is actually defined to default
to false. This commit redefines this property to default to "true",
which matches the documentation. It also matches the documentation of
the `enableProxyProtocol` option to the Lua `addLocal()` function.
However, when `loadBinds()` constructs the `ClientState` for a TCP
or UDP bind, it hardcodes the last parameter (`enableProxyProtocol`)
to false, i.e. it ignores the configured value. In this commit, the
`enableProxyProtocol` parameter to the `ClientState` constructor is
taken from the corresponding value loaded by the YAML parser.
Remi Gacogne [Fri, 6 Jun 2025 14:36:44 +0000 (16:36 +0200)]
dnsdist: Clean up existing records when turning query into response
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Fri, 6 Jun 2025 13:14:13 +0000 (15:14 +0200)]
dnsdist: Do not waste CPU cycles handling EDNS twice on self-generated answers
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Tue, 27 May 2025 14:43:22 +0000 (16:43 +0200)]
dnsdist: Add a test for EDNS on answers self-generated from a packet
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Remi Gacogne [Tue, 27 May 2025 14:23:39 +0000 (16:23 +0200)]
dnsdist: Do not replace EDNS in answers self-generated from a packet
While it makes sense to add/remove EDNS when the answer was generated
from the query itself, we should not be doing that when it has been
generated from a whole DNS packet, as it probably contains exactly
what the user intended it to.
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
Peter van Dijk [Fri, 6 Jun 2025 13:58:50 +0000 (15:58 +0200)]
dyndns test: report script failure
Remi Gacogne [Fri, 6 Jun 2025 11:18:58 +0000 (13:18 +0200)]
Merge pull request #15630 from rgacogne/ddist-generated
dnsdist: Better handling of generated files
Remi Gacogne [Fri, 6 Jun 2025 11:18:49 +0000 (13:18 +0200)]
Merge pull request #15633 from Habbie/dnsdist-pp-doc-nit
dnsdist settings docs: fix derailed sentence
Remi Gacogne [Fri, 6 Jun 2025 11:18:34 +0000 (13:18 +0200)]
Merge pull request #15342 from romeroalx/regression-tests-meson
GH Actions - build-and-test-all: use meson builds for regression tests
Otto Moerbeek [Fri, 6 Jun 2025 10:02:46 +0000 (12:02 +0200)]
Merge pull request #15637 from omoerbeek/dnsdist-docs-rules-toc
dnsdist docs: Place "Rule Selectors" in more appropriate place in TOC
Otto Moerbeek [Fri, 6 Jun 2025 09:18:03 +0000 (11:18 +0200)]
dnsdist docs: Place "Rule Selectors" in more appropriate place in TOC
Otto Moerbeek [Fri, 6 Jun 2025 09:09:55 +0000 (11:09 +0200)]
Merge pull request #15636 from omoerbeek/rec-meson-packages-followup3
rec meson followup: extend unittest max time once more and add trixie daily builds
Otto Moerbeek [Fri, 6 Jun 2025 08:38:33 +0000 (10:38 +0200)]
rec meson followup: extend unittest max time once more, ubicloud is slow in some cases
And add trixie to dnsdist and rec daily package build targets
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>