]>
git.ipfire.org Git - thirdparty/pdns.git/log
Peter van Dijk [Fri, 4 Sep 2020 09:31:59 +0000 (11:31 +0200)]
dnsdist docs: TCPRule argument is not optional
Remi Gacogne [Fri, 4 Sep 2020 06:09:37 +0000 (08:09 +0200)]
Merge pull request #9439 from rgacogne/auth-fix-geoip-sample-config
auth: Fix the sample 'geoip.conf' for Debian-based packages
Remi Gacogne [Fri, 4 Sep 2020 06:08:06 +0000 (08:08 +0200)]
auth: Use https://doc.powerdns.com instead of https://docs.powerdns.com
Remi Gacogne [Fri, 4 Sep 2020 06:05:07 +0000 (08:05 +0200)]
Merge pull request #9441 from Habbie/rec-docs-dns64-multiprefix
rec docs: link to multi-prefix dns64 example on our wiki
Peter van Dijk [Thu, 3 Sep 2020 12:19:37 +0000 (14:19 +0200)]
rec docs: link to multi-prefix dns64 example on our wiki
Remi Gacogne [Thu, 3 Sep 2020 08:27:01 +0000 (10:27 +0200)]
auth: Fix the sample 'geoip.conf' for Debian-based packages
- The documentation of the backend has moved to a new URL ;
- 'geoip-database-file' has been renamed to 'geoip-database-files' ;
- 'geoip-database-file6' does not exist anymore.
Remi Gacogne [Wed, 2 Sep 2020 08:09:52 +0000 (10:09 +0200)]
Merge pull request #9175 from rgacogne/ddist-per-thread-lb-pol
dnsdist: Add per-thread Lua FFI load-balancing policies
Remi Gacogne [Mon, 10 Aug 2020 09:37:37 +0000 (11:37 +0200)]
dnsdist: Whitelist "luaffiroundrobin"
Remi Gacogne [Thu, 27 Aug 2020 09:00:06 +0000 (11:00 +0200)]
dnsdist: Add per-thread Lua FFI load-balancing policies
This allows Lua FFI load-balancing policies that don't need access
to the global, shared Lua state to be lock-less, avoiding lock contention.
Peter van Dijk [Tue, 1 Sep 2020 12:33:10 +0000 (14:33 +0200)]
Merge pull request #9429 from Habbie/auth-4.3.1-docs-maria
auth 4.3.1 upgrade note for the mysql client lib
Remi Gacogne [Tue, 1 Sep 2020 12:31:13 +0000 (14:31 +0200)]
Merge pull request #9430 from rgacogne/sdig-dns-message-ids
sdig: Increment the DNS message IDs when pipelining
Remi Gacogne [Tue, 1 Sep 2020 12:29:37 +0000 (14:29 +0200)]
Merge pull request #9431 from rgacogne/ddist-grepq-empty-names
dnsdist: Handle empty DNSNames in grepq()
Remi Gacogne [Tue, 1 Sep 2020 08:14:40 +0000 (10:14 +0200)]
dnsdist: Handle empty DNSNames in grepq()
We should not get an empty DNSName into the ring buffer, but let's
handle it gracefully if it does happen so we can investigate, instead
of getting:
Caught exception: empty dnsnames aren't part of anything
Remi Gacogne [Tue, 1 Sep 2020 07:53:49 +0000 (09:53 +0200)]
sdig: Increment the DNS message IDs when pipelining
As stated in section 6.2.1 of rfc7766:
"When sending multiple queries over a TCP connection, clients MUST NOT
reuse the DNS Message ID of an in-flight query on that connection in
order to avoid Message ID collisions. This is especially important
if the server could be performing out-of-order processing"
Peter van Dijk [Tue, 1 Sep 2020 07:27:57 +0000 (09:27 +0200)]
auth 4.3.1 upgrade note for the mysql client lib
Peter van Dijk [Tue, 1 Sep 2020 06:54:32 +0000 (08:54 +0200)]
Merge pull request #9402 from jsoref/rst
RST cleanup
Peter van Dijk [Tue, 1 Sep 2020 06:51:03 +0000 (08:51 +0200)]
Merge pull request #9422 from zeha/mysql-sp
auth: add mysql stored procedure code test
Peter van Dijk [Tue, 1 Sep 2020 06:50:34 +0000 (08:50 +0200)]
Merge pull request #9423 from rgacogne/mysql-stored-procedures
auth: Handle the extra single-row result set of MySQL stored procedures
Remi Gacogne [Mon, 31 Aug 2020 14:17:55 +0000 (16:17 +0200)]
Merge pull request #9428 from pieterlexis/ddist-accept-string-cache-expungeByName
dnsdist: Accept string in DNSDistPacketCache:expungeByName
Remi Gacogne [Mon, 31 Aug 2020 14:13:14 +0000 (16:13 +0200)]
Merge pull request #9420 from rgacogne/ddist-pc-no-allocs
dnsdist: Get rid of allocations in the packet cache's fast path
Remi Gacogne [Mon, 31 Aug 2020 14:12:50 +0000 (16:12 +0200)]
Merge pull request #9424 from rgacogne/to-dnsstring-copy
Avoid unnecessary allocations and copies with DNSName::toDNSString()
Pieter Lexis [Mon, 31 Aug 2020 12:44:19 +0000 (14:44 +0200)]
dnsdist: Accept string in DNSDistPacketCache:expungeByName
Chris Hofstaedtler [Sat, 29 Aug 2020 23:55:44 +0000 (01:55 +0200)]
auth: add test for gmysql with stored procedures
Otto Moerbeek [Mon, 31 Aug 2020 12:07:38 +0000 (14:07 +0200)]
Merge pull request #9425 from omoerbeek/rec-prep-4.4.0-beta1
Prep for rec-4.4.0-beta1 release
Remi Gacogne [Mon, 31 Aug 2020 11:10:50 +0000 (13:10 +0200)]
Merge pull request #9426 from rgacogne/ddist-install-patch
dnsdist: Install 'patch' in Circle CI, required to install py-lmdb
Remi Gacogne [Mon, 31 Aug 2020 10:04:42 +0000 (12:04 +0200)]
dnsdist: Install 'patch', required to install py-lmdb
Remi Gacogne [Mon, 31 Aug 2020 10:00:11 +0000 (12:00 +0200)]
Use a size_t instead of an unsigned int in toLowerInPlace
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Otto Moerbeek [Mon, 31 Aug 2020 08:44:23 +0000 (10:44 +0200)]
Prep for rec-4.4.0-beta1 release
Remi Gacogne [Mon, 31 Aug 2020 08:25:04 +0000 (10:25 +0200)]
auth: Handle the extra single-row result set of MySQL stored procedures
Remi Gacogne [Fri, 28 Aug 2020 14:28:40 +0000 (16:28 +0200)]
Avoid unnecessary allocations and copies with DNSName::toDNSString()
Otto Moerbeek [Fri, 28 Aug 2020 11:19:53 +0000 (13:19 +0200)]
Merge pull request #9376 from omoerbeek/rec-rpz-store-trigger
Rec: rpz store trigger in appliedPolicy and protobuf message
Otto Moerbeek [Fri, 28 Aug 2020 09:36:50 +0000 (11:36 +0200)]
Add new field `AppliedPolicyHit` to regress test.
Otto Moerbeek [Fri, 28 Aug 2020 09:29:33 +0000 (11:29 +0200)]
Document new Lua dq fields and centralize logging in handle olicyHit functions.
Plus corrections from review.
Otto Moerbeek [Mon, 17 Aug 2020 12:44:42 +0000 (14:44 +0200)]
Define a log string method for a Policy and use it in appropriate places
to log what is going on wrt RPZ processing.
Otto Moerbeek [Fri, 14 Aug 2020 08:51:28 +0000 (10:51 +0200)]
Also record the value that caused a hit.
For triggers fomr rpz zones it makes sense to store them as listed there.
For hit values (names or IPs) it makes more sense to store them
in the regular string value and not list them as rpz trigger format.
e.g.: a trigger is listed
24.0.2.0.192.rpz-ip.rpz.local.
A corresponding hit as
192.0.2.1
Otto Moerbeek [Fri, 14 Aug 2020 08:24:17 +0000 (10:24 +0200)]
Use static constr string instead of string literals for some well-known names.
Otto Moerbeek [Mon, 10 Aug 2020 12:41:07 +0000 (14:41 +0200)]
Appease spell check
Otto Moerbeek [Mon, 10 Aug 2020 12:17:29 +0000 (14:17 +0200)]
Check appliedPolicyTrigger in protobuf regress test
Otto Moerbeek [Mon, 10 Aug 2020 09:37:28 +0000 (11:37 +0200)]
Log trigger in protobuf message
Otto Moerbeek [Fri, 7 Aug 2020 12:30:30 +0000 (14:30 +0200)]
Store the trigger hit in the (applied)Policy.
While there fix (a (I thnk) doc bug: appliedPolicy.policyAction does
not exists. I think what is meant is policyType. So document that.
Remi Gacogne [Fri, 28 Aug 2020 08:42:23 +0000 (10:42 +0200)]
dnsdist: Get rid of allocations in the packet cache's fast path
This delivers a nice speed-up, up to ~40% in unrealistic micro-benchmarks,
likely much less in practice.
Remi Gacogne [Fri, 28 Aug 2020 08:25:44 +0000 (10:25 +0200)]
Merge pull request #9414 from rgacogne/rec-cname-rpz-4
rec: Apply filtering policies (RPZ) on CNAME chains as well
Remi Gacogne [Thu, 27 Aug 2020 08:29:34 +0000 (10:29 +0200)]
Merge pull request #9379 from rgacogne/ddist-clear-console-history
dnsdist: Add the 'clearConsoleHistory' command
Remi Gacogne [Thu, 27 Aug 2020 07:42:43 +0000 (09:42 +0200)]
Merge pull request #9419 from Habbie/sdig-id-nonzero
sdig: report non-zero ID in response
Peter van Dijk [Wed, 26 Aug 2020 22:08:05 +0000 (00:08 +0200)]
Merge pull request #8638 from threatstop/master
Support for APL Records
Peter van Dijk [Wed, 26 Aug 2020 20:45:11 +0000 (22:45 +0200)]
sdig: report non-zero ID in response
Nicko Dehaine [Wed, 26 Aug 2020 18:32:03 +0000 (18:32 +0000)]
Use an union for the ipv4 and ipv6 fields
Nicko Dehaine [Wed, 26 Aug 2020 18:29:07 +0000 (18:29 +0000)]
Removed duplicate entry
Rewrote description as a single line
Remi Gacogne [Wed, 26 Aug 2020 14:39:00 +0000 (16:39 +0200)]
rec: Update the documentation to better describe our RPZ behaviour
Remi Gacogne [Wed, 26 Aug 2020 14:07:10 +0000 (16:07 +0200)]
rec: Add DNSFilterEngine::Policy::wasHit() to prevent code duplication
Remi Gacogne [Wed, 26 Aug 2020 12:57:10 +0000 (14:57 +0200)]
rec: Trust the result from doCNAMECacheCheck() for RPZ hits
Otto Moerbeek [Wed, 26 Aug 2020 11:25:10 +0000 (13:25 +0200)]
Merge pull request #9411 from omoerbeek/rec-inited-capture-is-cxx14
rec: Fix warning: initialized lambda captures are a C++14 extension
Otto Moerbeek [Wed, 26 Aug 2020 11:22:59 +0000 (13:22 +0200)]
Merge pull request #9417 from PowerDNS/omoerbeek-patch-1
rec: FIx a few "warning: comparison of integers of different signs" on clang.OpenBSD
Otto Moerbeek [Wed, 26 Aug 2020 11:21:45 +0000 (13:21 +0200)]
FIx a few "warning: comparison of integers of different signs" on clang/OpenBSD
Otto Moerbeek [Wed, 26 Aug 2020 10:59:58 +0000 (12:59 +0200)]
Merge pull request #9375 from omoerbeek/rec-qmin-fallback-depth
rec: Allow some more depth headroom for the no-qname-minimization fallback case
Otto Moerbeek [Wed, 26 Aug 2020 08:31:14 +0000 (10:31 +0200)]
Merge pull request #9415 from PowerDNS/omoerbeek-patch-1
auth: missing override
Otto Moerbeek [Wed, 26 Aug 2020 08:04:16 +0000 (10:04 +0200)]
missing override
Remi Gacogne [Tue, 25 Aug 2020 15:28:58 +0000 (17:28 +0200)]
Merge remote-tracking branch 'origin/rec-cname-rpz-4' into rec-cname-rpz
Remi Gacogne [Tue, 25 Aug 2020 15:28:00 +0000 (17:28 +0200)]
rec: Add regression tests for RPZ CNAME chains
Remi Gacogne [Tue, 25 Aug 2020 15:26:46 +0000 (17:26 +0200)]
rec: Properly handle RPZ hits for records retrieved from the cache
Remi Gacogne [Tue, 25 Aug 2020 15:25:47 +0000 (17:25 +0200)]
rec: When adding custom records from RPZ, remove conflicting ones
Otto Moerbeek [Tue, 25 Aug 2020 11:27:51 +0000 (13:27 +0200)]
Document the extra allowance in case of qname-minimization fallback.
Otto Moerbeek [Tue, 25 Aug 2020 09:01:54 +0000 (11:01 +0200)]
Zap some redundant args
Remi Gacogne [Tue, 25 Aug 2020 08:47:25 +0000 (10:47 +0200)]
dnsdist: Dcocument the new 'clearConsoleHistory()' command
Otto Moerbeek [Tue, 25 Aug 2020 07:44:28 +0000 (09:44 +0200)]
Merge pull request #9412 from omoerbeek/rec-channel-coverity
rec: Clean some coverity reported cases of exceptions thrown but not caught.
Peter van Dijk [Tue, 25 Aug 2020 07:43:18 +0000 (09:43 +0200)]
Merge pull request #9401 from Habbie/statbag-declare-pointer
statbag: handle key redeclarations better
Otto Moerbeek [Tue, 25 Aug 2020 07:43:15 +0000 (09:43 +0200)]
Do not use ref
Co-authored-by: Remi Gacogne <rgacogne+github@valombre.net>
Remi Gacogne [Tue, 25 Aug 2020 07:08:32 +0000 (09:08 +0200)]
rec: Fix formatting
Remi Gacogne [Mon, 24 Aug 2020 13:59:23 +0000 (15:59 +0200)]
rec: Document the new RPZ behaviour, objects and hooks
Remi Gacogne [Mon, 24 Aug 2020 13:52:00 +0000 (15:52 +0200)]
rec: Add a new policy filter event Lua hook
We now do the filtering during the resolution, instead of at the end,
to better match the RPZ specifications. Unfortunately it means that
we need a new hook to be able to act on policy events, since they
can occur in various places.
Remi Gacogne [Fri, 21 Aug 2020 15:45:42 +0000 (17:45 +0200)]
rec: Update tests since we now filter on CNAME chains
Remi Gacogne [Tue, 18 Aug 2020 08:45:30 +0000 (10:45 +0200)]
rec: Handle RPZ CNAME chains, post-policies on cache hits as well
Otto Moerbeek [Wed, 12 Aug 2020 08:29:55 +0000 (10:29 +0200)]
Simplify things a bit
Otto Moerbeek [Tue, 4 Aug 2020 12:51:23 +0000 (14:51 +0200)]
We have a rather fundamental issue here: in some cases, we want
the RPZ post policy to extend the current result vector and in some cases
we want to replace the result vector built up earlier.
ATM I have no clear method how that should be determined.
Otto Moerbeek [Tue, 4 Aug 2020 08:47:25 +0000 (10:47 +0200)]
Added depth check for qnameRPZHit() and some comments.
Otto Moerbeek [Tue, 4 Aug 2020 08:46:46 +0000 (10:46 +0200)]
Simplified getClientPolicy()
Otto Moerbeek [Wed, 15 Jul 2020 12:21:31 +0000 (12:21 +0000)]
Handle non-CNAME cases and auth/forward case.
Though regression test is not happy yet this should be an improvement.
Also refactor qnameRPZHit a bit.
Otto Moerbeek [Wed, 15 Jul 2020 09:47:54 +0000 (11:47 +0200)]
Move Query policy handling to SyncRes.
This allows for intermediate CNAMEs to be subject to RPZ
processing.
Otto Moerbeek [Wed, 15 Jul 2020 09:05:35 +0000 (11:05 +0200)]
Split the ClientIP and QName processing for RPZ.
The first will be done initially only, while the second
will be used during CNAME chasing.
Peter van Dijk [Mon, 24 Aug 2020 12:54:26 +0000 (14:54 +0200)]
Merge pull request #9409 from mind04/pdns-race2
auth: clear the key cache after addKey()
Remi Gacogne [Mon, 24 Aug 2020 11:42:14 +0000 (13:42 +0200)]
Merge pull request #9381 from rgacogne/ddist-delaypipe-eintr
dnsdist: Handle EINTR in DelayPipe
Remi Gacogne [Mon, 24 Aug 2020 11:41:51 +0000 (13:41 +0200)]
Merge pull request #9382 from rgacogne/ddist-speedup-rr
dnsdist: Speed up the round robin policy
Otto Moerbeek [Mon, 24 Aug 2020 09:54:53 +0000 (11:54 +0200)]
Clean some coverity reported cases of exceptions thrown but not caught.
See e.g. coverity report
1431930
Kees Monshouwer [Mon, 24 Aug 2020 09:12:01 +0000 (11:12 +0200)]
auth: clear the key cache after addKey()
Otto Moerbeek [Mon, 24 Aug 2020 09:03:38 +0000 (11:03 +0200)]
Merge pull request #9391 from omoerbeek/rec-new-rc-stats
rec: export record cache mutex stats via the various channels.
Remi Gacogne [Mon, 24 Aug 2020 08:59:31 +0000 (10:59 +0200)]
Merge pull request #9405 from rgacogne/fix-doc-per-zone-settings-domain-metadata
doc: Fix broken link to "per-zone-settings-domain-metadata"
Remi Gacogne [Mon, 24 Aug 2020 08:59:18 +0000 (10:59 +0200)]
Merge pull request #9406 from Habbie/pdnsutil-static-declaration
pdnsutil: file-local functions need to be static
Otto Moerbeek [Mon, 24 Aug 2020 08:51:52 +0000 (10:51 +0200)]
Fix warning: initialized lambda captures are a C++14 extension
Remi Gacogne [Mon, 24 Aug 2020 07:54:44 +0000 (09:54 +0200)]
dnsdist: Handle an empty servers list in the RR policy
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Remi Gacogne [Wed, 29 Jul 2020 14:23:26 +0000 (16:23 +0200)]
dnsdist: Speed up the round robin policy
Working with indices instead of copying shared pointers results in
a nice speed up, cutting the CPU time in half.
Remi Gacogne [Mon, 24 Aug 2020 07:29:17 +0000 (09:29 +0200)]
Merge pull request #9408 from RvdE/patch-5
Fix building with LLVM11
Otto Moerbeek [Mon, 24 Aug 2020 07:21:50 +0000 (09:21 +0200)]
Merge pull request #9396 from omoerbeek/rec-rpz-ip-multi
Rec: allow multipe local data records when doing RPZ IP matching
Otto Moerbeek [Mon, 24 Aug 2020 07:21:02 +0000 (09:21 +0200)]
Sorting of items
Otto Moerbeek [Mon, 24 Aug 2020 07:18:22 +0000 (09:18 +0200)]
s/mutex/lock in descriptions
Co-authored-by: Remi Gacogne <rgacogne+github@valombre.net>
RvdE [Sun, 23 Aug 2020 22:26:21 +0000 (00:26 +0200)]
Fix building with LLVM11
There's a typo on line 529, where it says "true", but the double quotes cause a type cast error on LLVM11.
dnsdist-console.cc:529:32: error: type 'const char [5]' cannot be narrowed to 'bool' in initializer list [-Wc++11-narrowing]
{ "SetNegativeAndSOAAction", "true", "nxd, zone, ttl, mname, rname, serial, refresh, retry, expire, minimum [, options]", "Turn a query into a NXDomain or NoData answer and sets a SOA record in the additional section" },
^~~~~~
dnsdist-console.cc:529:32: note: insert an explicit cast to silence this issue
{ "SetNegativeAndSOAAction", "true", "nxd, zone, ttl, mname, rname, serial, refresh, retry, expire, minimum [, options]", "Turn a query into a NXDomain or NoData answer and sets a SOA record in the additional section" },
^~~~~~
static_cast<bool>( )
1 error generated.
Peter van Dijk [Sat, 22 Aug 2020 08:22:04 +0000 (10:22 +0200)]
Merge pull request #9407 from mind04/pdns-race
auth: fix cache cleaning race conditions in DNSSECKeeper()
Kees Monshouwer [Fri, 21 Aug 2020 15:09:32 +0000 (17:09 +0200)]
auth: fix cache cleaning race conditions in DNSSECKeeper()
Peter van Dijk [Fri, 21 Aug 2020 09:38:03 +0000 (11:38 +0200)]
pdnsutil: file-local functions need to be static
Peter van Dijk [Fri, 21 Aug 2020 09:13:47 +0000 (11:13 +0200)]
statbag: prevent re-declaration in production coded
Remi Gacogne [Fri, 21 Aug 2020 08:39:25 +0000 (10:39 +0200)]
doc: Fix broken link to "per-zone-settings-domain-metadata"