]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
4 years agodnsdist dnsname: add toDNSString convenience function 9466/head
Peter van Dijk [Mon, 14 Sep 2020 12:24:14 +0000 (14:24 +0200)] 
dnsdist dnsname: add toDNSString convenience function

4 years agoMerge pull request #9454 from omoerbeek/rec-clear-parts
Otto Moerbeek [Wed, 9 Sep 2020 13:13:39 +0000 (15:13 +0200)] 
Merge pull request #9454 from omoerbeek/rec-clear-parts

Parts is reused, so clear the names it might contain.

4 years agoParts is reused, so clear the names it might contain. 9454/head
Otto Moerbeek [Wed, 9 Sep 2020 13:11:26 +0000 (15:11 +0200)] 
Parts is reused, so clear the names it might contain.

4 years agoMerge pull request #9447 from omoerbeek/rec-prep-4.3.4
Otto Moerbeek [Tue, 8 Sep 2020 08:13:23 +0000 (10:13 +0200)] 
Merge pull request #9447 from omoerbeek/rec-prep-4.3.4

rec: Changelog and secpoll rec-4.3.4

4 years agoPrep rec-4.3.4 9447/head
Otto Moerbeek [Mon, 7 Sep 2020 07:39:10 +0000 (09:39 +0200)] 
Prep rec-4.3.4

4 years agoMerge pull request #9446 from pieterlexis/gcc10-fix
Remi Gacogne [Mon, 7 Sep 2020 07:19:55 +0000 (09:19 +0200)] 
Merge pull request #9446 from pieterlexis/gcc10-fix

Fix building remote backend on GCC 10

4 years agoFix building remote backend on GCC 10 9446/head
Pieter Lexis [Fri, 4 Sep 2020 15:20:15 +0000 (17:20 +0200)] 
Fix building remote backend on GCC 10

4 years agoMerge pull request #9434 from omoerbeek/rec-forward-who-is-auth-for-ds
Otto Moerbeek [Fri, 4 Sep 2020 09:53:07 +0000 (11:53 +0200)] 
Merge pull request #9434 from omoerbeek/rec-forward-who-is-auth-for-ds

rec: When deciding if we are auth in the local auth or forwarding case, DS is special

4 years agoMerge pull request #9445 from Habbie/docs-tcprule
Remi Gacogne [Fri, 4 Sep 2020 09:35:24 +0000 (11:35 +0200)] 
Merge pull request #9445 from Habbie/docs-tcprule

dnsdist docs: TCPRule argument is not optional

4 years agodnsdist docs: TCPRule argument is not optional 9445/head
Peter van Dijk [Fri, 4 Sep 2020 09:31:59 +0000 (11:31 +0200)] 
dnsdist docs: TCPRule argument is not optional

4 years agoFix test 9434/head
Otto Moerbeek [Fri, 4 Sep 2020 09:13:17 +0000 (11:13 +0200)] 
Fix test

4 years agoMerge pull request #9387 from zeha/notify-level
Peter van Dijk [Fri, 4 Sep 2020 08:07:52 +0000 (10:07 +0200)] 
Merge pull request #9387 from zeha/notify-level

auth slave: log successful NOTIFY

4 years agoMerge pull request #9442 from zeha/doxyconfig
Peter van Dijk [Fri, 4 Sep 2020 08:01:52 +0000 (10:01 +0200)] 
Merge pull request #9442 from zeha/doxyconfig

Update doxygen config

4 years agoMerge pull request #9439 from rgacogne/auth-fix-geoip-sample-config
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

4 years agoauth: Use https://doc.powerdns.com instead of https://docs.powerdns.com 9439/head
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

4 years agoMerge pull request #9441 from Habbie/rec-docs-dns64-multiprefix
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

4 years agoUpdate doxygen config 9442/head
Chris Hofstaedtler [Thu, 3 Sep 2020 16:19:00 +0000 (18:19 +0200)] 
Update doxygen config

4 years agorec docs: link to multi-prefix dns64 example on our wiki 9441/head
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

4 years agoauth: Fix the sample 'geoip.conf' for Debian-based packages
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.

4 years agoTest for the reported issue wrt doing an spurious DS queries
Otto Moerbeek [Wed, 2 Sep 2020 13:57:40 +0000 (15:57 +0200)] 
Test for the reported issue wrt doing an spurious DS queries

I'm trying to setup a valid a.test and b.test, using a non-recursive forward
but somehow my DNSSEC setup is not right. Cannot spot the issue atm.

4 years agoWhen deciding if we are auth in the local auth or forwarding case,
Otto Moerbeek [Wed, 2 Sep 2020 12:03:44 +0000 (14:03 +0200)] 
When deciding if we are auth in the local auth or forwarding case,
for DS records we need to look at the parent of the particular name.

Seems to fix #9433

4 years agoMerge pull request #9175 from rgacogne/ddist-per-thread-lb-pol
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

4 years agoauth slave: log successful NOTIFY 9387/head
Chris Hofstaedtler [Mon, 17 Aug 2020 13:14:24 +0000 (15:14 +0200)] 
auth slave: log successful NOTIFY

4 years agodnsdist: Whitelist "luaffiroundrobin" 9175/head
Remi Gacogne [Mon, 10 Aug 2020 09:37:37 +0000 (11:37 +0200)] 
dnsdist: Whitelist "luaffiroundrobin"

4 years agodnsdist: Add per-thread Lua FFI load-balancing policies
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.

4 years agoMerge pull request #9429 from Habbie/auth-4.3.1-docs-maria
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

4 years agoMerge pull request #9430 from rgacogne/sdig-dns-message-ids
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

4 years agoMerge pull request #9431 from rgacogne/ddist-grepq-empty-names
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()

4 years agodnsdist: Handle empty DNSNames in grepq() 9431/head
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

4 years agosdig: Increment the DNS message IDs when pipelining 9430/head
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"

4 years agoauth 4.3.1 upgrade note for the mysql client lib 9429/head
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

4 years agoMerge pull request #9402 from jsoref/rst
Peter van Dijk [Tue, 1 Sep 2020 06:54:32 +0000 (08:54 +0200)] 
Merge pull request #9402 from jsoref/rst

RST cleanup

4 years agoMerge pull request #9422 from zeha/mysql-sp
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

4 years agoMerge pull request #9423 from rgacogne/mysql-stored-procedures
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

4 years agoMerge pull request #9428 from pieterlexis/ddist-accept-string-cache-expungeByName
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

4 years agoMerge pull request #9420 from rgacogne/ddist-pc-no-allocs
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

4 years agoMerge pull request #9424 from rgacogne/to-dnsstring-copy
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()

4 years agodnsdist: Accept string in DNSDistPacketCache:expungeByName 9428/head
Pieter Lexis [Mon, 31 Aug 2020 12:44:19 +0000 (14:44 +0200)] 
dnsdist: Accept string in DNSDistPacketCache:expungeByName

4 years agoauth: add test for gmysql with stored procedures 9422/head
Chris Hofstaedtler [Sat, 29 Aug 2020 23:55:44 +0000 (01:55 +0200)] 
auth: add test for gmysql with stored procedures

4 years agoMerge pull request #9425 from omoerbeek/rec-prep-4.4.0-beta1
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

4 years agoMerge pull request #9426 from rgacogne/ddist-install-patch
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

4 years agodnsdist: Install 'patch', required to install py-lmdb 9426/head
Remi Gacogne [Mon, 31 Aug 2020 10:04:42 +0000 (12:04 +0200)] 
dnsdist: Install 'patch', required to install py-lmdb

4 years agoUse a size_t instead of an unsigned int in toLowerInPlace 9424/head
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>
4 years agoPrep for rec-4.4.0-beta1 release 9425/head
Otto Moerbeek [Mon, 31 Aug 2020 08:44:23 +0000 (10:44 +0200)] 
Prep for rec-4.4.0-beta1 release

4 years agoauth: Handle the extra single-row result set of MySQL stored procedures 9423/head
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

4 years agoAvoid unnecessary allocations and copies with DNSName::toDNSString()
Remi Gacogne [Fri, 28 Aug 2020 14:28:40 +0000 (16:28 +0200)] 
Avoid unnecessary allocations and copies with DNSName::toDNSString()

4 years agoMerge pull request #9376 from omoerbeek/rec-rpz-store-trigger rec-4.4.0-beta1
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

4 years agoAdd new field `AppliedPolicyHit` to regress test. 9376/head
Otto Moerbeek [Fri, 28 Aug 2020 09:36:50 +0000 (11:36 +0200)] 
Add new field `AppliedPolicyHit` to regress test.

4 years agoDocument new Lua dq fields and centralize logging in handle olicyHit functions.
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.

4 years agoDefine a log string method for a Policy and use it in appropriate places
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.

4 years agoAlso record the value that caused a hit.
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

4 years agoUse static constr string instead of string literals for some well-known names.
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.

4 years agoAppease spell check
Otto Moerbeek [Mon, 10 Aug 2020 12:41:07 +0000 (14:41 +0200)] 
Appease spell check

4 years agoCheck appliedPolicyTrigger in protobuf regress test
Otto Moerbeek [Mon, 10 Aug 2020 12:17:29 +0000 (14:17 +0200)] 
Check appliedPolicyTrigger in protobuf regress test

4 years agoLog trigger in protobuf message
Otto Moerbeek [Mon, 10 Aug 2020 09:37:28 +0000 (11:37 +0200)] 
Log trigger in protobuf message

4 years agoStore the trigger hit in the (applied)Policy.
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.

4 years agodnsdist: Get rid of allocations in the packet cache's fast path 9420/head
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.

4 years agoMerge pull request #9414 from rgacogne/rec-cname-rpz-4
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

4 years agoMerge pull request #9379 from rgacogne/ddist-clear-console-history
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

4 years agoMerge pull request #9419 from Habbie/sdig-id-nonzero
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

4 years agoMerge pull request #8638 from threatstop/master
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

4 years agosdig: report non-zero ID in response 9419/head
Peter van Dijk [Wed, 26 Aug 2020 20:45:11 +0000 (22:45 +0200)] 
sdig: report non-zero ID in response

4 years agoUse an union for the ipv4 and ipv6 fields 8638/head
Nicko Dehaine [Wed, 26 Aug 2020 18:32:03 +0000 (18:32 +0000)] 
Use an union for the ipv4 and ipv6 fields

4 years agoRemoved duplicate entry
Nicko Dehaine [Wed, 26 Aug 2020 18:29:07 +0000 (18:29 +0000)] 
Removed duplicate entry
Rewrote description as a single line

4 years agorec: Update the documentation to better describe our RPZ behaviour 9414/head
Remi Gacogne [Wed, 26 Aug 2020 14:39:00 +0000 (16:39 +0200)] 
rec: Update the documentation to better describe our RPZ behaviour

4 years agorec: Add DNSFilterEngine::Policy::wasHit() to prevent code duplication
Remi Gacogne [Wed, 26 Aug 2020 14:07:10 +0000 (16:07 +0200)] 
rec: Add DNSFilterEngine::Policy::wasHit() to prevent code duplication

4 years agorec: Trust the result from doCNAMECacheCheck() for RPZ hits
Remi Gacogne [Wed, 26 Aug 2020 12:57:10 +0000 (14:57 +0200)] 
rec: Trust the result from doCNAMECacheCheck() for RPZ hits

4 years agoMerge pull request #9411 from omoerbeek/rec-inited-capture-is-cxx14
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

4 years agoMerge pull request #9417 from PowerDNS/omoerbeek-patch-1
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

4 years agoFIx a few "warning: comparison of integers of different signs" on clang/OpenBSD 9417/head
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

4 years agoMerge pull request #9375 from omoerbeek/rec-qmin-fallback-depth
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

4 years agoMerge pull request #9415 from PowerDNS/omoerbeek-patch-1
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

4 years agomissing override 9415/head
Otto Moerbeek [Wed, 26 Aug 2020 08:04:16 +0000 (10:04 +0200)] 
missing override

4 years agoMerge remote-tracking branch 'origin/rec-cname-rpz-4' into rec-cname-rpz
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

4 years agorec: Add regression tests for RPZ CNAME chains
Remi Gacogne [Tue, 25 Aug 2020 15:28:00 +0000 (17:28 +0200)] 
rec: Add regression tests for RPZ CNAME chains

4 years agorec: Properly handle RPZ hits for records retrieved from the cache
Remi Gacogne [Tue, 25 Aug 2020 15:26:46 +0000 (17:26 +0200)] 
rec: Properly handle RPZ hits for records retrieved from the cache

4 years agorec: When adding custom records from RPZ, remove conflicting ones
Remi Gacogne [Tue, 25 Aug 2020 15:25:47 +0000 (17:25 +0200)] 
rec: When adding custom records from RPZ, remove conflicting ones

4 years agoDocument the extra allowance in case of qname-minimization fallback. 9375/head
Otto Moerbeek [Tue, 25 Aug 2020 11:27:51 +0000 (13:27 +0200)] 
Document the extra allowance in case of qname-minimization fallback.

4 years agoZap some redundant args
Otto Moerbeek [Tue, 25 Aug 2020 09:01:54 +0000 (11:01 +0200)] 
Zap some redundant args

4 years agodnsdist: Dcocument the new 'clearConsoleHistory()' command 9379/head
Remi Gacogne [Tue, 25 Aug 2020 08:47:25 +0000 (10:47 +0200)] 
dnsdist: Dcocument the new 'clearConsoleHistory()' command

4 years agoMerge pull request #9412 from omoerbeek/rec-channel-coverity
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.

4 years agoMerge pull request #9401 from Habbie/statbag-declare-pointer
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

4 years agoDo not use ref 9411/head
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>
4 years agorec: Fix formatting
Remi Gacogne [Tue, 25 Aug 2020 07:08:32 +0000 (09:08 +0200)] 
rec: Fix formatting

4 years agorec: Document the new RPZ behaviour, objects and hooks
Remi Gacogne [Mon, 24 Aug 2020 13:59:23 +0000 (15:59 +0200)] 
rec: Document the new RPZ behaviour, objects and hooks

4 years agorec: Add a new policy filter event Lua hook
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.

4 years agorec: Update tests since we now filter on CNAME chains
Remi Gacogne [Fri, 21 Aug 2020 15:45:42 +0000 (17:45 +0200)] 
rec: Update tests since we now filter on CNAME chains

4 years agorec: Handle RPZ CNAME chains, post-policies on cache hits as well
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

4 years agoSimplify things a bit
Otto Moerbeek [Wed, 12 Aug 2020 08:29:55 +0000 (10:29 +0200)] 
Simplify things a bit

4 years agoWe have a rather fundamental issue here: in some cases, we want
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.

4 years agoAdded depth check for qnameRPZHit() and some comments.
Otto Moerbeek [Tue, 4 Aug 2020 08:47:25 +0000 (10:47 +0200)] 
Added depth check for qnameRPZHit() and some comments.

4 years agoSimplified getClientPolicy()
Otto Moerbeek [Tue, 4 Aug 2020 08:46:46 +0000 (10:46 +0200)] 
Simplified getClientPolicy()

4 years agoHandle non-CNAME cases and auth/forward case.
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.

4 years agoMove Query policy handling to SyncRes.
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.

4 years agoSplit the ClientIP and QName processing for RPZ.
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.

4 years agoMerge pull request #9409 from mind04/pdns-race2
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()

4 years agoMerge pull request #9381 from rgacogne/ddist-delaypipe-eintr
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

4 years agoMerge pull request #9382 from rgacogne/ddist-speedup-rr
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

4 years agoClean some coverity reported cases of exceptions thrown but not caught. 9412/head
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

4 years agoauth: clear the key cache after addKey() 9409/head
Kees Monshouwer [Mon, 24 Aug 2020 09:12:01 +0000 (11:12 +0200)] 
auth: clear the key cache after addKey()