]>
git.ipfire.org Git - thirdparty/pdns.git/log
Otto [Fri, 15 Oct 2021 06:33:17 +0000 (08:33 +0200)]
Only set recursion protection once we know we do not return because of an error.
Also catch exception thrown by executeCode.
Otto [Thu, 14 Oct 2021 12:24:07 +0000 (14:24 +0200)]
Sync with https://github.com/PowerDNS/dnsmessage
Otto Moerbeek [Thu, 14 Oct 2021 12:19:13 +0000 (14:19 +0200)]
Merge pull request #10567 from omoerbeek/rec-eventtrace
Rec: eventtrace
Otto [Thu, 14 Oct 2021 10:57:12 +0000 (12:57 +0200)]
whitespace in dnsmessage.proto
Otto [Thu, 14 Oct 2021 10:30:25 +0000 (12:30 +0200)]
Fix rebase botch that partially undid PR #10797
Remi Gacogne [Thu, 14 Oct 2021 07:35:37 +0000 (09:35 +0200)]
Merge pull request #10782 from rgacogne/ddist-more-http2-coverage
dnsdist: Improve the coverage of the outgoing DoH code
Remi Gacogne [Thu, 14 Oct 2021 07:34:54 +0000 (09:34 +0200)]
Merge pull request #10844 from rgacogne/ddist-clear-udp-states-tcp-only-backend
dnsdist: Clear the UDP states of TCP-only backends
Remi Gacogne [Wed, 13 Oct 2021 16:06:28 +0000 (18:06 +0200)]
dnsdist: Clear the UDP states of TCP-only backends
Otto Moerbeek [Wed, 13 Oct 2021 13:59:00 +0000 (15:59 +0200)]
Merge pull request #10840 from omoerbeek/rec-test-extra-records-in-answer
rec: Add tests (with and without DNSSEC validation) for records in the answer section not asked for
Remi Gacogne [Thu, 30 Sep 2021 14:57:47 +0000 (16:57 +0200)]
dnsdist: Add XForwarded to the spell checker list
Remi Gacogne [Thu, 30 Sep 2021 14:52:59 +0000 (16:52 +0200)]
dnsdist: Add regression tests for outgoing DoH health-checks and X-Forwarded-* headers
Remi Gacogne [Thu, 30 Sep 2021 14:51:58 +0000 (16:51 +0200)]
dnsdist: Document addXForwardedHeaders on DoH backends
Remi Gacogne [Thu, 30 Sep 2021 13:49:23 +0000 (15:49 +0200)]
dnsdist: Clean up Lua objects before exiting, in coverage mode
Remi Gacogne [Thu, 30 Sep 2021 13:42:25 +0000 (15:42 +0200)]
dnsdist: Better handling of exceptions in the TCP/DoH workers
Exceptions might be raised when the process is exiting because the
internal pipes have been closed by the remote end, for example when
coverage mode is enabled.
Remi Gacogne [Wed, 13 Oct 2021 13:18:40 +0000 (15:18 +0200)]
Merge pull request #10775 from rgacogne/ddist-fix-unit-tests-connectivity
dnsdist: Fix the unit tests to handle v4-only or v6-only connectivity
Remi Gacogne [Wed, 13 Oct 2021 13:17:53 +0000 (15:17 +0200)]
Merge pull request #10823 from rgacogne/ddist-outgoing-release-buffer-renego
dnsdist: Disable TLS renegotiation, release buffers for outgoing TLS
Remi Gacogne [Wed, 13 Oct 2021 13:16:56 +0000 (15:16 +0200)]
Merge pull request #10822 from rgacogne/ddist-document-dynblock-ringbuffer-link
dnsdist: Document the ringbuffers' size impacts Dynamic Blocks
Remi Gacogne [Wed, 13 Oct 2021 13:16:44 +0000 (15:16 +0200)]
Merge pull request #10821 from rgacogne/rename-queued-processed-remote-logger
Rename the 'queued' metric of the Remote Logger to 'processed'
Remi Gacogne [Wed, 13 Oct 2021 13:16:25 +0000 (15:16 +0200)]
Merge pull request #10820 from rgacogne/ddist-add-hashed-changelog-upgrade
dnsdist: Add #10157 to the upgrade guide and the 1.7.0-alpha1 ChangeLog
Otto Moerbeek [Wed, 13 Oct 2021 12:36:09 +0000 (14:36 +0200)]
Merge pull request #10836 from rgacogne/rec-no-false-sharing
rec: Prevent false sharing for the recursor's metrics
Otto [Wed, 13 Oct 2021 07:19:19 +0000 (09:19 +0200)]
Fix botch spotted by rgacogne: setup the part of the protobuf message that
is copied to the packet cache *before* we do the copy.
Otto [Fri, 17 Sep 2021 13:45:39 +0000 (15:45 +0200)]
Correct type for timestamp
Otto [Fri, 17 Sep 2021 09:38:07 +0000 (11:38 +0200)]
Process review comments: move semantics, more general event names and
re-adjust timebase if an event is added before the current base.
Otto [Wed, 15 Sep 2021 11:29:06 +0000 (13:29 +0200)]
Update docs now that a few things have changed.
Otto [Wed, 15 Sep 2021 09:02:20 +0000 (11:02 +0200)]
Allow for a custom eventtype, with a user-specified name
Otto [Wed, 15 Sep 2021 08:20:20 +0000 (10:20 +0200)]
Move timestamps to a signed type
Otto [Wed, 15 Sep 2021 08:10:26 +0000 (10:10 +0200)]
Comments in .proto file
Otto [Mon, 23 Aug 2021 10:07:08 +0000 (12:07 +0200)]
Docs for event tracing
Otto [Thu, 19 Aug 2021 09:46:49 +0000 (11:46 +0200)]
Basic runtime global enabling/disabling of event traces via setting and rec_control
Otto [Tue, 6 Jul 2021 14:44:08 +0000 (16:44 +0200)]
Add explicit uint32_t and int32_t setter, GCC thinks it is needed
Otto [Tue, 6 Jul 2021 11:27:26 +0000 (13:27 +0200)]
Move the sending of protobuf resp down so it has all the events
Otto [Tue, 6 Jul 2021 10:58:50 +0000 (12:58 +0200)]
Add pre gettagffi trace points
Otto [Tue, 6 Jul 2021 09:20:53 +0000 (11:20 +0200)]
Start of protobuf handling
Otto [Wed, 16 Jun 2021 10:34:01 +0000 (12:34 +0200)]
Start of eventTrace code.
Missing: config, many trace points, protobuf export.
Otto [Wed, 13 Oct 2021 11:28:03 +0000 (13:28 +0200)]
Add tests (with and without DNSSEC validation) for records in the answer section not asked for
Fixes #6332
Otto Moerbeek [Wed, 13 Oct 2021 10:32:16 +0000 (12:32 +0200)]
Merge pull request #10797 from omoerbeek/rec-pc-ttl-no-records
rec: Use packetcache-servfail-ttl for all packet cache entries considered an error reply
Otto [Wed, 13 Oct 2021 10:26:16 +0000 (12:26 +0200)]
Add missing include
Otto [Wed, 13 Oct 2021 09:12:28 +0000 (11:12 +0200)]
Convert more atomics to stat_t and eliminate AtomicCounter form the recursor
(except in cases that are shared by with auth).
I changed two AtomicCounters to atomic<int32>; their range is limited and
they are not updated very frequently.
Otto Moerbeek [Wed, 13 Oct 2021 08:01:00 +0000 (10:01 +0200)]
Merge pull request #10837 from gmelikov/examples
Recursor: clean up kv-example-script.lua
Remi Gacogne [Wed, 13 Oct 2021 07:24:47 +0000 (09:24 +0200)]
Merge pull request #10832 from phonedph1/concurrent-idea
dnsdist: Rule for basing decisions on outstanding queries in a pool
Otto Moerbeek [Tue, 12 Oct 2021 15:42:16 +0000 (17:42 +0200)]
Merge pull request #10838 from omoerbeek/rec-structlog-backward
rec: A compatibiliy macro to have bold old and new (structured) logging.
Otto Moerbeek [Tue, 12 Oct 2021 15:42:01 +0000 (17:42 +0200)]
Merge pull request #10839 from omoerbeek/rec-rpz-extendedErrorCode-docs
rec: Provide a little example for extendedErrorCode/extendedErrorExtra
ph1 [Tue, 12 Oct 2021 15:29:34 +0000 (09:29 -0600)]
test case
ph1 [Tue, 12 Oct 2021 15:29:23 +0000 (09:29 -0600)]
typo; update version; actually include the Lua binding
Otto Moerbeek [Tue, 12 Oct 2021 13:49:56 +0000 (15:49 +0200)]
typo
Co-authored-by: Remi Gacogne <github@coredump.fr>
Remi Gacogne [Tue, 12 Oct 2021 12:56:37 +0000 (14:56 +0200)]
Merge pull request #10814 from chbruyand/dnsdist-setednsoptionaction
dnsdist: add lua support for SetEDNSOptionAction
Remi Gacogne [Tue, 12 Oct 2021 12:56:13 +0000 (14:56 +0200)]
Merge pull request #10833 from chbruyand/dnsdist-protocol-grepq
dnsdist: add incoming and outgoing protocols to grepq
Otto [Tue, 12 Oct 2021 12:45:47 +0000 (14:45 +0200)]
Spelling: add EDE as a word
Otto [Tue, 12 Oct 2021 12:40:35 +0000 (14:40 +0200)]
Tell the default value inn the upgrade notes
Otto [Tue, 12 Oct 2021 11:47:22 +0000 (13:47 +0200)]
Provide a little example for extendedErrorCode/extendedErrorExtra
Otto [Tue, 12 Oct 2021 10:19:55 +0000 (12:19 +0200)]
Add setting to switch to non-structed logging
George Melikov [Mon, 11 Oct 2021 16:01:23 +0000 (19:01 +0300)]
kv-example-script.lua: clean up spaces + empty lines
Otto [Wed, 6 Oct 2021 14:18:15 +0000 (16:18 +0200)]
A compatibiliy macro to have both old and new logging.
Existing logging is routed to old-style to avoid breaking log scanner
tools. New logging can use the structured logging API.
George Melikov [Mon, 11 Oct 2021 15:57:57 +0000 (18:57 +0300)]
kv-example-script.lua: use pdnslog() instead of print()
Charles-Henri Bruyand [Mon, 11 Oct 2021 14:19:17 +0000 (16:19 +0200)]
Merge pull request #1 from rgacogne/dnsdist-protocol-grepq
dnsdist: Prevent implicit conversions between dnsdist::Protocol and uint8_t
Remi Gacogne [Mon, 11 Oct 2021 14:00:19 +0000 (16:00 +0200)]
dnsdist: Return a pretty protocol string for DNSResponse objects
Remi Gacogne [Mon, 11 Oct 2021 13:52:18 +0000 (15:52 +0200)]
dnsdist: Prevent implicit conversions between dnsdist::Protocol and uint8_t
This commit makes sure that we always use the dnsdist::Protocol type,
and that we cannot easily convert to or from a different type by mistake.
C++ really dropped the ball by making it impossible to declare methods
on the 'enum class' that solved the issue of making regular enums
implicitly convertible to int and back, thus making it possible to
assign and compare different types of enums together, as well as
enums and ints.
The result is that we are stuck with declaring classes to hold our
methods, along with a lot of plumbing to make sure that we can convert
in some cases but not allow obvious mistakes from happening.
Otto Moerbeek [Mon, 11 Oct 2021 11:30:08 +0000 (13:30 +0200)]
Merge pull request #10826 from omoerbeek/rec-prep-4.5.6
rec: Prep for rec-4.5.6
Otto Moerbeek [Mon, 11 Oct 2021 11:07:33 +0000 (13:07 +0200)]
Update 4.5.rst
Otto [Mon, 11 Oct 2021 10:11:15 +0000 (12:11 +0200)]
Add a few tests for the PacketCache TTLs:
- ordinary records case
- NXDomain and NoData cases
- ServFail case
The "no answer and no auth records" is not possible to generate using an Auth Zone afaik.
Remi Gacogne [Mon, 11 Oct 2021 09:08:05 +0000 (11:08 +0200)]
rec: Prevent false sharing for the recursor's metrics
Otto Moerbeek [Mon, 11 Oct 2021 09:04:00 +0000 (11:04 +0200)]
Docs improvements from review
Co-authored-by: Remi Gacogne <github@coredump.fr>
Charles-Henri Bruyand [Mon, 11 Oct 2021 09:01:52 +0000 (11:01 +0200)]
fix fuzz_target_dnsdistcache build
Otto Moerbeek [Mon, 11 Oct 2021 08:45:33 +0000 (10:45 +0200)]
Merge pull request #10828 from omoerbeek/rec-proxy-protobuf-test
rec: Basic test for the `from' and `to' fields in protobuf when proxy protocol is used.
Charles-Henri Bruyand [Mon, 11 Oct 2021 08:12:15 +0000 (10:12 +0200)]
dnsdist: add incoming and outgoing protocols to grepq
ph1 [Sun, 10 Oct 2021 02:35:23 +0000 (20:35 -0600)]
Rule for outstanding limits
Pieter Lexis [Sat, 9 Oct 2021 09:02:54 +0000 (11:02 +0200)]
Merge pull request #10831 from phonedph1/patch-29
Update dq.rst
phonedph1 [Sat, 9 Oct 2021 01:48:16 +0000 (19:48 -0600)]
Update dq.rst
Otto Moerbeek [Fri, 8 Oct 2021 12:36:26 +0000 (14:36 +0200)]
Basic test for the `from' and `to' fields in protobuf when proxy protocol is used.
Fixes #10114, as there are already tests for the other mentioned cases.
Peter van Dijk [Fri, 8 Oct 2021 11:11:42 +0000 (13:11 +0200)]
Merge pull request #10819 from Habbie/proxy-guide
auth, rec docs: some improvements
Otto Moerbeek [Fri, 8 Oct 2021 09:33:23 +0000 (11:33 +0200)]
Prep for rec-4.5.6
aerique [Fri, 8 Oct 2021 08:26:31 +0000 (10:26 +0200)]
Merge pull request #10818 from aerique/feature/add-auth-45-46-to-repo-script
Add auth-45 and auth-46 to repo test script.
Otto Moerbeek [Fri, 8 Oct 2021 08:17:46 +0000 (10:17 +0200)]
Merge pull request #10817 from omoerbeek/rec-prep-4.4.6
rec: Prep for rec-4.4.6
Otto Moerbeek [Fri, 8 Oct 2021 08:14:24 +0000 (10:14 +0200)]
Quating and spelling
Otto [Wed, 6 Oct 2021 11:36:22 +0000 (13:36 +0200)]
Prep for rec-4.4.6
Otto Moerbeek [Fri, 8 Oct 2021 05:35:32 +0000 (07:35 +0200)]
Condition covering NoError, NXDomain and missing records properly
Co-authored-by: Remi Gacogne <github@coredump.fr>
Otto Moerbeek [Fri, 8 Oct 2021 05:33:30 +0000 (07:33 +0200)]
Merge pull request #10798 from gmelikov/examples
Recursor: update powerdns-example-script.lua
Remi Gacogne [Thu, 7 Oct 2021 15:35:26 +0000 (17:35 +0200)]
dnsdist: Disable TLS renegotiation, release buffers for outgoing TLS
We already do that for incoming TLS connections, do it for outgoing
ones as well.
Remi Gacogne [Thu, 7 Oct 2021 14:07:01 +0000 (16:07 +0200)]
dnsdist: Document the ringbuffers' size impacts Dynamic Blocks
The number of entries available in the in-memory ring buffers is
crucial for some of the Dynamic Block rules, as they simply will never
trigger if there are too few queries and responses available.
Suggested by Denis Machard on the mailing-list (thanks!).
Remi Gacogne [Thu, 7 Oct 2021 12:34:02 +0000 (14:34 +0200)]
Rename the 'queued' metric of the Remote Logger to 'processed'
Since it was not clear at all whether 'queued' meant 'has been put
in the queue at some point, might have been sent or not' or 'actually
still in the queue' (it was the former).
Remi Gacogne [Thu, 7 Oct 2021 12:23:31 +0000 (14:23 +0200)]
dnsdist: Add #10157 to the upgrade guide and the 1.7.0-alpha1 ChangeLog
As suggested by Denis Machard on the mailing-list (thanks!).
Peter van Dijk [Thu, 7 Oct 2021 10:03:45 +0000 (12:03 +0200)]
add pdnsutil note about attodot removal to upgrade guide
Peter van Dijk [Thu, 7 Oct 2021 09:37:11 +0000 (11:37 +0200)]
auth, rec docs: link to dnsdist PROXY guide
Erik Winkels [Thu, 7 Oct 2021 08:32:18 +0000 (10:32 +0200)]
Add auth-45 and auth-46 to repo test script.
Also remove auth-41, auth-42 and rec-42 from the script.
Peter van Dijk [Thu, 7 Oct 2021 08:24:06 +0000 (10:24 +0200)]
Merge pull request #10747 from Habbie/auth-4.6.0-alpha1-docs
auth 4.6.0 alpha1: changelog & secpoll
Peter van Dijk [Tue, 21 Sep 2021 14:04:35 +0000 (16:04 +0200)]
auth 4.6.0 alpha1: changelog & secpoll
Remi Gacogne [Thu, 7 Oct 2021 07:59:34 +0000 (09:59 +0200)]
Merge pull request #10791 from chbruyand/dnsdist-skip-options
dnsdist: allow skipping arbitrary EDNS options when computing packet hash
Remi Gacogne [Thu, 7 Oct 2021 07:55:40 +0000 (09:55 +0200)]
Merge pull request #10812 from chbruyand/dnsdist-advancedtests-cleanup
dnsdist tests: remove redundant tests
Charles-Henri Bruyand [Wed, 6 Oct 2021 15:19:02 +0000 (17:19 +0200)]
Make sure that any EDNS sent by the backend is removed before forwarding the response to the client
Charles-Henri Bruyand [Wed, 6 Oct 2021 12:30:35 +0000 (14:30 +0200)]
fuzz: update canHashPacket() calls accordingly
Peter van Dijk [Wed, 6 Oct 2021 11:06:17 +0000 (13:06 +0200)]
Merge pull request #10780 from Habbie/remove-attodot
auth: remove attodot feature; fixes #10254
Charles-Henri Bruyand [Wed, 6 Oct 2021 10:14:12 +0000 (12:14 +0200)]
remove DNSDistPacketCache::setCookieHashing and clarify documentation and code about skipped options
Peter van Dijk [Wed, 6 Oct 2021 10:00:27 +0000 (12:00 +0200)]
Merge pull request #10788 from mind04/pdns-getalldomains
auth: improve SOA parse exception handling
Charles-Henri Bruyand [Wed, 6 Oct 2021 09:28:12 +0000 (11:28 +0200)]
prevent unnecessary padding
Charles-Henri Bruyand [Wed, 6 Oct 2021 09:10:19 +0000 (11:10 +0200)]
dnsdist: add lua support for SetEDNSOptionAction to set arbitrary EDNS option and content to the query
Charles-Henri Bruyand [Wed, 6 Oct 2021 09:18:43 +0000 (11:18 +0200)]
dnsdist tests: remove redundant tests
Peter van Dijk [Fri, 1 Oct 2021 15:03:24 +0000 (17:03 +0200)]
pdnsutil check-zone: warn about @ in SOA RNAME
Co-authored-by: Kees Monshouwer <mind04@monshouwer.org>
Peter van Dijk [Thu, 23 Sep 2021 15:25:16 +0000 (17:25 +0200)]
auth: remove attodot feature; fixes #10254
Otto Moerbeek [Wed, 6 Oct 2021 05:42:00 +0000 (07:42 +0200)]
too short title line
Otto Moerbeek [Tue, 5 Oct 2021 19:20:58 +0000 (21:20 +0200)]
Merge pull request #10800 from omoerbeek/rec-fix-10799
rec: Fix compile error on Ubuntu 18