]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
17 months agoMerge pull request #14817 from oregonpillow/master
Remi Gacogne [Mon, 4 Nov 2024 15:51:43 +0000 (16:51 +0100)] 
Merge pull request #14817 from oregonpillow/master

Add dnsdist documentation example for using DoH behind nginx

17 months agoMerge pull request #14768 from chbruyand/dnsdist-load-tickets-key
Remi Gacogne [Mon, 4 Nov 2024 15:10:06 +0000 (16:10 +0100)] 
Merge pull request #14768 from chbruyand/dnsdist-load-tickets-key

dnsdist setTicketsKeyAddedHook(): adjust type of the key to fix potential truncate

17 months agofix spell-check. allow grpcs 14817/head
Timothy Pillow [Mon, 4 Nov 2024 14:58:12 +0000 (15:58 +0100)] 
fix spell-check. allow grpcs

17 months agoTypo noted by @phonedph1
Otto Moerbeek [Mon, 4 Nov 2024 14:24:47 +0000 (15:24 +0100)] 
Typo noted by @phonedph1

17 months agotypo fix
Timothy Pillow [Mon, 4 Nov 2024 14:23:43 +0000 (15:23 +0100)] 
typo fix

17 months agooldZone can be nullptr, don't deref just like that
Otto Moerbeek [Tue, 8 Oct 2024 14:25:24 +0000 (16:25 +0200)] 
oldZone can be nullptr, don't deref just like that

17 months agoMove new FWCatz test to non-clashing port
Otto Moerbeek [Tue, 8 Oct 2024 14:03:35 +0000 (16:03 +0200)] 
Move new FWCatz test to non-clashing port

17 months agoReformat
Otto Moerbeek [Tue, 8 Oct 2024 13:21:24 +0000 (15:21 +0200)] 
Reformat

17 months agoDetect faulty config (catz used but api-dir not set)
Otto Moerbeek [Tue, 8 Oct 2024 13:05:45 +0000 (15:05 +0200)] 
Detect faulty config (catz used but api-dir not set)

17 months agoAllow meson build
Otto Moerbeek [Tue, 8 Oct 2024 13:02:01 +0000 (15:02 +0200)] 
Allow meson build

17 months agoBasic docs
Otto Moerbeek [Tue, 8 Oct 2024 12:41:01 +0000 (14:41 +0200)] 
Basic docs

17 months agoAdd regression test for FWCatz
Otto Moerbeek [Tue, 8 Oct 2024 11:58:46 +0000 (13:58 +0200)] 
Add regression test for FWCatz

17 months agoDo all-is-default processing for fwcatz
Otto Moerbeek [Tue, 8 Oct 2024 09:22:20 +0000 (11:22 +0200)] 
Do all-is-default processing for fwcatz

17 months agoSmall refactor: split out forwarding cat zone code from xfr code
Otto Moerbeek [Tue, 8 Oct 2024 07:49:48 +0000 (09:49 +0200)] 
Small refactor: split out forwarding cat zone code from xfr code

In an ideal world we should share the xfr code between RPZ and catz, but
that is for a later day.

17 months agoAllow notify of catz; rename name field to zone for consistency
Otto Moerbeek [Tue, 8 Oct 2024 07:39:00 +0000 (09:39 +0200)] 
Allow notify of catz; rename name field to zone for consistency

17 months agoAdd group processing
Otto Moerbeek [Wed, 2 Oct 2024 15:19:21 +0000 (17:19 +0200)] 
Add group processing

17 months agoBasic functionality works
Otto Moerbeek [Tue, 1 Oct 2024 13:58:44 +0000 (15:58 +0200)] 
Basic functionality works

Missing: group handling, cleanup of catz no longer in config, tests

17 months agoThreads started and doing xfr
Otto Moerbeek [Mon, 30 Sep 2024 13:31:01 +0000 (15:31 +0200)] 
Threads started and doing xfr

17 months agoSkeleton code of catalog zone transfer, untested
Otto Moerbeek [Mon, 30 Sep 2024 07:50:59 +0000 (09:50 +0200)] 
Skeleton code of catalog zone transfer, untested

17 months agoRefactor XFR parameters of RPZParams out
Otto Moerbeek [Fri, 27 Sep 2024 12:11:44 +0000 (14:11 +0200)] 
Refactor XFR parameters of RPZParams out

17 months agoMerge pull request #14796 from omoerbeek/rec-cache-dump-undump
Otto Moerbeek [Mon, 4 Nov 2024 14:10:37 +0000 (15:10 +0100)] 
Merge pull request #14796 from omoerbeek/rec-cache-dump-undump

rec: provide a few more Lua functions, most importantly record cache dump and load

17 months agoUpdate dns-over-https.rst
Timothy Pillow [Mon, 4 Nov 2024 14:02:29 +0000 (15:02 +0100)] 
Update dns-over-https.rst

remove 'include' directives from nginx conf example

17 months agoAdd a unit test checking the ref counts (fails in master) 14807/head
Otto Moerbeek [Mon, 4 Nov 2024 13:44:37 +0000 (14:44 +0100)] 
Add a unit test checking the ref counts (fails in master)

17 months agoMerge pull request #14809 from omoerbeek/rec-deprecate-old-style
Otto Moerbeek [Mon, 4 Nov 2024 13:46:15 +0000 (14:46 +0100)] 
Merge pull request #14809 from omoerbeek/rec-deprecate-old-style

rec: actively deprecate old style settings

17 months agoUpdate dns-over-https.rst
Timothy Pillow [Mon, 4 Nov 2024 12:26:54 +0000 (13:26 +0100)] 
Update dns-over-https.rst

17 months agoApply suggestions from code review 14809/head
Otto Moerbeek [Mon, 4 Nov 2024 12:10:47 +0000 (13:10 +0100)] 
Apply suggestions from code review

Co-authored-by: Remi Gacogne <github@coredump.fr>
17 months agoReplace a few asserts with throws and make sure we've seen the version and type field... 14796/head
Otto Moerbeek [Mon, 4 Nov 2024 12:07:52 +0000 (13:07 +0100)] 
Replace a few asserts with throws and make sure we've seen the version and type fields in putRecordSet.

An exception will be handled by the catch at the end of putRecordSets()

Prompted by @rgacogne

17 months agoApply suggestions from code review
Otto Moerbeek [Mon, 4 Nov 2024 11:54:21 +0000 (12:54 +0100)] 
Apply suggestions from code review

Co-authored-by: Remi Gacogne <github@coredump.fr>
17 months agoRemove the move call in two instances where it really does not add anything
Otto Moerbeek [Mon, 4 Nov 2024 11:51:56 +0000 (12:51 +0100)] 
Remove the move call in two instances where it really does not add anything

17 months agoDocs tweaks (not neccesarily related)
Otto Moerbeek [Tue, 29 Oct 2024 10:09:53 +0000 (11:09 +0100)] 
Docs tweaks (not neccesarily related)

17 months agoDocs of new behaviour: do not do old-style by default
Otto Moerbeek [Tue, 29 Oct 2024 09:54:40 +0000 (10:54 +0100)] 
Docs of new behaviour: do not do old-style by default

17 months agoGive a more sensible message for rec_control show-yaml if recursor.conf already conta...
Otto Moerbeek [Tue, 29 Oct 2024 09:52:37 +0000 (10:52 +0100)] 
Give a more sensible message for rec_control show-yaml if recursor.conf already contains YAML

17 months agorec: disable parsing of old-style settings by default
Otto Moerbeek [Mon, 28 Oct 2024 16:02:07 +0000 (17:02 +0100)] 
rec: disable parsing of old-style settings by default

17 months agoMerge pull request #14816 from omoerbeek/rec-periodic-stats
Otto Moerbeek [Mon, 4 Nov 2024 11:41:01 +0000 (12:41 +0100)] 
Merge pull request #14816 from omoerbeek/rec-periodic-stats

rec: periodic stats cleanup and rename outqueries-per-query to outqueries-per-query-perc

17 months agoMerge pull request #14801 from omoerbeek/rec-valgrind
Otto Moerbeek [Mon, 4 Nov 2024 11:01:09 +0000 (12:01 +0100)] 
Merge pull request #14801 from omoerbeek/rec-valgrind

rec: make valgrind build and testrunner run work again

17 months agoMissing quotes as noted by @chbruyand 14816/head
Otto Moerbeek [Mon, 4 Nov 2024 11:00:48 +0000 (12:00 +0100)] 
Missing quotes as noted by @chbruyand

Co-authored-by: Charles-Henri Bruyand <charleshenri.bruyand+github@gmail.com>
17 months agoRework the top-queries and top-remotes functions 14825/head
Otto Moerbeek [Mon, 4 Nov 2024 09:45:24 +0000 (10:45 +0100)] 
Rework the top-queries and top-remotes functions

Modernize and proper unsigned types for counting

Fixes #13066

17 months agoMore Tidy
Otto Moerbeek [Mon, 4 Nov 2024 08:56:33 +0000 (09:56 +0100)] 
More Tidy

17 months agoRefactor doGenericTopRemotes()
Otto Moerbeek [Mon, 4 Nov 2024 08:47:36 +0000 (09:47 +0100)] 
Refactor doGenericTopRemotes()

17 months agoTidy
Otto Moerbeek [Mon, 4 Nov 2024 08:41:15 +0000 (09:41 +0100)] 
Tidy

17 months agorec: periodic stats cleanup and rename outqueries-per-query to outqueries-per-query...
Otto Moerbeek [Fri, 1 Nov 2024 10:38:03 +0000 (11:38 +0100)] 
rec: periodic stats cleanup and rename outqueries-per-query to outqueries-per-query-perc

Also
- cleans up two TCounters that where unused and/or redundant.
- group the log lines more naturally
- print doubles with two decimal places

17 months agoMerge pull request #14792 from rgacogne/ddist-coverity-202410
Remi Gacogne [Mon, 4 Nov 2024 08:25:57 +0000 (09:25 +0100)] 
Merge pull request #14792 from rgacogne/ddist-coverity-202410

dnsdist: Fix Coverity warning 445614: " Argument cannot be negative"

17 months agoMerge pull request #14794 from phonedph1/no-makerule
Remi Gacogne [Mon, 4 Nov 2024 08:25:06 +0000 (09:25 +0100)] 
Merge pull request #14794 from phonedph1/no-makerule

dnsdist: stop using makeRule, update Qname to QName so links should work

17 months agoReformat
Otto Moerbeek [Tue, 29 Oct 2024 11:50:16 +0000 (12:50 +0100)] 
Reformat

17 months agoCorrect initial value of d_used
Otto Moerbeek [Tue, 29 Oct 2024 11:20:09 +0000 (12:20 +0100)] 
Correct initial value of d_used

17 months agoTidy
Otto Moerbeek [Tue, 29 Oct 2024 11:06:30 +0000 (12:06 +0100)] 
Tidy

17 months agoTwo more case, assert on inconsistency
Otto Moerbeek [Tue, 29 Oct 2024 10:48:54 +0000 (11:48 +0100)] 
Two more case, assert on inconsistency

17 months agoSame move treatment for value
Otto Moerbeek [Mon, 28 Oct 2024 14:08:41 +0000 (15:08 +0100)] 
Same move treatment for value

Here no refs being lowered (for the rec case) but it might save a few cycles

17 months agorec: release ref to key in MTasker::waitEvent
Otto Moerbeek [Mon, 28 Oct 2024 13:45:07 +0000 (14:45 +0100)] 
rec: release ref to key in MTasker::waitEvent

If we do not do that, only the next call of sendEvent will release
the shared pointer to the TCPConnectionHanlder in PacketID. This
might delay cleaning TCP objects up on not-so-busy threads.

Fixes #13422, thought it can still take a while on idle recursors,
as the housekeeping function is not called often in those cases.

17 months agoAllow zero for no limit in getRecordCacheRecords()
Otto Moerbeek [Mon, 28 Oct 2024 09:52:56 +0000 (10:52 +0100)] 
Allow zero for no limit in getRecordCacheRecords()

Also better distinction between the term record and record set in code and docs

17 months agorec: make valgrind build and testrunner run work again 14801/head
Otto Moerbeek [Fri, 25 Oct 2024 12:49:04 +0000 (14:49 +0200)] 
rec: make valgrind build and testrunner run work again

The testrunner run becomes very slow, a non-zero inception skew is needed.

17 months agoMerge pull request #14787 from fredmorcos/lmdb-typed-cleanups
Peter van Dijk [Thu, 24 Oct 2024 14:29:57 +0000 (16:29 +0200)] 
Merge pull request #14787 from fredmorcos/lmdb-typed-cleanups

Cleanup lints & macros in lmdb-typed.hh

17 months agoclang-tidy tweaks
Otto Moerbeek [Thu, 24 Oct 2024 13:49:29 +0000 (15:49 +0200)] 
clang-tidy tweaks

17 months agoRefactor prompted by CodeQL
Otto Moerbeek [Thu, 24 Oct 2024 12:17:48 +0000 (14:17 +0200)] 
Refactor prompted by CodeQL

17 months agoReorganize a few things, add a Lua hook that's called on startup and (nice) shutdown
Otto Moerbeek [Thu, 24 Oct 2024 08:30:48 +0000 (10:30 +0200)] 
Reorganize a few things, add a Lua hook that's called on startup and (nice) shutdown

17 months agoAdd a test and a fix a few things in getRecordCacheRecords/putIntoRecordCache
Otto Moerbeek [Mon, 21 Oct 2024 13:55:11 +0000 (15:55 +0200)] 
Add a test and a fix a few things in getRecordCacheRecords/putIntoRecordCache

17 months agoDocument putIntoRecordCache and getRecordCacheRecords
Otto Moerbeek [Mon, 21 Oct 2024 13:54:53 +0000 (15:54 +0200)] 
Document putIntoRecordCache and getRecordCacheRecords

17 months agoRefactor some code, fix RU scanning (it produced LRU instead of MRU entries before)
Otto Moerbeek [Tue, 15 Oct 2024 08:49:38 +0000 (10:49 +0200)] 
Refactor some code, fix RU scanning (it produced LRU instead of MRU entries before)

17 months agoMake Lua startup script customizable
Otto Moerbeek [Mon, 14 Oct 2024 13:22:25 +0000 (15:22 +0200)] 
Make Lua startup script customizable

17 months agoExtend pdnslog to allow for structured key-value pairs
Otto Moerbeek [Mon, 14 Oct 2024 11:56:39 +0000 (13:56 +0200)] 
Extend pdnslog to allow for structured key-value pairs

17 months agoCleanup of PB encoding, including logging and some meta info
Otto Moerbeek [Mon, 14 Oct 2024 09:29:17 +0000 (11:29 +0200)] 
Cleanup of PB encoding, including logging and some meta info

17 months agoBetter (faster) encoding/decoding
Otto Moerbeek [Fri, 11 Oct 2024 11:03:03 +0000 (13:03 +0200)] 
Better (faster) encoding/decoding

17 months agoBasic functions to dump and undump record cache content
Otto Moerbeek [Fri, 11 Oct 2024 09:42:44 +0000 (11:42 +0200)] 
Basic functions to dump and undump record cache content

18 months agostop using makeRule, update Qname to QName so links should work 14794/head
phonedph1 [Thu, 24 Oct 2024 02:19:26 +0000 (20:19 -0600)] 
stop using makeRule, update Qname to QName so links should work

18 months agodnsdist: Fix Coverity warning 445614: " Argument cannot be negative" 14792/head
Remi Gacogne [Tue, 22 Oct 2024 09:53:25 +0000 (11:53 +0200)] 
dnsdist: Fix Coverity warning 445614: " Argument cannot be negative"

18 months agoRefresh spelling configuration 14790/head
Josh Soref [Mon, 21 Oct 2024 18:31:15 +0000 (14:31 -0400)] 
Refresh spelling configuration

* Roughly merging configuration from https://github.com/check-spelling/spell-check-this/commit/f398e2297a86886bcb3f04e6627ea57d969a80b1
* Adding `regression-tests.*/description` to only to enable checking
* Turning on `check_file_names` to check file name paths

18 months agospelling: the
Josh Soref [Mon, 21 Oct 2024 18:46:05 +0000 (14:46 -0400)] 
spelling: the

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
18 months agospelling: sensitivity
Josh Soref [Mon, 21 Oct 2024 19:11:49 +0000 (15:11 -0400)] 
spelling: sensitivity

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
18 months agospelling: mixed-case
Josh Soref [Mon, 21 Oct 2024 19:22:17 +0000 (15:22 -0400)] 
spelling: mixed-case

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
18 months agospelling: maintained
Josh Soref [Mon, 21 Oct 2024 19:11:00 +0000 (15:11 -0400)] 
spelling: maintained

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
18 months agospelling: long-standing
Josh Soref [Mon, 21 Oct 2024 18:49:44 +0000 (14:49 -0400)] 
spelling: long-standing

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
18 months agospelling: its
Josh Soref [Mon, 21 Oct 2024 18:49:30 +0000 (14:49 -0400)] 
spelling: its

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
18 months agospelling: ip address + port
Josh Soref [Mon, 21 Oct 2024 19:21:29 +0000 (15:21 -0400)] 
spelling: ip address + port

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
18 months agospelling: greater
Josh Soref [Mon, 21 Oct 2024 18:47:17 +0000 (14:47 -0400)] 
spelling: greater

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
18 months agospelling: case-sensitive
Josh Soref [Mon, 21 Oct 2024 18:46:38 +0000 (14:46 -0400)] 
spelling: case-sensitive

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
18 months agospelling: case-insensitive
Josh Soref [Mon, 21 Oct 2024 18:46:28 +0000 (14:46 -0400)] 
spelling: case-insensitive

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
18 months agospelling: a
Josh Soref [Mon, 21 Oct 2024 18:45:49 +0000 (14:45 -0400)] 
spelling: a

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
18 months agoCleanup lints & macros in lmdb-typed.hh 14787/head
Fred Morcos [Sun, 20 Oct 2024 19:04:27 +0000 (21:04 +0200)] 
Cleanup lints & macros in lmdb-typed.hh

18 months agoFinally fix the clang-tidy issues. 14788/head
Otto Moerbeek [Mon, 21 Oct 2024 07:52:16 +0000 (09:52 +0200)] 
Finally fix the clang-tidy issues.

Root cause was the slightly different parsing or the Checks: line, newer version handle the single quotes differently.
Also remove two entries that are not present on older clang-tidy implementations.

18 months agoMerge pull request #14784 from fredmorcos/small-cleanups
Peter van Dijk [Sun, 20 Oct 2024 14:15:46 +0000 (16:15 +0200)] 
Merge pull request #14784 from fredmorcos/small-cleanups

Small cleanups

18 months agoMerge pull request #14714 from Habbie/el8-gcc-toolset-13
Peter van Dijk [Fri, 18 Oct 2024 15:21:16 +0000 (17:21 +0200)] 
Merge pull request #14714 from Habbie/el8-gcc-toolset-13

el-8: use gcc-toolset-13

18 months agoMerge pull request #14785 from rgacogne/fix-lmdb-safe-except
Fred Morcos [Fri, 18 Oct 2024 15:13:26 +0000 (17:13 +0200)] 
Merge pull request #14785 from rgacogne/fix-lmdb-safe-except

dnsdist: Add missing `stdexcept` include in `lmdb-safe.hh`

18 months agoMerge pull request #14777 from fredmorcos/fix-clang-tidy-again
Fred Morcos [Fri, 18 Oct 2024 15:12:48 +0000 (17:12 +0200)] 
Merge pull request #14777 from fredmorcos/fix-clang-tidy-again

Fix clang-tidy (again)

18 months agodnsdist: Add missing `stdexcept` include in `lmdb-safe.hh` 14785/head
Remi Gacogne [Fri, 18 Oct 2024 14:20:37 +0000 (16:20 +0200)] 
dnsdist: Add missing `stdexcept` include in `lmdb-safe.hh`

It was only included for non-dnsdist contexts, but `std::runtime_error`
is used in all contexts and gcc version 14.2.1 20240910 (at least) is
not happy about it:
```
In file included from ext/lmdb-safe/lmdb-safe.cc:2:
ext/lmdb-safe/lmdb-safe.hh: In member function ‘int MDBROTransactionImpl::get(MDB_dbi, const MDBInVal&, MDBOutVal&)’:
ext/lmdb-safe/lmdb-safe.hh:379:18: error: ‘runtime_error’ is not a member of ‘std’
  379 |       throw std::runtime_error("Attempt to use a closed RO transaction for get");
      |
```

18 months agoSome meson cleanup work before lmdb-safe tests 14784/head
Fred Morcos [Fri, 18 Oct 2024 11:52:07 +0000 (13:52 +0200)] 
Some meson cleanup work before lmdb-safe tests

18 months agoMinor formatting and cleanup
Fred Morcos [Fri, 18 Oct 2024 11:51:57 +0000 (13:51 +0200)] 
Minor formatting and cleanup

18 months agoMerge pull request #14782 from fredmorcos/rework-mdb-inout-vals
Fred Morcos [Fri, 18 Oct 2024 11:34:52 +0000 (13:34 +0200)] 
Merge pull request #14782 from fredmorcos/rework-mdb-inout-vals

Rework MDBIn/OutVal

18 months agoMerge pull request #14658 from phonedph1/moredump
Remi Gacogne [Fri, 18 Oct 2024 11:25:57 +0000 (13:25 +0200)] 
Merge pull request #14658 from phonedph1/moredump

dnsdist: dump more packet cache

18 months agoStatically ensure MDBInVal can store requested values 14782/head
Fred Morcos [Fri, 18 Oct 2024 10:42:00 +0000 (12:42 +0200)] 
Statically ensure MDBInVal can store requested values

18 months agoMerge pull request #14781 from bjacquin/dev/beber/pdns-version-string
Peter van Dijk [Fri, 18 Oct 2024 10:23:54 +0000 (12:23 +0200)] 
Merge pull request #14781 from bjacquin/dev/beber/pdns-version-string

pdns: allow empty string in version-string

18 months agoFixup includes
Fred Morcos [Thu, 17 Oct 2024 17:09:33 +0000 (19:09 +0200)] 
Fixup includes

18 months agoRework MDBInVal
Fred Morcos [Thu, 17 Oct 2024 14:16:36 +0000 (16:16 +0200)] 
Rework MDBInVal

18 months agoRework MDBOutVal
Fred Morcos [Thu, 17 Oct 2024 14:02:17 +0000 (16:02 +0200)] 
Rework MDBOutVal

18 months agoFix std::string include in lmdb-typed header
Fred Morcos [Thu, 17 Oct 2024 13:45:18 +0000 (15:45 +0200)] 
Fix std::string include in lmdb-typed header

18 months agoLMDBLS Cleanups
Fred Morcos [Thu, 17 Oct 2024 13:42:16 +0000 (15:42 +0200)] 
LMDBLS Cleanups

18 months agolmdb-safe header lint & formatting cleanups
Fred Morcos [Thu, 17 Oct 2024 13:40:27 +0000 (15:40 +0200)] 
lmdb-safe header lint & formatting cleanups

18 months agoMerge pull request #14778 from fredmorcos/lmdb-safe-cleanups
Fred Morcos [Thu, 17 Oct 2024 12:03:42 +0000 (14:03 +0200)] 
Merge pull request #14778 from fredmorcos/lmdb-safe-cleanups

Some cleanups for lmdb-safe

18 months agoMerge pull request #14718 from emmanuel-ferdman/master
Peter van Dijk [Thu, 17 Oct 2024 11:24:25 +0000 (13:24 +0200)] 
Merge pull request #14718 from emmanuel-ferdman/master

regression-tests.auth-py: remove duplicate method

18 months agoCleanup includes in lmdbbackend 14778/head
Fred Morcos [Thu, 17 Oct 2024 08:29:31 +0000 (10:29 +0200)] 
Cleanup includes in lmdbbackend

18 months agoRefactor shards cmdline handling
Fred Morcos [Thu, 17 Oct 2024 08:27:35 +0000 (10:27 +0200)] 
Refactor shards cmdline handling