]>
git.ipfire.org Git - thirdparty/pdns.git/log
Peter van Dijk [Fri, 29 Jul 2022 07:44:32 +0000 (09:44 +0200)]
dnsbulktest: initialise struct member; use correct type when setting it
Peter van Dijk [Mon, 18 Jul 2022 11:53:59 +0000 (13:53 +0200)]
Merge pull request #11694 from Groverkss/patch-1
Update `also-notify` docs for non-standard ports
Peter van Dijk [Sun, 17 Jul 2022 22:00:59 +0000 (00:00 +0200)]
Merge pull request #11791 from Habbie/bookworm
add debian bookworm target and run it daily in CI
Peter van Dijk [Sat, 16 Jul 2022 20:38:56 +0000 (22:38 +0200)]
add debian bookworm target and run it daily in CI
Peter van Dijk [Sun, 17 Jul 2022 21:59:00 +0000 (23:59 +0200)]
Merge pull request #11793 from Habbie/el9-no-epel-testing
el9: remove epel-testing, new re2 is in epel9 stable now
Peter van Dijk [Sun, 17 Jul 2022 21:51:50 +0000 (23:51 +0200)]
Merge pull request #11792 from Habbie/kinetic
add ubuntu kinetic target and run it daily in CI
Peter van Dijk [Sun, 17 Jul 2022 20:25:16 +0000 (22:25 +0200)]
el9: remove epel-testing, new re2 is in epel9 stable now
Peter van Dijk [Sun, 17 Jul 2022 20:14:34 +0000 (22:14 +0200)]
Merge pull request #11788 from Habbie/el9
EL9 builds
Peter van Dijk [Sat, 16 Jul 2022 20:38:56 +0000 (22:38 +0200)]
add ubuntu kinetic target and run it daily in CI
Peter van Dijk [Fri, 15 Jul 2022 14:27:22 +0000 (16:27 +0200)]
add 9-stream target and test it daily
Peter van Dijk [Wed, 13 Jul 2022 20:23:45 +0000 (22:23 +0200)]
add el-9 target
Otto Moerbeek [Wed, 13 Jul 2022 11:28:40 +0000 (13:28 +0200)]
Merge pull request #11779 from omoerbeek/rec-edns-followup
rec: edns table simplification followup
aerique [Wed, 13 Jul 2022 09:52:40 +0000 (11:52 +0200)]
Merge pull request #11783 from aerique/feature/jammy-repo-script
Add auth-46 and rec-47 for Ubunty Jammy to repo test script.
Peter van Dijk [Wed, 13 Jul 2022 08:56:27 +0000 (10:56 +0200)]
Merge pull request #11782 from Habbie/auth-4.6.3-docs
auth-4.6.3: changelog and secpoll
Erik Winkels [Wed, 13 Jul 2022 08:46:31 +0000 (10:46 +0200)]
Add auth-46 and rec-47 for Jammy to repo script.
Peter van Dijk [Wed, 13 Jul 2022 08:04:58 +0000 (10:04 +0200)]
auth-4.6.3: changelog and secpoll
Otto Moerbeek [Tue, 12 Jul 2022 07:41:08 +0000 (09:41 +0200)]
rec: edns followup
Simplify handling of edns table. Prompted by Coverity
1490173
Otto Moerbeek [Mon, 11 Jul 2022 09:39:15 +0000 (11:39 +0200)]
Merge pull request #11773 from omoerbeek/rec-udpQueryResponse-size
Rec: fix udp query response size in udpQueryResponse
Otto Moerbeek [Mon, 11 Jul 2022 08:22:43 +0000 (10:22 +0200)]
Add regression test for #11771 (lenght of annswer in udpQueryResponse)
Otto Moerbeek [Mon, 11 Jul 2022 08:21:48 +0000 (10:21 +0200)]
Rec: Resize answer length to actual received length in udpQueryResponse
Fixes #11771
Otto Moerbeek [Sat, 9 Jul 2022 06:57:04 +0000 (08:57 +0200)]
Merge pull request #11769 from omoerbeek/rec-uninited-vars-jammy
rec: Uninited vars, seen by compiling on jammy
Peter van Dijk [Fri, 8 Jul 2022 21:19:17 +0000 (23:19 +0200)]
Merge pull request #11552 from d-frey/patch-1
auth: Simplify code in `Bind2Backend::lookup()`
Otto Moerbeek [Fri, 8 Jul 2022 08:43:38 +0000 (10:43 +0200)]
Merge pull request #11762 from omoerbeek/rec-prep-4.7.1
rec: Prep for rec-4.7.1
Peter van Dijk [Fri, 8 Jul 2022 08:31:56 +0000 (10:31 +0200)]
Merge pull request #11764 from mind04/pdns-lmdb-deletedomain
auth: fix deleteDomain() in lmdb backend
Otto Moerbeek [Thu, 7 Jul 2022 10:42:33 +0000 (12:42 +0200)]
Uninited vars, seen by compiling on jammy
Remi Gacogne [Thu, 7 Jul 2022 07:26:40 +0000 (09:26 +0200)]
Merge pull request #11763 from hlindqvist/dnsdist-negativeandsoaaction-authority-section
Add option to NegativeAndSOAAction to place SOA in the authority section
Kees Monshouwer [Wed, 6 Jul 2022 15:23:38 +0000 (17:23 +0200)]
auth: fix deleteDomain() in lmdb backend
Håkan Lindqvist [Wed, 6 Jul 2022 14:44:37 +0000 (16:44 +0200)]
Add option to NegativeAndSOAAction to place SOA in the authority section
Ie, allow generating a full NODATA/NXDOMAIN cacheable negative response, rather than
an RPZ-style reponse with only an informational SOA record in the additional section
Otto Moerbeek [Tue, 5 Jul 2022 11:58:49 +0000 (13:58 +0200)]
Prep for rec-4.7.1
Remi Gacogne [Tue, 5 Jul 2022 17:22:10 +0000 (19:22 +0200)]
Merge pull request #11761 from rgacogne/ddist-keep-caps-on-user-switch
dnsdist: Keep retained capabilities even when switching user/group
Remi Gacogne [Tue, 5 Jul 2022 15:48:14 +0000 (17:48 +0200)]
dnsdist: Keep retained capabilities even when switching user/group
On Linux, we support retaining some capabilities if we are running
as root (eeew) or as an unprivileged user with ambiant capabilities,
but we did not yet support keeping these if we were started as root
but then switched to a different user ID and/or group ID.
This commit uses `PR_SET_KEEPCAPS`, when available, to do just that,
to be able to retain the capabilities we need without running as a
fully privileged users even when we cannot easily use ambiant
capabilities.
Remi Gacogne [Tue, 5 Jul 2022 08:26:31 +0000 (10:26 +0200)]
Merge pull request #11734 from rgacogne/ddist-nodelay
dnsdist: Set TCP_NODELAY on the TCP connection to backends
Remi Gacogne [Tue, 5 Jul 2022 08:23:53 +0000 (10:23 +0200)]
Merge pull request #11723 from rgacogne/ddist-getrandom
dnsdist: Use getrandom() if available
Otto Moerbeek [Tue, 5 Jul 2022 07:49:38 +0000 (09:49 +0200)]
Merge pull request #11754 from omoerbeek/rec-tcp-nodelay
rec: Set TCP_NODELAY on in and outgoing TCP
Otto Moerbeek [Tue, 5 Jul 2022 07:49:27 +0000 (09:49 +0200)]
Merge pull request #11751 from omoerbeek/rec-zonemd-generic-test-followup
rec: Avoid log spam in tests for for zonemd generic
Otto Moerbeek [Mon, 4 Jul 2022 13:32:13 +0000 (15:32 +0200)]
Avoid log spam in tests
Otto Moerbeek [Mon, 4 Jul 2022 14:19:01 +0000 (16:19 +0200)]
Set TCP_NODELAY on in and outgoing TCP
Peter van Dijk [Mon, 4 Jul 2022 17:59:05 +0000 (19:59 +0200)]
Merge pull request #11752 from Habbie/2136-txt-hidesoadetails
auth 2136: in recently added TXT tests, hide SOA details
Peter van Dijk [Mon, 4 Jul 2022 17:48:48 +0000 (19:48 +0200)]
Merge pull request #11755 from rgacogne/auth-fix-tsig-keys-retrieval
auth: Fix getTSIGKeys() return value in GSQL and LMDB backends
Remi Gacogne [Mon, 4 Jul 2022 17:04:44 +0000 (19:04 +0200)]
auth: Fix getTSIGKeys() return value in GSQL and LMDB backends
These Bind and remote backends return true when at least a TSIG key
is returned, as expected by the API and pdnsutil code, but the GSQL
backend returned false if at least a key was returned and true
otherwise. The LMDB backend always returned false.
This caused `pdnsutil b2b-migrate` not to migrate TSIG keys from a
GSQL or LMDB backend, amongst other things.
Peter van Dijk [Mon, 4 Jul 2022 14:54:43 +0000 (16:54 +0200)]
also update expected_results for the tinydns-data-check test
Peter van Dijk [Mon, 4 Jul 2022 14:07:22 +0000 (16:07 +0200)]
auth 2136: in recently added TXT tests, hide SOA details
Otto Moerbeek [Mon, 4 Jul 2022 13:10:16 +0000 (15:10 +0200)]
Merge pull request #11726 from omoerbeek/rec-zonemd-generic
Rec: allow generic format of records in zone file
aerique [Mon, 4 Jul 2022 11:24:53 +0000 (13:24 +0200)]
Merge pull request #11745 from aerique/feature/clean-up-repo-script
Clean up repo test script.
Peter van Dijk [Mon, 4 Jul 2022 11:23:23 +0000 (13:23 +0200)]
Merge pull request #11738 from Habbie/2136-txt
auth 2136: match autosplit TXT more usefully
Otto Moerbeek [Fri, 1 Jul 2022 12:15:42 +0000 (14:15 +0200)]
Merge pull request #11744 from omoerbeek/rec-glue-ttl-zap-5
rec: remove > 5 check on ttl of glue from the cache.
Erik Winkels [Fri, 1 Jul 2022 11:55:17 +0000 (13:55 +0200)]
Remove EOL releases from repo test script.
Also merge code blocks spread out over identical conditional
statements.
Peter van Dijk [Fri, 1 Jul 2022 11:48:14 +0000 (13:48 +0200)]
Merge pull request #11743 from aerique/feature/add-ubuntu-jammy-to-repo-script
Add Ubuntu Jammy to repo test script.
Otto Moerbeek [Fri, 1 Jul 2022 11:18:58 +0000 (13:18 +0200)]
Remove > 5 check on ttl of glue from the cache.
This makes the view of the record cache consistent with what syncres thinks.
This > 5 has been there since
https://github.com/PowerDNS/pdns/commit/
7bf2638379826e89d655194bf5834bd7deda450a
I *suppose* it was to prevent access data from the cache while it could be cleaned.
But these days we copy data from the cache, so no need for that.
Peter van Dijk [Fri, 1 Jul 2022 10:24:13 +0000 (12:24 +0200)]
auth 2136: match autosplit TXT correctly
Erik Winkels [Fri, 1 Jul 2022 11:13:37 +0000 (13:13 +0200)]
Add Ubuntu Jammy to repo test script.
Peter van Dijk [Fri, 1 Jul 2022 07:44:24 +0000 (09:44 +0200)]
auth: add a bunch of passing rfc2136 TXT tests
Peter van Dijk [Thu, 30 Jun 2022 17:01:22 +0000 (19:01 +0200)]
Merge pull request #11735 from Habbie/builddeb-gzip
dh_builddeb: force gzip compression
Peter van Dijk [Thu, 30 Jun 2022 11:51:00 +0000 (13:51 +0200)]
dh_builddeb: force gzip compression, thanks Zash!
Remi Gacogne [Thu, 30 Jun 2022 09:06:24 +0000 (11:06 +0200)]
dnsdist: Set TCP_NODELAY on the TCP connection to backends
Setting `TCP_NODELAY` disables Nagle's algorithm, which is unfortunately
not always playing nice with TCP delayed ACKs. This is especially true
when the backend supports out-of-order processing, allowing dnsdist to
send several queries at once without waiting for an answer. In that case
dnsdist often has to wait several milliseconds (20ms is common) before
the remote end decides to send the delayed ACK which allows us to send
the next query.
Peter van Dijk [Thu, 30 Jun 2022 07:29:06 +0000 (09:29 +0200)]
Merge pull request #11730 from chbruyand/dnsdist-docs-missing-stats
dnsdist docs: add some missing statistics
Peter van Dijk [Tue, 28 Jun 2022 18:32:50 +0000 (20:32 +0200)]
Merge pull request #11588 from rage4/upstream/r4-lua-records-new-methods
Extend LUA records
Charles-Henri Bruyand [Tue, 28 Jun 2022 08:42:45 +0000 (10:42 +0200)]
dnsdist docs: add some missing statistics
Otto Moerbeek [Mon, 27 Jun 2022 10:44:13 +0000 (12:44 +0200)]
Merge pull request #11727 from omoerbeek/auth-zonemd-generic
auth: Also allow generic record format in zone parsing for pdnsutil zonemd-verify-file
Otto Moerbeek [Mon, 27 Jun 2022 09:52:35 +0000 (11:52 +0200)]
auth: Also allow generic record format in zone parsing for pdnsutil zonemd-verify-file
Otto Moerbeek [Mon, 27 Jun 2022 09:25:06 +0000 (11:25 +0200)]
Formatting
Otto Moerbeek [Mon, 27 Jun 2022 09:16:44 +0000 (11:16 +0200)]
Update structured logging for exceptions to be in line with rest of code
Otto Moerbeek [Mon, 27 Jun 2022 09:07:45 +0000 (11:07 +0200)]
Convert generic format while parsing zone files for ZoneToCache.
Fixes #11724
Otto Moerbeek [Mon, 27 Jun 2022 07:59:15 +0000 (09:59 +0200)]
Merge pull request #11719 from omoerbeek/unsigned-char-issues
Fix warnings found by compiler on MacOS, where char is unsigned
Remi Gacogne [Fri, 24 Jun 2022 13:14:12 +0000 (15:14 +0200)]
dnsdist: Use getrandom() if available
It turns out to use much less CPU than RANDOM_bytes() from libcrypto.
Remi Gacogne [Fri, 24 Jun 2022 14:40:04 +0000 (16:40 +0200)]
Merge pull request #11713 from rgacogne/ddist-upstream-conn-limit
dnsdist: Implement a limit of concurrent connections to a backend
Remi Gacogne [Tue, 21 Jun 2022 15:49:23 +0000 (17:49 +0200)]
dnsdist: Only put outgoing DoH conn in the idle queue if they are idle
Remi Gacogne [Tue, 21 Jun 2022 15:27:05 +0000 (17:27 +0200)]
dnsdist: Do not pretend that a connection will be reusable when it's dead
By remember that a connection is no longer usable when we notice that,
we prevent a case where we could pretend that it will be usable when
it has finished processing the current queries and responses, which
is not true.
Remi Gacogne [Tue, 21 Jun 2022 13:45:38 +0000 (15:45 +0200)]
dnsdist: Add a metric to track when the TCP conns limit is reached
Remi Gacogne [Mon, 20 Jun 2022 15:52:55 +0000 (17:52 +0200)]
dnsdist: Implement a limit of concurrent connections to a backend
Remi Gacogne [Fri, 24 Jun 2022 12:07:13 +0000 (14:07 +0200)]
Merge pull request #11716 from rgacogne/split-metrics
dnsdist: Add more detailed metrics
Remi Gacogne [Fri, 24 Jun 2022 11:54:06 +0000 (13:54 +0200)]
Merge pull request #11718 from rgacogne/ddist-fix-backend-concurrent-conns
dnsdist: Fix the number of concurrent queries on a backend TCP conn
Peter van Dijk [Fri, 24 Jun 2022 11:42:25 +0000 (13:42 +0200)]
Merge pull request #11722 from Habbie/luathread-sigterm
dnsdist newThread(): mask SIGTERM
Peter van Dijk [Fri, 24 Jun 2022 11:02:07 +0000 (13:02 +0200)]
dnsdist newThread(): mask SIGTERM
Otto Moerbeek [Thu, 23 Jun 2022 14:23:05 +0000 (16:23 +0200)]
Fix a few warnings found by compiler on MacOS, where char is unsigned
Remi Gacogne [Thu, 23 Jun 2022 10:36:17 +0000 (12:36 +0200)]
dnsdist: Fix the number of concurrent queries on a backend TCP conn
When we are in the process of sending a query to the backend, that
query is no longer accounted in the "queued" queries nor it is in
the "queued" responses, but we need to take it into account.
Otherwise we might be sending two concurrent queries to a backend
that does not support out-of-order processing (increasing our
latency), or even worse to one that does not support pipelining.
Remi Gacogne [Wed, 22 Jun 2022 16:26:34 +0000 (18:26 +0200)]
dnsdist: Add per-protocol latency averages
Remi Gacogne [Wed, 22 Jun 2022 13:44:38 +0000 (15:44 +0200)]
dnsdist: Add a per-server metric for non-compliant responses
Remi Gacogne [Wed, 22 Jun 2022 13:24:21 +0000 (15:24 +0200)]
dnsdist: Add a per-frontend metric for non-compliant queries
Remi Gacogne [Thu, 23 Jun 2022 08:17:51 +0000 (10:17 +0200)]
Merge pull request #11712 from chbruyand/dnsdist-packetcache-ringbuffer
dnsdist: fill ringbuffers with responses served from the cache
Charles-Henri Bruyand [Wed, 22 Jun 2022 12:27:01 +0000 (14:27 +0200)]
Make sure that we do not read past our buffer in any case
Co-authored-by: Remi Gacogne <github@coredump.fr>
Charles-Henri Bruyand [Wed, 22 Jun 2022 09:13:01 +0000 (11:13 +0200)]
process review comments
Charles-Henri Bruyand [Tue, 21 Jun 2022 07:50:52 +0000 (09:50 +0200)]
dnsdist: fill ringbuffers with responses served from the cache
Remi Gacogne [Wed, 22 Jun 2022 13:07:45 +0000 (15:07 +0200)]
Merge pull request #11696 from rgacogne/ddist-fix-source-itf
dnsdist: Bind to the requested src interface without a src address
Remi Gacogne [Wed, 22 Jun 2022 11:59:30 +0000 (13:59 +0200)]
Merge pull request #11689 from rgacogne/ddist-skip-allocations-policies
dnsdist: Avoid allocating memory in LB policies for small number of servers
Remi Gacogne [Wed, 22 Jun 2022 11:58:57 +0000 (13:58 +0200)]
Merge pull request #11707 from rgacogne/ddist-latencies
dnsdist: Compute backend latency earlier, to avoid internal latency
Remi Gacogne [Wed, 22 Jun 2022 11:58:14 +0000 (13:58 +0200)]
Merge pull request #11698 from rgacogne/ddist-more-name-bindings
Implement `SuffixMatchTree::getBestMatch()` to get the name that matched
Remi Gacogne [Wed, 22 Jun 2022 11:36:47 +0000 (13:36 +0200)]
dnsdist: Bind to the requested src interface without a src address in auto-discovery as well
Remi Gacogne [Wed, 22 Jun 2022 11:36:04 +0000 (13:36 +0200)]
dnsdist: Only check if we want a specific interface if we actually support that
Remi Gacogne [Wed, 22 Jun 2022 11:35:17 +0000 (13:35 +0200)]
dnsdist: Use IP_BIND_ADDRESS_NO_PORT when binding UDP sockets as well
Remi Gacogne [Wed, 22 Jun 2022 09:32:06 +0000 (11:32 +0200)]
dnsdist: Fix a typo LeastOustandingType -> LeastOutstandingType
Remi Gacogne [Wed, 22 Jun 2022 09:18:32 +0000 (11:18 +0200)]
dnsdist: Fix a bound issue, improve readability (thanks, Otto!)
Remi Gacogne [Wed, 22 Jun 2022 08:59:12 +0000 (10:59 +0200)]
dnsdist: Remove a forgotten debug message
Otto Moerbeek [Wed, 22 Jun 2022 08:20:33 +0000 (10:20 +0200)]
Merge pull request #11693 from omoerbeek/rec-sl-web
rec: Structured logging for webserver
Otto Moerbeek [Tue, 21 Jun 2022 13:19:29 +0000 (15:19 +0200)]
Process review comments
Remi Gacogne [Tue, 21 Jun 2022 13:16:54 +0000 (15:16 +0200)]
Merge pull request #11695 from rgacogne/ddist-do-not-autoupgrade-dotdoh
dnsdist: Do not try to auto-upgrade DoT and DoH backends
Otto Moerbeek [Tue, 21 Jun 2022 08:32:53 +0000 (10:32 +0200)]
Merge pull request #11710 from omoerbeek/rec-sl-3
rec: stuctured logging for various subsystems
Otto Moerbeek [Tue, 21 Jun 2022 08:14:08 +0000 (10:14 +0200)]
Merge pull request #11709 from omoerbeek/rec-sd-journal-followup
Rec: systemd-journal structured logging followup
Otto Moerbeek [Tue, 21 Jun 2022 07:40:30 +0000 (09:40 +0200)]
Process review comments
Otto Moerbeek [Tue, 21 Jun 2022 07:35:52 +0000 (09:35 +0200)]
Process review comments: add comments and braces