]>
git.ipfire.org Git - thirdparty/pdns.git/log
Josh Soref [Thu, 4 Mar 2021 14:57:40 +0000 (09:57 -0500)]
Avoid here
Josh Soref [Thu, 4 Mar 2021 14:40:55 +0000 (09:40 -0500)]
Avoid please-find
Peter van Dijk [Thu, 11 Mar 2021 20:58:06 +0000 (21:58 +0100)]
Merge pull request #10165 from rytis/master
Install vim in docker-auth image
Rytis Sileika [Thu, 11 Mar 2021 19:50:53 +0000 (19:50 +0000)]
Use vim-tiny to reduce image size
Peter van Dijk [Thu, 11 Mar 2021 12:37:23 +0000 (13:37 +0100)]
Merge pull request #10147 from Habbie/auth-4.3.2-docs
auth 4.3.2: docs&secpoll
Peter van Dijk [Fri, 5 Mar 2021 09:09:16 +0000 (10:09 +0100)]
auth 4.3.2: docs&secpoll
Peter van Dijk [Thu, 11 Mar 2021 12:11:47 +0000 (13:11 +0100)]
Merge pull request #10078 from Habbie/csync
add CSYNC type
Rytis Sileika [Wed, 10 Mar 2021 21:13:48 +0000 (21:13 +0000)]
Install vim in docker-auth image
pdnsutil edit-zone requires EDITOR to be set. Currently there's no editor installed at all. Adding vim, so that it can be used as default editor by pdnsutil edit-zone.
Otto Moerbeek [Wed, 10 Mar 2021 15:06:14 +0000 (16:06 +0100)]
Merge pull request #10161 from omoerbeek/real-real-mem-usage
"data" size is unreliable, start using RES, as it seem reliable and relavant
Otto [Wed, 10 Mar 2021 10:45:02 +0000 (11:45 +0100)]
"data" size is unreliable, start using RES, as it seem reliable and relevant
Pieter Lexis [Tue, 9 Mar 2021 10:00:46 +0000 (11:00 +0100)]
Fix secpoll zone
Pieter Lexis [Tue, 9 Mar 2021 09:51:39 +0000 (10:51 +0100)]
Merge pull request #10146 from omoerbeek/prep-rec-4.5.0-alpha2
rec: Prep for rec-4.5.0-alpha3
Otto Moerbeek [Tue, 9 Mar 2021 08:51:18 +0000 (09:51 +0100)]
Merge pull request #10153 from mnordhoff/patch-7
docs: Fix formatting typo in Recursor settings
Otto Moerbeek [Mon, 8 Mar 2021 14:33:34 +0000 (15:33 +0100)]
Merge pull request #10152 from omoerbeek/rec-non-resolving-followup2
Make the non-resolving cache even less aggressive and add a unit test.
Matt Nordhoff [Mon, 8 Mar 2021 13:45:17 +0000 (13:45 +0000)]
docs: Explain what DNSSEC settings aggressive NSEC requires
Matt Nordhoff [Mon, 8 Mar 2021 12:52:08 +0000 (12:52 +0000)]
docs: Fix formatting typo in Recursor settings
Otto [Mon, 8 Mar 2021 12:15:47 +0000 (13:15 +0100)]
It's going to be the 9th of March
Otto [Mon, 8 Mar 2021 10:51:40 +0000 (11:51 +0100)]
Add one more unit test and use the proper counter.
nretrieveAddressesForNS is only incremented on empty results, so the clearing did not work as expected.
Otto [Mon, 8 Mar 2021 11:21:54 +0000 (12:21 +0100)]
it's going to be alpha3
Otto [Mon, 8 Mar 2021 08:48:43 +0000 (09:48 +0100)]
Make the non-resolving cache even less aggressive and add a unit test.
In particular, we clear the entry if we see a succeeding resolve.
This means that we only a couple of failing resolves in a row will
cause a ban. Also change to default non-resolving-ns-max-fails from
1 to 5.
Otto Moerbeek [Fri, 5 Mar 2021 16:24:41 +0000 (17:24 +0100)]
Merge pull request #10151 from omoerbeek/rec-non-resolving-followup
rec: Only put a failing NS in the map if we actually went out and that produced no results
Otto [Fri, 5 Mar 2021 15:26:57 +0000 (16:26 +0100)]
Talk about the rec_control changes and the new non-resolving-... settings
Otto Moerbeek [Fri, 5 Mar 2021 15:12:25 +0000 (16:12 +0100)]
Merge pull request #10149 from omoerbeek/sdig-doh-fastopen
sdig: implement TCP Fast Open for DoH
Otto [Fri, 5 Mar 2021 15:09:29 +0000 (16:09 +0100)]
Only put a failing NS in the map if we actually went out and that
produced no results.
While there, rename a var to be different from the method name.
Peter van Dijk [Fri, 5 Mar 2021 15:08:53 +0000 (16:08 +0100)]
Merge pull request #10105 from Habbie/ldap-docs-bindmethod
auth ldap docs: s/authmethod/bindmethod/
Otto [Fri, 5 Mar 2021 12:36:28 +0000 (13:36 +0100)]
make CURLOPT_TCP_FASTOPEN conditional on availability
Otto [Fri, 5 Mar 2021 12:15:13 +0000 (13:15 +0100)]
sdig: implement TCP Fast Open for DoH
While at it, honour timeout parameter as well for DoT.
Peter van Dijk [Fri, 5 Mar 2021 10:38:16 +0000 (11:38 +0100)]
Merge pull request #10104 from Habbie/sync-dnsmessage
update dnsmessage.proto from upstream
Otto [Fri, 5 Mar 2021 09:05:41 +0000 (10:05 +0100)]
Process review comments
Otto [Fri, 5 Mar 2021 08:33:39 +0000 (09:33 +0100)]
Prep for rec-4.5.0-alpha2
Remi Gacogne [Thu, 4 Mar 2021 16:30:57 +0000 (17:30 +0100)]
Merge pull request #10140 from rgacogne/ddist160-a2-changelog
dnsdist: Update the ChangeLog and secpoll zone for 1.6.0-alpha2
Otto Moerbeek [Thu, 4 Mar 2021 10:33:47 +0000 (11:33 +0100)]
Merge pull request #10010 from omoerbeek/check-time_t-size
Check sizeof(time_t) to be at least 8
Pieter Lexis [Wed, 3 Mar 2021 21:14:44 +0000 (22:14 +0100)]
Merge pull request #10116 from pieterlexis/lmdb-docs
docs: improve rendering of lmdb page
Remi Gacogne [Wed, 3 Mar 2021 16:22:25 +0000 (17:22 +0100)]
Merge pull request #10133 from rgacogne/ddist-cache-shards-purge-expired
dnsdist: Clean up expired entries from all the packet cache's shards
Remi Gacogne [Wed, 3 Mar 2021 15:25:03 +0000 (16:25 +0100)]
dnsdist: Update the ChangeLog and secpoll zone for 1.6.0-alpha2
Remi Gacogne [Wed, 3 Mar 2021 15:14:07 +0000 (16:14 +0100)]
dnsdist: Use modern C++-for loops, as suggested by Otto
Remi Gacogne [Wed, 3 Mar 2021 13:49:03 +0000 (14:49 +0100)]
dnsdist: Remove now unused shard index, we scan every shard anyway
Otto Moerbeek [Wed, 3 Mar 2021 12:25:19 +0000 (13:25 +0100)]
Merge pull request #10118 from pieterlexis/rec-deprecate-process-no-validate
rec: Change dnssec default to `process`
Remi Gacogne [Wed, 3 Mar 2021 12:14:48 +0000 (13:14 +0100)]
Merge pull request #10139 from rgacogne/ddist-remove-trailing-test-overflow
dnsdist: Fix size check during trailing data addition, regression tests
Otto Moerbeek [Wed, 3 Mar 2021 11:42:26 +0000 (12:42 +0100)]
s/contented/contended
Otto Moerbeek [Wed, 3 Mar 2021 11:31:41 +0000 (12:31 +0100)]
Merge pull request #10138 from omoerbeek/format-modules
Move to clang-format-11 and start format checks for pdns/modules
Pieter Lexis [Wed, 3 Mar 2021 11:04:06 +0000 (12:04 +0100)]
extend and fix OutgoingProtobufNoQueriesTest.testA
Pieter Lexis [Wed, 3 Mar 2021 10:33:48 +0000 (11:33 +0100)]
protobuf test: fix and expand the OutgoingProtobufDefaultTest.testA test
Pieter Lexis [Wed, 3 Mar 2021 10:33:02 +0000 (11:33 +0100)]
protobuf test: print message and fix a small bug
Remi Gacogne [Wed, 3 Mar 2021 10:26:25 +0000 (11:26 +0100)]
dnsdist: Revert 'Remove the useless separate entries counter from the cache'
We should not be getting the size of the map without locking it, so
keeping a separate counter is better for now.
Otto [Wed, 3 Mar 2021 10:21:10 +0000 (11:21 +0100)]
Formatting fixes in recursordist
Otto [Wed, 3 Mar 2021 10:05:55 +0000 (11:05 +0100)]
Lets move to bullseye which has more modern clang-format-11
Otto Moerbeek [Wed, 3 Mar 2021 10:12:48 +0000 (11:12 +0100)]
Merge pull request #10137 from omoerbeek/cpp-warnings
Fix a few unused lambda captures and signed/unsigned warnings
Remi Gacogne [Wed, 3 Mar 2021 09:59:11 +0000 (10:59 +0100)]
dnsdist: Fix size check during trailing data addition, regression tests
Otto [Wed, 3 Mar 2021 09:45:04 +0000 (10:45 +0100)]
Start format checks for pdns/modules
Remi Gacogne [Wed, 3 Mar 2021 09:33:12 +0000 (10:33 +0100)]
dnsdist: Prevent an infinite loop when a cache shard is below the limit
Otto [Wed, 3 Mar 2021 08:58:37 +0000 (09:58 +0100)]
Fix a few unused lambda captures and signed/unsigned warnings
Remi Gacogne [Wed, 3 Mar 2021 08:31:44 +0000 (09:31 +0100)]
dnsdist: Make sure the TTD is expired in the cache cleaning unit tests
We were using a too small time margin in the test, causing some issues
to not be expired when the test takes more than one second to insert
the cache entries.
Use a one-hour margin instead.
Remi Gacogne [Wed, 3 Mar 2021 08:07:11 +0000 (09:07 +0100)]
Merge pull request #10131 from rgacogne/ddist-tcp-counters
dnsdist: Do not update the TCP error counters on idle states
Remi Gacogne [Wed, 3 Mar 2021 08:07:02 +0000 (09:07 +0100)]
Merge pull request #10134 from rgacogne/ddist-fix-loop-copy-warning
dnsdist: Prevent a copy in DownstreamConnectionsManager::clear()
Remi Gacogne [Tue, 2 Mar 2021 18:54:41 +0000 (19:54 +0100)]
dnsdist: Prevent a copy in DownstreamConnectionsManager::clear()
We don't care about performance in that place but it prevents a warning.
Remi Gacogne [Tue, 2 Mar 2021 17:16:59 +0000 (18:16 +0100)]
dnsdist: Use modern C++ loops in the packet cache code
Remi Gacogne [Tue, 2 Mar 2021 17:08:17 +0000 (18:08 +0100)]
dnsdist: Remove the useless separate entries counter from the cache
Getting the size of the map is a constant-time operation and should
be as accurate so let's just use that.
Remi Gacogne [Tue, 2 Mar 2021 17:03:17 +0000 (18:03 +0100)]
dnsdist: Remove entries from all the packet cache's shards as well
Remi Gacogne [Tue, 2 Mar 2021 16:50:54 +0000 (17:50 +0100)]
dnsdist: Clean up expired entries from all the packet cache's shards
Otherwise we might remove enough entries from the first shards only
and stop there, which means that the other shards might remain full.
This might be fine if we clean up often enough since the next cleaning
run will start with the remaining shards, but that's sub-optimal when
we are often nearly full because it will prevent new entries from being
inserted in the shards that are full.
Otto Moerbeek [Tue, 2 Mar 2021 16:44:36 +0000 (17:44 +0100)]
Merge pull request #10132 from omoerbeek/sdig-single-write
sdig: write 2-byte header and request in one write call.
Otto [Tue, 2 Mar 2021 15:31:13 +0000 (16:31 +0100)]
Write 2-byte header and request in one write call.
Remi Gacogne [Tue, 2 Mar 2021 14:55:04 +0000 (15:55 +0100)]
dnsdist: Do not update the TCP error counters on idle states
Remi Gacogne [Tue, 2 Mar 2021 14:23:28 +0000 (15:23 +0100)]
Merge pull request #10130 from rgacogne/ddist-src-itf-selection
dnsdist: Remove forgotten warning about source interface selection
Remi Gacogne [Tue, 2 Mar 2021 12:51:23 +0000 (13:51 +0100)]
dnsdist: Remove forgotten warning about source interface selection
Pieter Lexis [Thu, 25 Feb 2021 12:18:48 +0000 (13:18 +0100)]
Fix tests
Pieter Lexis [Wed, 24 Feb 2021 11:00:20 +0000 (12:00 +0100)]
rec: Change dnssec default to `process`
Remi Gacogne [Tue, 2 Mar 2021 12:29:46 +0000 (13:29 +0100)]
Merge pull request #10108 from rgacogne/ddist-tcp-fixes
dnsdist: Fix several bugs in the TCP code path, add unit tests
Remi Gacogne [Wed, 24 Feb 2021 14:20:03 +0000 (15:20 +0100)]
dnsdist: Also update the TTD on a 'write' IO update
Remi Gacogne [Wed, 24 Feb 2021 13:46:38 +0000 (14:46 +0100)]
dnsdist: Re-enable TCP unit tests causing a lot of queries
Remi Gacogne [Wed, 24 Feb 2021 13:38:39 +0000 (14:38 +0100)]
Fix TCP_FASTOPEN_CONNECT detection, add a fastOpen option to sdig
Remi Gacogne [Mon, 22 Feb 2021 10:05:20 +0000 (11:05 +0100)]
dnsdist: Fix sorting in Makefile.am (again)
Remi Gacogne [Mon, 22 Feb 2021 09:37:16 +0000 (10:37 +0100)]
dnsdist: dnsdist-tcp-downstream.cc sorts _before_ dnsdist-tcp.cc
Remi Gacogne [Fri, 19 Feb 2021 15:37:42 +0000 (16:37 +0100)]
dnsdist: More TCP unit tests, clean up the existing ones
Remi Gacogne [Thu, 18 Feb 2021 18:15:22 +0000 (19:15 +0100)]
dnsdist: Fix some non-realistic TCP unit tests
Remi Gacogne [Thu, 18 Feb 2021 17:11:30 +0000 (18:11 +0100)]
dnsdist: Add a unit test for TCP I/O errors with pending queries
Remi Gacogne [Thu, 18 Feb 2021 16:45:06 +0000 (17:45 +0100)]
dnsdist: Add a unit test for outgoing proxy protocol over TCP
Remi Gacogne [Thu, 18 Feb 2021 16:39:04 +0000 (17:39 +0100)]
dnsdist: Fix the addition of the proxy protocol payload when reconnecting
Remi Gacogne [Thu, 18 Feb 2021 13:55:11 +0000 (14:55 +0100)]
dnsdist: Mark GnuTLS DoT connections as closed for reading as well
Remi Gacogne [Wed, 17 Feb 2021 18:01:09 +0000 (19:01 +0100)]
dnsdist: Clean up XFR handling
Remi Gacogne [Wed, 17 Feb 2021 16:22:16 +0000 (17:22 +0100)]
dnsdist: Remove redundant test in the TCP path
Remi Gacogne [Wed, 17 Feb 2021 16:21:26 +0000 (17:21 +0100)]
dnsdist: Add more TCP OOOR unit tests
Remi Gacogne [Tue, 16 Feb 2021 17:54:48 +0000 (18:54 +0100)]
dnsdist: More TCP unit tests
Remi Gacogne [Tue, 16 Feb 2021 17:53:10 +0000 (18:53 +0100)]
dnsdist: Fix a possible nullptr-dereference in TCP handling
We need to be careful about the client going away (closes the connection,
for example) while we are sending queued responses.
Remi Gacogne [Mon, 15 Feb 2021 17:49:58 +0000 (18:49 +0100)]
dnsdist: More TCP out-of-order unit tests
Remi Gacogne [Mon, 15 Feb 2021 14:47:56 +0000 (15:47 +0100)]
dnsdist: Stricter IO checks in the TCP unit tests and more OOOR tests
Remi Gacogne [Mon, 15 Feb 2021 14:45:58 +0000 (15:45 +0100)]
dnsdist: Send a TCP query to the backend if we are not reading an answer
Remi Gacogne [Mon, 15 Feb 2021 14:37:27 +0000 (15:37 +0100)]
dnsdist: Add the TCP response size to the verbose message
Remi Gacogne [Thu, 11 Feb 2021 18:04:37 +0000 (19:04 +0100)]
dnsdist: Add a lot more of TCP unit tests
Remi Gacogne [Fri, 12 Feb 2021 16:56:18 +0000 (17:56 +0100)]
dnsdist: Better handling of backend TCP responses
Remi Gacogne [Thu, 11 Feb 2021 18:03:07 +0000 (19:03 +0100)]
dnsdist: Better handling of TCP responses mixed with queries
Remi Gacogne [Thu, 11 Feb 2021 18:02:03 +0000 (19:02 +0100)]
dnsdist: Clean up the Downstream TCP code by using a TCPIOHandler
Remi Gacogne [Wed, 10 Feb 2021 17:57:02 +0000 (18:57 +0100)]
dnsdist: Add more TCP unit tests
Remi Gacogne [Wed, 10 Feb 2021 17:56:03 +0000 (18:56 +0100)]
dnsdist: No need to retry if the last IO operation failed
Remi Gacogne [Tue, 9 Feb 2021 17:56:09 +0000 (18:56 +0100)]
dnsdist: [WIP] Add unit tests for the TCP stack
Remi Gacogne [Mon, 8 Feb 2021 16:44:11 +0000 (17:44 +0100)]
dnsdist: Fix exceptions handling in TCP/DoT worker threads
Remi Gacogne [Mon, 8 Feb 2021 15:52:45 +0000 (16:52 +0100)]
dnsdist: Add a bit more output to the TCP states debug log
Remi Gacogne [Mon, 8 Feb 2021 15:25:31 +0000 (16:25 +0100)]
dnsdist: Report the error when the GnuTLS handshake failed
Remi Gacogne [Mon, 8 Feb 2021 15:09:32 +0000 (16:09 +0100)]
dnsdist: Minor clean-ups in dnsdist-tcp.cc
Remi Gacogne [Mon, 8 Feb 2021 15:01:07 +0000 (16:01 +0100)]
dnsdist: Add an option to set the size of the TCP internal pipe's buffer