]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
9 days agoMerge pull request #15933 from omoerbeek/backport-15706-to-rec-5.1.x rel/rec-5.1.x
Otto Moerbeek [Mon, 28 Jul 2025 08:21:11 +0000 (10:21 +0200)] 
Merge pull request #15933 from omoerbeek/backport-15706-to-rec-5.1.x

Backport 15706 to rec-5.1.x: Prevent a crash in the ZoneToCache unit tests

9 days agorec: Prevent a crash in the ZoneToCache unit tests 15933/head
Remi Gacogne [Fri, 20 Jun 2025 11:23:01 +0000 (13:23 +0200)] 
rec: Prevent a crash in the ZoneToCache unit tests

Since 753ad2390bfbc90f6bc1b68f980ef4bcdc2cfddc ZoneToCache checks
whether a given zone has a recursive forward rule, so we need the
Domain map to be properly initialized in all tests, as they can be
executed in random order.

Fixes:
```
ThreadSanitizer:DEADLYSIGNAL
==35969==ERROR: ThreadSanitizer: SEGV on unknown address 0x000000000018 (pc 0x5568e9f8bb04 bp 0x4c00000000000 sp 0x7ffcc13b77f0 T35969)
==35969==The signal is caused by a READ memory access.
==35969==Hint: address points to the zero page.
    #0 std::_Hashtable<DNSName, std::pair<DNSName const, SyncRes::AuthDomain>, std::allocator<std::pair<DNSName const, SyncRes::AuthDomain> >, std::__detail::_Select1st, std::equal_to<DNSName>, std::hash<DNSName>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::empty() const /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/hashtable.h:653:23 (testrunner+0x47fb04)
    #1 std::unordered_map<DNSName, SyncRes::AuthDomain, std::hash<DNSName>, std::equal_to<DNSName>, std::allocator<std::pair<DNSName const, SyncRes::AuthDomain> > >::empty() const /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/unordered_map.h:306:21 (testrunner+0x47fb04)
    #2 SyncRes::getBestAuthZone(DNSName*) /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/syncres.cc:2464:29 (testrunner+0x47fb04)
    #3 SyncRes::isRecursiveForward(DNSName const&) /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/syncres.cc:1098:21 (testrunner+0x47fb04)
    #4 ZoneData::ZoneToCache(RecZoneToCache::Config const&) /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/rec-zonetocache.cc:423:28 (testrunner+0x404931)
    #5 RecZoneToCache::ZoneToCache(RecZoneToCache::Config const&, RecZoneToCache::State&) /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/rec-zonetocache.cc:473:10 (testrunner+0x4059fd)
    #6 rec_zonetocache::zonemdGenericTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pdns::ZoneMD::Config, pdns::ZoneMD::Config, unsigned long) /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/test-rec-zonetocache.cc:157:3 (testrunner+0x7a7113)
    #7 rec_zonetocache::test_zonetocachegeneric::test_method() /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/test-rec-zonetocache.cc:177:3 (testrunner+0x7a60a5)
    #8 rec_zonetocache::test_zonetocachegeneric_invoker() /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/test-rec-zonetocache.cc:173:1 (testrunner+0x7a60a5)
    #9 boost::detail::function::void_function_invoker0<void (*)(), void>::invoke(boost::detail::function::function_buffer&) /usr/include/boost/function/function_template.hpp:117:11 (testrunner+0x57dfab)
    #10 <null> <null> (libboost_unit_test_framework.so.1.74.0+0x323fd)
    #11 boost::execution_monitor::catch_signals(boost::function<int ()> const&) <null> (libboost_unit_test_framework.so.1.74.0+0x30b0c)
    #12 boost::execution_monitor::execute(boost::function<int ()> const&) <null> (libboost_unit_test_framework.so.1.74.0+0x30b90)
    #13 boost::execution_monitor::vexecute(boost::function<void ()> const&) <null> (libboost_unit_test_framework.so.1.74.0+0x30c60)
    #14 boost::unit_test::unit_test_monitor_t::execute_and_translate(boost::function<void ()> const&, unsigned long) <null> (libboost_unit_test_framework.so.1.74.0+0x5f1a0)
    #15 <null> <null> (libboost_unit_test_framework.so.1.74.0+0x37cdf)
    #16 <null> <null> (libboost_unit_test_framework.so.1.74.0+0x381d0)
    #17 <null> <null> (libboost_unit_test_framework.so.1.74.0+0x381d0)
    #18 boost::unit_test::framework::run(unsigned long, bool) <null> (libboost_unit_test_framework.so.1.74.0+0x3bf36)
    #19 boost::unit_test::unit_test_main(bool (*)(), int, char**) <null> (libboost_unit_test_framework.so.1.74.0+0x5e10d)
    #20 main /__w/pdns/pdns/pdns/recursordist/pdns-recursor-0.0.0-git1/testrunner.cc:84:10 (testrunner+0xc85591)
    #21 <null> <null> (libc.so.6+0x27249)
    #22 __libc_start_main <null> (libc.so.6+0x27304)
    #23 _start <null> (testrunner+0x1b79e0)
```

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
(cherry picked from commit b3c90a2a8863b32484c2d42885cba738d71a102b)

9 days agoMerge pull request #15911 from omoerbeek/backport-15652-to-rec-5.1.x rec-5.1.7
Otto Moerbeek [Mon, 28 Jul 2025 05:57:51 +0000 (07:57 +0200)] 
Merge pull request #15911 from omoerbeek/backport-15652-to-rec-5.1.x

Backport 15652 to rec-5.1.x: when using ZTC, do not store non-auth data if the name is subject to recursive forwarding

9 days agoMerge pull request #15910 from omoerbeek/backport-15893-to-rec-5.1.x
Otto Moerbeek [Mon, 28 Jul 2025 05:57:37 +0000 (07:57 +0200)] 
Merge pull request #15910 from omoerbeek/backport-15893-to-rec-5.1.x

Backport 15893 to rec-5.1.x: if a RPZ hit has a custom CNAME record, we should try harder to follow it

9 days agoMerge pull request #15909 from omoerbeek/backport-15010-to-rec-5.1.x
Otto Moerbeek [Mon, 28 Jul 2025 05:57:16 +0000 (07:57 +0200)] 
Merge pull request #15909 from omoerbeek/backport-15010-to-rec-5.1.x

Backport 15010 to rec-5.1.x: fix protobufServer(.. {taggedOnly=true}) logic for cache-returned responses

13 days agoTest the non-tagged packet cache hit case and test both UDP and TCP clients while... 15909/head
Otto Moerbeek [Mon, 6 Jan 2025 08:57:29 +0000 (09:57 +0100)] 
Test the non-tagged packet cache hit case and test both UDP and TCP clients while there

(cherry picked from commit 5600caff0e8743a77b556f9976acbc5b992868aa)

13 days agorecursor: outgoingProtobufServer() ignores taggedOnly protobuf option,
Tomasz Pala [Sat, 4 Jan 2025 12:55:27 +0000 (13:55 +0100)] 
recursor: outgoingProtobufServer() ignores taggedOnly protobuf option,
therefore do not annouce it; outgoing server is used as outgoingLoggers
in LWResult::Result asyncresolve(); after being introduced in
4898a34 filtering of outgoingP..S..() was not implemented since b790ef3

(cherry picked from commit d840333d03b1d3dbf15c2160a44dfa940ccf5533)

13 days agotypo
Tomasz Pala [Sat, 4 Jan 2025 04:36:48 +0000 (05:36 +0100)] 
typo

(cherry picked from commit fb07dc11102eb108b1ada8d01768cf61dc072c2b)

13 days agorec: TCP counterpart to protobufServer(.. {taggedOnly=true}) fix
Tomasz Pala [Sat, 4 Jan 2025 02:55:20 +0000 (03:55 +0100)] 
rec: TCP counterpart to protobufServer(.. {taggedOnly=true}) fix

(cherry picked from commit fc26c932d050d3f05e008f9f8864b66989d3b4d0)

13 days agorecursor: fix protobufServer(.. {taggedOnly=true}) logic for
Tomasz Pala [Fri, 3 Jan 2025 23:44:55 +0000 (00:44 +0100)] 
recursor: fix protobufServer(.. {taggedOnly=true}) logic for
cache-returned responses (problem existing since initial ac10822)
fixes #15007

(cherry picked from commit 647162c4cb641d9368ddf9f992a351c1cacf222a)

13 days agoTypos in comments 15910/head
Otto Moerbeek [Thu, 24 Jul 2025 08:06:21 +0000 (10:06 +0200)] 
Typos in comments

Co-authored-by: Remi Gacogne <github@coredump.fr>
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
(cherry picked from commit 284d807746195952a735e342ef2f06119812ff54)

13 days agoUse unmodified flag for post policy
Otto Moerbeek [Thu, 24 Jul 2025 05:25:13 +0000 (07:25 +0200)] 
Use unmodified flag for post policy

(cherry picked from commit 26c4f7c44ca739fe4a9446677b532e5b56b35806)

13 days agorec: if a RPZ hit has a custom CNAME record, we should try harder to follow it
Otto Moerbeek [Wed, 23 Jul 2025 10:06:41 +0000 (12:06 +0200)] 
rec: if a RPZ hit has a custom CNAME record, we should try harder to follow it

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
(cherry picked from commit 66c8b8bca9218f6d14a76c830634e1e0d39e8f9f)

13 days agorec: when using ZTC, do not store non-auth data if the name is subject to recursive... 15911/head
Otto Moerbeek [Tue, 10 Jun 2025 07:02:47 +0000 (09:02 +0200)] 
rec: when using ZTC, do not store non-auth data if the name is subject to recursive forwarding

Fixes #15651

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
(cherry picked from commit 753ad2390bfbc90f6bc1b68f980ef4bcdc2cfddc)

2 weeks agoMerge pull request #15852 from omoerbeek/backport-ecs-to-5.1.x rec-5.1.6
Otto Moerbeek [Thu, 17 Jul 2025 09:01:25 +0000 (11:01 +0200)] 
Merge pull request #15852 from omoerbeek/backport-ecs-to-5.1.x

rec: Backport to 5.1.x: chain and harden ECS enabled queries

3 weeks agoFix test, it was using a feature only available on master 15852/head
Otto Moerbeek [Wed, 16 Jul 2025 07:22:55 +0000 (09:22 +0200)] 
Fix test, it was using a feature only available on master

3 weeks agoBackport of Fix two issues with chaining ECS enabled queries
Otto Moerbeek [Tue, 15 Jul 2025 11:54:30 +0000 (13:54 +0200)] 
Backport of Fix two issues with chaining ECS enabled queries

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
6 weeks agoSwitch off leak detect in CI
Otto Moerbeek [Thu, 19 Jun 2025 12:52:58 +0000 (14:52 +0200)] 
Switch off leak detect in CI

2 months agoMerge pull request #15622 from romeroalx/backport-14565-to-rec-5.1.x
Otto Moerbeek [Tue, 3 Jun 2025 17:27:25 +0000 (19:27 +0200)] 
Merge pull request #15622 from romeroalx/backport-14565-to-rec-5.1.x

rec-5.1.x: backport 14565 - gh actions - coveralls: avoid CI failure by setting fail-on-error: false

2 months agogh actions - coveralls: avoid CI failure by setting fail-on-error: false 15622/head
romeroalx [Mon, 15 Jul 2024 10:41:57 +0000 (12:41 +0200)] 
gh actions - coveralls: avoid CI failure by setting fail-on-error: false

2 months agoFix test names
Otto Moerbeek [Wed, 28 May 2025 12:23:02 +0000 (14:23 +0200)] 
Fix test names

2 months agoImplement metrics
Otto Moerbeek [Wed, 28 May 2025 11:43:02 +0000 (13:43 +0200)] 
Implement metrics

2 months agoAlwas detect mismatches in outgoing and incoming ECS; add tests for that as well
Otto Moerbeek [Mon, 19 May 2025 12:31:38 +0000 (14:31 +0200)] 
Alwas detect mismatches in outgoing and incoming ECS; add tests for that as well

2 months agoRefactor: get rid of an unneccesary loop
Otto Moerbeek [Fri, 16 May 2025 09:01:19 +0000 (11:01 +0200)] 
Refactor: get rid of an unneccesary loop

2 months agoRun all ECS tests also in hardened mode and add a specific hardened mode test
Otto Moerbeek [Thu, 8 May 2025 12:05:39 +0000 (14:05 +0200)] 
Run all ECS tests also in hardened mode and add a specific hardened mode test

2 months agoAdd setting and metric
Otto Moerbeek [Thu, 8 May 2025 10:25:36 +0000 (12:25 +0200)] 
Add setting and metric

2 months agoParse ECS info if relevant and act on it if it mismatches
Otto Moerbeek [Wed, 23 Apr 2025 11:50:51 +0000 (13:50 +0200)] 
Parse ECS info if relevant and act on it if it mismatches

Moved slowParseEDNSOptions() from dnsdist specific code to common code

2 months agoFix invalid scope test to do what I think is actually intended
Otto Moerbeek [Mon, 20 Jan 2025 13:08:02 +0000 (14:08 +0100)] 
Fix invalid scope test to do what I think is actually intended

2 months agoTo match incoming, don't look at subnet
Otto Moerbeek [Fri, 17 Jan 2025 10:49:21 +0000 (11:49 +0100)] 
To match incoming, don't look at subnet

2 months agoChain on ECS matching, and consider a mismatch in returned ECS as a spoof attempt
Otto Moerbeek [Wed, 15 Jan 2025 13:23:04 +0000 (14:23 +0100)] 
Chain on ECS matching, and consider a mismatch in returned ECS as a spoof attempt

2 months agoPass actual (optional) ecs instead of bool to asendto()
Otto Moerbeek [Wed, 15 Jan 2025 11:21:07 +0000 (12:21 +0100)] 
Pass actual (optional) ecs instead of bool to asendto()

3 months agoMerge pull request #15405 from omoerbeek/backport-15352-to-rec-5.1.x rec-5.1.4
Otto Moerbeek [Tue, 8 Apr 2025 08:15:40 +0000 (10:15 +0200)] 
Merge pull request #15405 from omoerbeek/backport-15352-to-rec-5.1.x

rec: Backport 15352 to rec 5.1.x: in test_SimpleDot.py make sure we have the root DNSKEY in cache, it might require TCP

3 months agoUpdate regression-tests.recursor-dnssec/test_SimpleDoT.py 15405/head
Otto Moerbeek [Mon, 24 Mar 2025 12:56:17 +0000 (13:56 +0100)] 
Update regression-tests.recursor-dnssec/test_SimpleDoT.py

Co-authored-by: Miod Vallat <miod.vallat@powerdns.com>
(cherry picked from commit 173e64959ab4ea2890d76825be2742601727cc42)

3 months agorec: in test_SimpleDot.py make sure we have the root DNSKEY in cache, it might requir...
Otto Moerbeek [Mon, 24 Mar 2025 12:10:28 +0000 (13:10 +0100)] 
rec: in test_SimpleDot.py make sure we have the root DNSKEY in cache, it might require TCP

Previously we assumed we didn't need TCP at all.

(cherry picked from commit 4025ecc524689b38527e31c1f38aa1ebb23e7bc3)

4 months agoMerge pull request #15280 from omoerbeek/rec-backport-15254-to-5.1.x
Otto Moerbeek [Fri, 14 Mar 2025 07:37:32 +0000 (08:37 +0100)] 
Merge pull request #15280 from omoerbeek/rec-backport-15254-to-5.1.x

rec: Backport 15254 to 5.1.x: If we see both a CNAME and answer records, follow CNAME and discard the answer records

4 months agoMerge pull request #15287 from omoerbeek/rec-stop-using-ubuntu-20-on-rec-5.1.x
Otto Moerbeek [Fri, 14 Mar 2025 07:37:04 +0000 (08:37 +0100)] 
Merge pull request #15287 from omoerbeek/rec-stop-using-ubuntu-20-on-rec-5.1.x

rec-5.1.x: Stop formatting check and start using Ubuntu-24.04 for fuzzing

4 months agoStop formatting check and start using Ubuntu-24.04 for fuzzing 15287/head
Otto Moerbeek [Tue, 11 Mar 2025 15:31:38 +0000 (16:31 +0100)] 
Stop formatting check and start using Ubuntu-24.04 for fuzzing

4 months agoClang-tidy annotation 15280/head
Otto Moerbeek [Tue, 11 Mar 2025 10:16:49 +0000 (11:16 +0100)] 
Clang-tidy annotation

4 months agoIf we see both a CNAME and answer records, follow CNAME and discard the answer records
Otto Moerbeek [Tue, 4 Mar 2025 08:52:15 +0000 (09:52 +0100)] 
If we see both a CNAME and answer records, follow CNAME and discard the answer records

5 months agoMerge pull request #15215 from omoerbeek/backport-14525-to-rec-5.1.x
Otto Moerbeek [Tue, 25 Feb 2025 07:32:30 +0000 (08:32 +0100)] 
Merge pull request #15215 from omoerbeek/backport-14525-to-rec-5.1.x

rec: Backport 14525 to rec-5.1.x: add 38696 root anchor

5 months agorecursor: add 38696 root anchor 15215/head
Peter van Dijk [Thu, 25 Jul 2024 09:35:31 +0000 (11:35 +0200)] 
recursor: add 38696 root anchor

fetched from https://www.iana.org/dnssec/files after their 2024-07-24 update

(cherry picked from commit 0bbbdd60ab054e7bbfc2b0d0604d1f7e15f0a229)

8 months agoMerge pull request #14872 from romeroalx/backport-14862-to-rec-5.1.x
Otto Moerbeek [Mon, 25 Nov 2024 08:01:00 +0000 (09:01 +0100)] 
Merge pull request #14872 from romeroalx/backport-14862-to-rec-5.1.x

rec-5.1.x: Backport 14862 - builder: remove ubuntu lunar+mantic as they are EOL

8 months agobuilder: remove ubuntu lunar+mantic as they are EOL 14872/head
Peter van Dijk [Fri, 22 Nov 2024 09:08:40 +0000 (10:08 +0100)] 
builder: remove ubuntu lunar+mantic as they are EOL

9 months agoMerge pull request #14797 from omoerbeek/backport-14766-to-rec-5.1.x rec-5.1.3
Otto Moerbeek [Thu, 24 Oct 2024 13:04:42 +0000 (15:04 +0200)] 
Merge pull request #14797 from omoerbeek/backport-14766-to-rec-5.1.x

rec: Backport 14766 to rec 5.1.x: bump SNMP ignore from buster to bookworm after buildbot VM upgrade

9 months agobump SNMP ignore from buster to bookworm after buildbot VM upgrade 14797/head
Peter van Dijk [Fri, 11 Oct 2024 08:47:47 +0000 (10:47 +0200)] 
bump SNMP ignore from buster to bookworm after buildbot VM upgrade

(cherry picked from commit 32ac2627fad9d398756c6ec05ae423eec22eff7e)

9 months agoMerge pull request #14774 from omoerbeek/backport-14693-to-rec-5.1.x
Otto Moerbeek [Thu, 24 Oct 2024 08:48:32 +0000 (10:48 +0200)] 
Merge pull request #14774 from omoerbeek/backport-14693-to-rec-5.1.x

rec: Backport 14693 to rec 5.1.x: implement rfc6303 special zones (mostly v6 reverse mappings)

9 months agoMerge pull request #14773 from omoerbeek/backport-14628-to-rec-5.1.x
Otto Moerbeek [Thu, 24 Oct 2024 06:26:35 +0000 (08:26 +0200)] 
Merge pull request #14773 from omoerbeek/backport-14628-to-rec-5.1.x

rec: Backport 14628 to rec 5.1.x: rec: avoid duplicated waiter ids for chained requests

9 months agoMerge pull request #14772 from omoerbeek/backport-14554-to-rec-5.1.x
Otto Moerbeek [Thu, 24 Oct 2024 06:01:42 +0000 (08:01 +0200)] 
Merge pull request #14772 from omoerbeek/backport-14554-to-rec-5.1.x

rec: Backport 14554 to rec-5.1.x: distinguish OS imposed limits from app imposed limits, specifically on chains

9 months agoMerge pull request #14771 from omoerbeek/backport-14550-to-rec-5.1.x
Otto Moerbeek [Thu, 24 Oct 2024 05:30:02 +0000 (07:30 +0200)] 
Merge pull request #14771 from omoerbeek/backport-14550-to-rec-5.1.x

rec: Backport 14550 to rec 5.1.x: json11: add include for cstdint

9 months agoInclude more recent version of test_Chain.py 14773/head
Otto Moerbeek [Tue, 15 Oct 2024 12:32:11 +0000 (14:32 +0200)] 
Include more recent version of test_Chain.py

9 months agoEnsure serve-rfc1918 is enabled when doing serve-rfc6303 14774/head
Otto Moerbeek [Mon, 7 Oct 2024 10:26:11 +0000 (12:26 +0200)] 
Ensure serve-rfc1918 is enabled when doing serve-rfc6303

(cherry picked from commit 458a9064cc3e6eb56a8d6dfb7d501295dd1cf1dd)

9 months agoApply suggestions from code review
Otto Moerbeek [Mon, 7 Oct 2024 10:00:59 +0000 (12:00 +0200)] 
Apply suggestions from code review

Co-authored-by: Remi Gacogne <github@coredump.fr>
(cherry picked from commit 565587b70215b7968c9fa711d0bc1b85938f79ed)

9 months agorec: implement rfc6303 special zones (mostly v6 reverse mappings)
Otto Moerbeek [Thu, 19 Sep 2024 09:46:06 +0000 (11:46 +0200)] 
rec: implement rfc6303 special zones (mostly v6 reverse mappings)

(cherry picked from commit 9557d437c239d672c49195847a794bb9537f7223)

9 months agorec: distinguish OS imposed limits from app imposed limits, specifically on chains 14772/head
Otto Moerbeek [Tue, 13 Aug 2024 07:56:54 +0000 (09:56 +0200)] 
rec: distinguish OS imposed limits from app imposed limits, specifically on chains

(cherry picked from commit b22ec811be8c094605df49e015be02e9a85d978e)

9 months agoDisable tracing for test_Chain, it chokes GH
Otto Moerbeek [Fri, 6 Sep 2024 12:23:31 +0000 (14:23 +0200)] 
Disable tracing for test_Chain, it chokes GH

(cherry picked from commit 3755f2f9fa4aac368ac73dc351a38f2af5e63c7e)

9 months agoAdd basic chain test that hits the case of #14624
Otto Moerbeek [Fri, 6 Sep 2024 11:29:17 +0000 (13:29 +0200)] 
Add basic chain test that hits the case of #14624

We do rely on that OS queueing the UDP packets, hope it will do so long enough

(cherry picked from commit 44b1de9830c4c8d7ceec86799c1bdb5a670d3d3e)

9 months agorec: avoid duplicated waiter ids for chained requests
Otto Moerbeek [Fri, 6 Sep 2024 10:12:14 +0000 (12:12 +0200)] 
rec: avoid duplicated waiter ids for chained requests

(cherry picked from commit b04c64e61cd7b3440ea014da375f47114fe9364b)

9 months agojson11: add include for cstdint 14771/head
Peter van Dijk [Fri, 9 Aug 2024 17:41:46 +0000 (19:41 +0200)] 
json11: add include for cstdint

fixes #14549, which came with a patch

(cherry picked from commit 8d6d32bef74aa2cba41421645936fade35c71c72)

10 months agoMerge pull request #14743 from omoerbeek/rec-5.1.2-branch
Otto Moerbeek [Thu, 3 Oct 2024 11:35:27 +0000 (13:35 +0200)] 
Merge pull request #14743 from omoerbeek/rec-5.1.2-branch

rec: backport of CVE-2024-25590 to rec-5.1.x: limit maximum size of rr sets in record cache

11 months agoOptimization for the ADDR case: stop loop if we found 2 (A and AAAA) 14743/head rec-5.1.2
Otto Moerbeek [Wed, 21 Aug 2024 09:55:35 +0000 (11:55 +0200)] 
Optimization for the ADDR case: stop loop if we found 2 (A and AAAA)

11 months agorec: refuse to store very large RRSets in the cache and ServFail on retrieval of...
Otto Moerbeek [Wed, 21 Aug 2024 09:09:42 +0000 (11:09 +0200)] 
rec: refuse to store very large RRSets in the cache and ServFail on retrieval of those

11 months agoMerge pull request #14571 from omoerbeek/backport-14562-to-rec-5.1.x
Otto Moerbeek [Fri, 23 Aug 2024 05:52:01 +0000 (07:52 +0200)] 
Merge pull request #14571 from omoerbeek/backport-14562-to-rec-5.1.x

rec: Backport to rec-5.1.x: Fix build with boost 1.86.0

11 months agoFix build with boost 1.86.0 14571/head
Michael Cho [Fri, 16 Aug 2024 02:49:17 +0000 (22:49 -0400)] 
Fix build with boost 1.86.0

Boost 1.86.0 changes seem to no longer indirectly include header which
causes build to fail with:
```
uuid-utils.cc:38:58:
error: 'random' is not a class, namespace, or enumeration
```

boost/random/mersenne_twister.hpp has been available since Boost 1.21.2

(cherry picked from commit eed56000b1d68ac083b8e8bea4ff0ea30a1579c4)

12 months agoMerge pull request #14516 from omoerbeek/backport-14514-to-rec-5.1.x rec-5.1.1
Otto Moerbeek [Mon, 22 Jul 2024 07:35:26 +0000 (09:35 +0200)] 
Merge pull request #14516 from omoerbeek/backport-14514-to-rec-5.1.x

rec: Backport 14514 to rec 5.1.x: fix maintenanceCalls vs maintenanceCount

12 months agoUpdate RECURSOR-MIB.txt 14516/head
Harald Kapper [Sun, 21 Jul 2024 17:27:07 +0000 (19:27 +0200)] 
Update RECURSOR-MIB.txt

fixed maintenanceCalls vs maintenanceCount
It's anyones guess if it should be called Calls or Count in the end, it should be the same name in the end.

(cherry picked from commit 551641127c26799ff8ef80f56887a6ccd0d2b74f)

12 months agoMerge pull request #14501 from omoerbeek/backport-14499-to-rec-5.1.x
Otto Moerbeek [Thu, 18 Jul 2024 12:32:25 +0000 (14:32 +0200)] 
Merge pull request #14501 from omoerbeek/backport-14499-to-rec-5.1.x

rec: Backport 14499 to rec-5.1.x: limit the number of async tasks pushed to resolve NS names

12 months agorec: limit the number of async tasks pushed to resolve NS names 14501/head
Otto Moerbeek [Wed, 17 Jul 2024 08:46:58 +0000 (10:46 +0200)] 
rec: limit the number of async tasks pushed to resolve NS names

Plus: as we only use a limited set of NS names for resolving,
processing all additional records does not help.

(cherry picked from commit cd2de2ee7ad55f295a00dfce5488ee3863d974d6)

12 months agoMerge pull request #14481 from omoerbeek/backport-14471-to-rec-5.1.x
Otto Moerbeek [Thu, 18 Jul 2024 10:05:27 +0000 (12:05 +0200)] 
Merge pull request #14481 from omoerbeek/backport-14471-to-rec-5.1.x

rec: Backport 14471 to rec-5.1.x: dump right SOA into dumpFile and report non-relative SOA for includeSOA=true

12 months agoMerge pull request #14478 from omoerbeek/backport-14404-to-rec-5.1.x
Otto Moerbeek [Thu, 18 Jul 2024 09:42:39 +0000 (11:42 +0200)] 
Merge pull request #14478 from omoerbeek/backport-14404-to-rec-5.1.x

rec: Backport 14404 to rec 5.1.x: Yahttp router: avoid unsigned underflow in match()

12 months agoMerge pull request #14477 from omoerbeek/backport-14459-to-rec-5.1.x
Otto Moerbeek [Thu, 18 Jul 2024 09:42:10 +0000 (11:42 +0200)] 
Merge pull request #14477 from omoerbeek/backport-14459-to-rec-5.1.x

rec: Backport 14459 to rec 5.1.x: move default Docker config to YAML

12 months agoMerge pull request #14488 from omoerbeek/backport-14486-to-rec-5.1.x
Otto Moerbeek [Thu, 18 Jul 2024 08:08:18 +0000 (10:08 +0200)] 
Merge pull request #14488 from omoerbeek/backport-14486-to-rec-5.1.x

rec: Backport 14486 to rec 5.1.x: pin pysnmp to version 5 for regression tests

12 months agoAlso pin pysnmp version for dnsdist regression tests 14488/head
Otto Moerbeek [Wed, 17 Jul 2024 12:44:11 +0000 (14:44 +0200)] 
Also pin pysnmp version for dnsdist regression tests

(cherry picked from commit 5d3db32982e7a06a9e653529baa2fb67e24d7189)

12 months agorec: pin pysnmp to version 5 for regression tests
Otto Moerbeek [Wed, 17 Jul 2024 12:03:32 +0000 (14:03 +0200)] 
rec: pin pysnmp to version 5 for regression tests

(cherry picked from commit 4d44d3076051fe27ee91e847a3600ad19c44fd72)

12 months agorec: dump right SOA into dumpFile and report non-relative SOA for includeSOA=true 14481/head
Otto Moerbeek [Mon, 15 Jul 2024 09:41:38 +0000 (11:41 +0200)] 
rec: dump right SOA into dumpFile and report non-relative SOA for includeSOA=true

(cherry picked from commit 397da738caad01df0da04387083c73a0e941608b)

12 months agoFix example command line 14477/head
Otto Moerbeek [Wed, 10 Jul 2024 13:33:36 +0000 (15:33 +0200)] 
Fix example command line

(cherry picked from commit 7bfa760eb2a7df849c88252f471fc6626fbd4f97)

12 months agorec: move default Docker config to YAML
Otto Moerbeek [Wed, 10 Jul 2024 13:02:00 +0000 (15:02 +0200)] 
rec: move default Docker config to YAML

(cherry picked from commit 0f1374a7689a4ee6adcf9ea1185c6116142708df)

12 months agoAvoid upos underflowing in match loop 14478/head
Otto Moerbeek [Tue, 2 Jul 2024 10:22:29 +0000 (12:22 +0200)] 
Avoid upos underflowing in match loop

(cherry picked from commit 09462bda7f8da4e59307e0d6a7446d499c1da34c)

12 months agono else block after break statement
Otto Moerbeek [Tue, 2 Jul 2024 10:20:48 +0000 (12:20 +0200)] 
no else block after break statement

(cherry picked from commit 9ecf2b37287270be3d06ac3d5570f5d67a0bb364)

12 months agoMerge pull request #14442 from omoerbeek/rec-5.1.x-daily-el7
Otto Moerbeek [Fri, 12 Jul 2024 07:47:58 +0000 (09:47 +0200)] 
Merge pull request #14442 from omoerbeek/rec-5.1.x-daily-el7

rec 5.1.x: daily build for el-7 instead of centos-7

12 months agorec 5.1.x: daily build for el-7 instead of centos-7 14442/head
Otto Moerbeek [Tue, 9 Jul 2024 08:16:14 +0000 (10:16 +0200)] 
rec 5.1.x: daily build for el-7 instead of centos-7

12 months agoMerge pull request #14435 from omoerbeek/backport-14425-to-rec-5.1.x rec-5.1.0
Otto Moerbeek [Mon, 8 Jul 2024 07:20:45 +0000 (09:20 +0200)] 
Merge pull request #14435 from omoerbeek/backport-14425-to-rec-5.1.x

rec: Backport 14425 to rec 5.1.x: fix typo in log message

12 months agoFix processsing typo. 14435/head
Andreas Jakum [Thu, 4 Jul 2024 13:29:47 +0000 (15:29 +0200)] 
Fix processsing typo.

(cherry picked from commit c91c84f640e32a7d24925a78cf3609e731d098e9)

13 months agoMerge pull request #14402 from Habbie/backport-14400-to-rec-5.1.x
Otto Moerbeek [Tue, 2 Jul 2024 11:37:14 +0000 (13:37 +0200)] 
Merge pull request #14402 from Habbie/backport-14400-to-rec-5.1.x

rec-5.1: switch el7 builds to Oracle Linux 7

13 months agoswitch el7 builds to Oracle Linux 7 14402/head
Peter van Dijk [Tue, 2 Jul 2024 09:19:31 +0000 (11:19 +0200)] 
switch el7 builds to Oracle Linux 7

(cherry picked from commit 73a1b98f92c671c590540ac19d74d70499f89066)

13 months agoMerge pull request #14389 from omoerbeek/backport-14384-to-rec-5.1.x
Otto Moerbeek [Fri, 28 Jun 2024 06:26:27 +0000 (08:26 +0200)] 
Merge pull request #14389 from omoerbeek/backport-14384-to-rec-5.1.x

rec: Backport 14384 to rec-5.1.x: keep Lua config as existing configs might use it

13 months agorec: keep Lua config as existing configs might use it 14389/head
Otto Moerbeek [Tue, 25 Jun 2024 14:31:48 +0000 (16:31 +0200)] 
rec: keep Lua config as existing configs might use it

(cherry picked from commit 6b2d9507dab4d64623bbca6fcd3bbd57ddebff8e)

13 months agoMerge pull request #14375 from omoerbeek/rec-specialize-5.1.x rec-5.1.0-rc1
Otto Moerbeek [Mon, 24 Jun 2024 11:54:42 +0000 (13:54 +0200)] 
Merge pull request #14375 from omoerbeek/rec-specialize-5.1.x

rec: specialize rel/rec-5.1.x branch to rec only workflows

13 months agorec: specialize rel/rec-5.1.x branch to rec only workflows 14375/head
Otto Moerbeek [Mon, 24 Jun 2024 11:16:07 +0000 (13:16 +0200)] 
rec: specialize rel/rec-5.1.x branch to rec only workflows

13 months agoMerge pull request #14374 from omoerbeek/rec-debian-tweaks rec-5.2.0-alpha0
Otto Moerbeek [Mon, 24 Jun 2024 10:56:34 +0000 (12:56 +0200)] 
Merge pull request #14374 from omoerbeek/rec-debian-tweaks

Rec followup to #14265: use correct file suffix for reloading and debian tweaks

13 months agoAlso use variable suffix for file when reloading YAML-Lua config 14374/head
Otto Moerbeek [Mon, 24 Jun 2024 09:32:00 +0000 (11:32 +0200)] 
Also use variable suffix for file when reloading YAML-Lua config

13 months agoMerge pull request #14363 from omoerbeek/rec-rename-new-udr-settings
Otto Moerbeek [Mon, 24 Jun 2024 09:10:51 +0000 (11:10 +0200)] 
Merge pull request #14363 from omoerbeek/rec-rename-new-udr-settings

rec: make names of new udr settings consistent with existing scheme

13 months agoMerge pull request #14373 from omoerbeek/rec-dns64-double-soa
Otto Moerbeek [Mon, 24 Jun 2024 07:54:58 +0000 (09:54 +0200)] 
Merge pull request #14373 from omoerbeek/rec-dns64-double-soa

rec: don't send double SOA record in the case of a dns64 CNAME that does not resolve

13 months agoAdd test for duplicate SOA record in the dns64/NODATA case 14373/head
Otto Moerbeek [Fri, 21 Jun 2024 14:31:24 +0000 (16:31 +0200)] 
Add test for duplicate SOA record in the dns64/NODATA case

13 months agorec: tweak debian install, as suggested by @zeha
Otto Moerbeek [Mon, 24 Jun 2024 07:12:58 +0000 (09:12 +0200)] 
rec: tweak debian install, as suggested by @zeha

13 months agoMerge pull request #14265 from omoerbeek/rec-yaml-as-conf
Otto Moerbeek [Fri, 21 Jun 2024 10:20:34 +0000 (12:20 +0200)] 
Merge pull request #14265 from omoerbeek/rec-yaml-as-conf

rec: allow recursor.conf file to contain YAML to ease transition to YAML config

13 months agoMerge pull request #14366 from PowerDNS/dependabot/pip/pdns/keyroller/urllib3-1.26.19
Remi Gacogne [Fri, 21 Jun 2024 10:07:23 +0000 (12:07 +0200)] 
Merge pull request #14366 from PowerDNS/dependabot/pip/pdns/keyroller/urllib3-1.26.19

build(deps): bump urllib3 from 1.26.18 to 1.26.19 in /pdns/keyroller

13 months agoMerge pull request #14360 from rgacogne/auth-fix-distributor-unit-test-leak
Remi Gacogne [Fri, 21 Jun 2024 10:04:06 +0000 (12:04 +0200)] 
Merge pull request #14360 from rgacogne/auth-fix-distributor-unit-test-leak

auth: Better fix for the leak reported by LSAN in test-distributor_hh.cc

13 months agobuild(deps): bump urllib3 from 1.26.18 to 1.26.19 in /pdns/keyroller 14366/head
dependabot[bot] [Fri, 21 Jun 2024 09:27:02 +0000 (09:27 +0000)] 
build(deps): bump urllib3 from 1.26.18 to 1.26.19 in /pdns/keyroller

Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.18 to 1.26.19.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.18...1.26.19)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
13 months agoMerge pull request #14345 from PowerDNS/dependabot/pip/pdns/recursordist/docs/urllib3...
Otto Moerbeek [Fri, 21 Jun 2024 09:21:42 +0000 (11:21 +0200)] 
Merge pull request #14345 from PowerDNS/dependabot/pip/pdns/recursordist/docs/urllib3-2.2.2

build(deps): bump urllib3 from 2.2.0 to 2.2.2 in /pdns/recursordist/docs

13 months agoauth: Use [[maybe_unused]] in the distributor unit tests 14360/head
Remi Gacogne [Fri, 21 Jun 2024 09:10:28 +0000 (11:10 +0200)] 
auth: Use [[maybe_unused]] in the distributor unit tests

As suggested by Otto.