]>
git.ipfire.org Git - thirdparty/pdns.git/log
Otto Moerbeek [Tue, 5 Nov 2024 14:31:07 +0000 (15:31 +0100)]
Add test
Otto Moerbeek [Tue, 5 Nov 2024 12:07:07 +0000 (13:07 +0100)]
rec: don't drop partial result on exception in cache lookup
Fixes #14310
Should be checked for unwanted side-effects, which is pretty tricky.
Otto Moerbeek [Tue, 5 Nov 2024 06:25:33 +0000 (07:25 +0100)]
Merge pull request #14807 from omoerbeek/rec-packetid-ref
rec: drop ref in mtasker when it is no longer needed
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
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
Timothy Pillow [Mon, 4 Nov 2024 14:58:12 +0000 (15:58 +0100)]
fix spell-check. allow grpcs
Timothy Pillow [Mon, 4 Nov 2024 14:23:43 +0000 (15:23 +0100)]
typo fix
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
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
Otto Moerbeek [Mon, 4 Nov 2024 13:44:37 +0000 (14:44 +0100)]
Add a unit test checking the ref counts (fails in master)
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
Timothy Pillow [Mon, 4 Nov 2024 12:26:54 +0000 (13:26 +0100)]
Update dns-over-https.rst
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>
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
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>
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
Otto Moerbeek [Tue, 29 Oct 2024 10:09:53 +0000 (11:09 +0100)]
Docs tweaks (not neccesarily related)
Otto Moerbeek [Tue, 29 Oct 2024 09:54:40 +0000 (10:54 +0100)]
Docs of new behaviour: do not do old-style by default
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
Otto Moerbeek [Mon, 28 Oct 2024 16:02:07 +0000 (17:02 +0100)]
rec: disable parsing of old-style settings by default
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
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
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>
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
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"
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
Otto Moerbeek [Tue, 29 Oct 2024 11:50:16 +0000 (12:50 +0100)]
Reformat
Otto Moerbeek [Tue, 29 Oct 2024 11:20:09 +0000 (12:20 +0100)]
Correct initial value of d_used
Otto Moerbeek [Tue, 29 Oct 2024 11:06:30 +0000 (12:06 +0100)]
Tidy
Otto Moerbeek [Tue, 29 Oct 2024 10:48:54 +0000 (11:48 +0100)]
Two more case, assert on inconsistency
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
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.
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
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.
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
Otto Moerbeek [Thu, 24 Oct 2024 13:49:29 +0000 (15:49 +0200)]
clang-tidy tweaks
Otto Moerbeek [Thu, 24 Oct 2024 12:17:48 +0000 (14:17 +0200)]
Refactor prompted by CodeQL
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
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
Otto Moerbeek [Mon, 21 Oct 2024 13:54:53 +0000 (15:54 +0200)]
Document putIntoRecordCache and getRecordCacheRecords
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)
Otto Moerbeek [Mon, 14 Oct 2024 13:22:25 +0000 (15:22 +0200)]
Make Lua startup script customizable
Otto Moerbeek [Mon, 14 Oct 2024 11:56:39 +0000 (13:56 +0200)]
Extend pdnslog to allow for structured key-value pairs
Otto Moerbeek [Mon, 14 Oct 2024 09:29:17 +0000 (11:29 +0200)]
Cleanup of PB encoding, including logging and some meta info
Otto Moerbeek [Fri, 11 Oct 2024 11:03:03 +0000 (13:03 +0200)]
Better (faster) encoding/decoding
Otto Moerbeek [Fri, 11 Oct 2024 09:42:44 +0000 (11:42 +0200)]
Basic functions to dump and undump record cache content
phonedph1 [Thu, 24 Oct 2024 02:19:26 +0000 (20:19 -0600)]
stop using makeRule, update Qname to QName so links should work
Remi Gacogne [Tue, 22 Oct 2024 09:53:25 +0000 (11:53 +0200)]
dnsdist: Fix Coverity warning 445614: " Argument cannot be negative"
Fred Morcos [Sun, 20 Oct 2024 19:04:27 +0000 (21:04 +0200)]
Cleanup lints & macros in lmdb-typed.hh
Peter van Dijk [Sun, 20 Oct 2024 14:15:46 +0000 (16:15 +0200)]
Merge pull request #14784 from fredmorcos/small-cleanups
Small cleanups
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
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`
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)
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");
|
```
Fred Morcos [Fri, 18 Oct 2024 11:52:07 +0000 (13:52 +0200)]
Some meson cleanup work before lmdb-safe tests
Fred Morcos [Fri, 18 Oct 2024 11:51:57 +0000 (13:51 +0200)]
Minor formatting and cleanup
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
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
Fred Morcos [Fri, 18 Oct 2024 10:42:00 +0000 (12:42 +0200)]
Statically ensure MDBInVal can store requested values
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
Fred Morcos [Thu, 17 Oct 2024 17:09:33 +0000 (19:09 +0200)]
Fixup includes
Fred Morcos [Thu, 17 Oct 2024 14:16:36 +0000 (16:16 +0200)]
Rework MDBInVal
Fred Morcos [Thu, 17 Oct 2024 14:02:17 +0000 (16:02 +0200)]
Rework MDBOutVal
Fred Morcos [Thu, 17 Oct 2024 13:45:18 +0000 (15:45 +0200)]
Fix std::string include in lmdb-typed header
Fred Morcos [Thu, 17 Oct 2024 13:42:16 +0000 (15:42 +0200)]
LMDBLS Cleanups
Fred Morcos [Thu, 17 Oct 2024 13:40:27 +0000 (15:40 +0200)]
lmdb-safe header lint & formatting 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
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
Fred Morcos [Thu, 17 Oct 2024 08:29:31 +0000 (10:29 +0200)]
Cleanup includes in lmdbbackend
Fred Morcos [Thu, 17 Oct 2024 08:27:35 +0000 (10:27 +0200)]
Refactor shards cmdline handling
Fred Morcos [Thu, 17 Oct 2024 08:16:49 +0000 (10:16 +0200)]
Cleanup LMDBBackend::upgradeToSchemav5
Bertrand Jacquin [Wed, 16 Oct 2024 20:43:07 +0000 (21:43 +0100)]
pdns: allow empty string in version-string
This change allow an empty string to be returned to CHAOS version.bind
request. version-string by default is set to "full" through
pdns/auth-main.cc declareArguments(), however does not allow an empty
string to be returned as PowerDNS Recursor does.
Fred Morcos [Wed, 16 Oct 2024 13:54:51 +0000 (15:54 +0200)]
Some cleanups in lmdbbackend
Fred Morcos [Wed, 16 Oct 2024 13:49:30 +0000 (15:49 +0200)]
Cleanup TypedDBI
Fred Morcos [Wed, 16 Oct 2024 13:47:19 +0000 (15:47 +0200)]
Cleanup struct nullindex_t
Fred Morcos [Wed, 16 Oct 2024 13:28:02 +0000 (15:28 +0200)]
Cleanup struct index_on and index_on_function
Fred Morcos [Wed, 16 Oct 2024 13:25:25 +0000 (15:25 +0200)]
Cleanup LMDBIndexOps
Fred Morcos [Wed, 16 Oct 2024 13:22:32 +0000 (15:22 +0200)]
Cleanup makeCombinedKey
Fred Morcos [Wed, 16 Oct 2024 13:17:53 +0000 (15:17 +0200)]
Use uint32_t in makeCombinedKey
Fred Morcos [Wed, 16 Oct 2024 13:15:11 +0000 (15:15 +0200)]
Specialize MDBOutVal::get/getNoStripHeader for uint32_t
Fred Morcos [Wed, 16 Oct 2024 11:31:09 +0000 (13:31 +0200)]
Use uint32_t in MDBGetMaxID and MDBGetRandomID
Fred Morcos [Wed, 16 Oct 2024 11:08:26 +0000 (13:08 +0200)]
Clang-tidy cleanups of lmdb-typed
Fred Morcos [Wed, 16 Oct 2024 10:57:10 +0000 (12:57 +0200)]
Fix clang-tidy (again)
Otto Moerbeek [Tue, 15 Oct 2024 14:06:49 +0000 (16:06 +0200)]
Merge pull request #14775 from omoerbeek/rec-zap-pdns_hw.cc
rec: Delete dangling symlink pdns_hw.cc
Otto Moerbeek [Tue, 15 Oct 2024 13:30:23 +0000 (15:30 +0200)]
rec: Delete dangling symlink pdns_hw.cc
Otto Moerbeek [Mon, 14 Oct 2024 15:26:58 +0000 (17:26 +0200)]
Merge pull request #14770 from omoerbeek/rec-docs-metrics
rec: generate metrics docs when publishing
Otto Moerbeek [Mon, 14 Oct 2024 14:12:42 +0000 (16:12 +0200)]
Fix a few refs
Otto Moerbeek [Mon, 14 Oct 2024 14:12:18 +0000 (16:12 +0200)]
Generate metrics doc file
Peter van Dijk [Mon, 14 Oct 2024 09:44:03 +0000 (11:44 +0200)]
Merge pull request #14621 from fredmorcos/meson-lmdb-regtests
Add lmdb regression tests to meson
Charles-Henri Bruyand [Sat, 12 Oct 2024 19:10:36 +0000 (21:10 +0200)]
dnsdist setTicketsKeyAddedHook: pass a std::string to the hook to avoid luawrapper to truncate content at potential null chars
Peter van Dijk [Fri, 11 Oct 2024 09:33:47 +0000 (11:33 +0200)]
Merge pull request #14766 from Habbie/rec-ignore-snmp-bookworm
bump SNMP ignore from buster to bookworm after buildbot VM upgrade
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
Peter van Dijk [Fri, 11 Oct 2024 08:37:25 +0000 (10:37 +0200)]
fix name of notify binary
Remi Gacogne [Fri, 11 Oct 2024 07:48:08 +0000 (09:48 +0200)]
Merge pull request #14764 from chbruyand/dnsdist-load-tickets-key
dnsdist: add the ability to load a given TLS tickets key
Peter van Dijk [Thu, 10 Oct 2024 12:25:40 +0000 (14:25 +0200)]
Merge pull request #12752 from kpfleming/issue-12714
auth doc: Document 2-step process for consumer zone updates.
Peter van Dijk [Thu, 10 Oct 2024 11:58:02 +0000 (13:58 +0200)]
Merge pull request #14665 from Habbie/sdig-stdin-improvements
auth sdig: some improvements for stdin mode
Charles-Henri Bruyand [Thu, 10 Oct 2024 10:43:15 +0000 (12:43 +0200)]
fix Remi's comments and some formatting
Charles-Henri Bruyand [Wed, 9 Oct 2024 14:21:27 +0000 (16:21 +0200)]
dnsdist: add a global loadTicketsKey function
Charles-Henri Bruyand [Fri, 14 Jun 2024 11:53:27 +0000 (13:53 +0200)]
dnsdist: add the ability to load a given tickets key from lua
Otto Moerbeek [Wed, 9 Oct 2024 08:22:25 +0000 (10:22 +0200)]
Merge pull request #14721 from omoerbeek/followup-14705
Followup to #14705: clang-tidy does not pick up last option listed