]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
5 years agorec: Add a regression test for the RPZ updates with several deltas 9246/head
Remi Gacogne [Thu, 28 May 2020 16:54:20 +0000 (18:54 +0200)] 
rec: Add a regression test for the RPZ updates with several deltas

(cherry picked from commit ba5f46ae28b9502294424aaa90ff9dad729de757)

5 years agorec: Fix RPZ removals when an update has several deltas
Remi Gacogne [Thu, 28 May 2020 16:15:53 +0000 (18:15 +0200)] 
rec: Fix RPZ removals when an update has several deltas

(cherry picked from commit b72e5c8578561a8c0a306a861011f5e409a4797b)

5 years agoMerge pull request #9145 from rgacogne/rec43-travis-unbreak-trusty
Remi Gacogne [Mon, 25 May 2020 14:06:54 +0000 (16:06 +0200)] 
Merge pull request #9145 from rgacogne/rec43-travis-unbreak-trusty

rec-4.3.x: travis: install pdns package from direct download

5 years agotravis: install pdns package from direct download 9145/head
Peter van Dijk [Mon, 25 May 2020 08:27:01 +0000 (10:27 +0200)] 
travis: install pdns package from direct download

(cherry picked from commit b5b83152b5a56b8095ab0d713a31c3ab5d1ec25b)

5 years agoMerge pull request #9140 from rgacogne/rec43-formatting
Remi Gacogne [Mon, 25 May 2020 09:41:41 +0000 (11:41 +0200)] 
Merge pull request #9140 from rgacogne/rec43-formatting

rec-4.3.X: Fix formatting

5 years agoMerge pull request #9130 from jsoref/rel-rec-4.3.x-suppress-spell-check
Remi Gacogne [Mon, 25 May 2020 09:26:37 +0000 (11:26 +0200)] 
Merge pull request #9130 from jsoref/rel-rec-4.3.x-suppress-spell-check

Suppress PR based spell check for the rec-4.3.x branch

5 years agofix formatting 9140/head
Otto Moerbeek [Tue, 19 May 2020 09:51:03 +0000 (11:51 +0200)] 
fix formatting

(cherry picked from commit b963ef8b7568c55493f942d660d9a61103bfc04e)

5 years agoMerge pull request #9128 from rgacogne/rec43-fix-gethostname-no-hostnamemax
Remi Gacogne [Mon, 25 May 2020 07:51:28 +0000 (09:51 +0200)] 
Merge pull request #9128 from rgacogne/rec43-fix-gethostname-no-hostnamemax

rec-4.3.x: Fix compilation on systems that do not define HOST_NAME_MAX

5 years agoSuppress PR based spell check 9130/head
Josh Soref [Tue, 19 May 2020 17:10:37 +0000 (13:10 -0400)] 
Suppress PR based spell check

5 years agoFix compilation on systems that do not define HOST_NAME_MAX 9128/head
Remi Gacogne [Tue, 19 May 2020 14:46:33 +0000 (16:46 +0200)] 
Fix compilation on systems that do not define HOST_NAME_MAX

On FreeBSD at least, HOST_NAME_MAX is not defined and we need to
use sysconf() to get the value at runtime instead.
Based on a work done by @RvdE to make the recursor compile on
FreeBSD (many thanks!).

(cherry picked from commit 4c990a1b82e091d887d873c7da5254de84aabebb)

5 years agoMerge pull request #9122 from rgacogne/rec43-gcc10
Remi Gacogne [Tue, 19 May 2020 10:50:52 +0000 (12:50 +0200)] 
Merge pull request #9122 from rgacogne/rec43-gcc10

rec-4.3.x: Fix build with gcc-10

5 years agoFix build with gcc-10 9122/head
Sander Hoentjen [Mon, 16 Dec 2019 21:44:43 +0000 (22:44 +0100)] 
Fix build with gcc-10

From an e-mail from Jeff Law <law@redhat.com>:

Subject: Minor problem in pdns, dnsdist and pdns-recursor packages in Fedora

[ All three packages have embedded copies of the same problematic code
and the same patch fixes all three. ]

Red Hat's compiler team continues to try and be proactive in identifying
issues that will arise as a result of the introduction of a new GCC
release into Fedora each spring.

You're being contacted because a package you maintain in Fedora is going
to fail to build with gcc-10 in the spring.  Yes, I know that's a few
months away, but it's far easier to fix this stuff proactively now than
wait.

Fixing it now also means that your package will continue to be built
with testing versions of gcc-10 as we proceed through the development
process thus allowing additional issues to be caught early.

Your particular package will fail due to an uninstantiated template for
AsyncLoader<Request>.  These kinds of problems are relatively common due to
changes in the tuning of the inliner for gcc-10:

> BUILDSTDERR: /usr/bin/ld: webserver.o: in function `WebServer::serveConnection(std::shared_ptr<Socket>) const':
> BUILDSTDERR: /builddir/build/BUILD/pdns-4.2.1/pdns/webserver.cc:373: undefined reference to `YaHTTP::AsyncLoader<YaHTTP::Request>::feed(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
> BUILDSTDERR: collect2: error: ld returned 1 exit status
> BUILDSTDERR: make[3]: *** [Makefile:2751: ixfrdist] Error 1
>

The attached patch arranges for an instance to be instantiated when
compiling reqresp.cpp and is sufficient to fix this problem.  The
choice of reqresp.cpp fairly arbitrary IIRC.

Ideally you'll with upstream to get this fixed, but a Fedora patch is
clearly OK as well.   I'll install the attached fix into Fedora in a
week or so if I haven't heard from you.

Jeff

(cherry picked from commit ffb885e937c27bb1c62dee8f18c58ae0d5d52d39)

5 years agoMerge pull request #9115 from pieterlexis/rec-4.3.x-may-2020 rec-4.3.1
Pieter Lexis [Tue, 19 May 2020 08:49:27 +0000 (10:49 +0200)] 
Merge pull request #9115 from pieterlexis/rec-4.3.x-may-2020

Recursor 4.3.x fixes May 2020

5 years agoDon't read potentially uninitalized memory if gethostname() failed 9115/head
Remi Gacogne [Mon, 27 Apr 2020 14:48:16 +0000 (16:48 +0200)] 
Don't read potentially uninitalized memory if gethostname() failed

If the buffer is smaller than `HOST_NAME_MAX` (64 on Linux but up to
255 bytes in POSIX, which FreeBSD, MacOS etc honor) gethostname()
might return -1 without null-terminating the buffer, causing an
out-of-bounds read.
As we look for the first '.' using `strchr()`, replacing it with a
null byte, we also have a one-byte out-of-bounds write which might
result in a crash or, albeit very unlikely, arbitrary code execution.

(cherry picked from commit aac6348d56f6f3fdba9dd2455ef06081da507c14)

5 years agorec: Fix DNSSEC validation of completely empty NXDomain answers
Remi Gacogne [Fri, 24 Apr 2020 09:48:16 +0000 (11:48 +0200)] 
rec: Fix DNSSEC validation of completely empty NXDomain answers

If the answer has no SOA and no NSEC inside a DNSSEC-secure zone,
we should go Bogus.

(cherry picked from commit 1c0ee0d118a886857629aa733c23311057f315f9)

5 years agorec: Add a regression test for duplicate entries in a RPZ XFR update
Remi Gacogne [Wed, 25 Mar 2020 13:34:29 +0000 (14:34 +0100)] 
rec: Add a regression test for duplicate entries in a RPZ XFR update

5 years agorec: Don't crash on a duplicate RPZ entry received over XFR
Remi Gacogne [Wed, 25 Mar 2020 13:15:59 +0000 (14:15 +0100)] 
rec: Don't crash on a duplicate RPZ entry received over XFR

5 years agorec: Limit the number of queries sent out to get NS addresses per query
Otto Moerbeek [Mon, 23 Mar 2020 14:22:32 +0000 (15:22 +0100)] 
rec: Limit the number of queries sent out to get NS addresses per query

5 years agoMerge pull request #9082 from omoerbeek/backport-8972-to-rec-4.3.x
Otto Moerbeek [Fri, 1 May 2020 12:59:37 +0000 (14:59 +0200)] 
Merge pull request #9082 from omoerbeek/backport-8972-to-rec-4.3.x

rec: backport to rec 4.3.x: builder: add ubuntu focal target

5 years agobuilder: add ubuntu focal target 9082/head
Peter van Dijk [Wed, 25 Mar 2020 10:41:15 +0000 (11:41 +0100)] 
builder: add ubuntu focal target

(cherry picked from commit b4f4b1ab4ba666fe16f0201b38778fe66dc8e7ae)

5 years agoMerge pull request #9048 from omoerbeek/backport-8778-to-rec-4.3.x
Otto Moerbeek [Wed, 22 Apr 2020 09:14:53 +0000 (11:14 +0200)] 
Merge pull request #9048 from omoerbeek/backport-8778-to-rec-4.3.x

rec: Backport 8778 to rec 4.3.x: RPZ dumpFile/seedFile: store/get SOA refresh on dump/load

5 years agoWarn at refresh=0 9048/head
Otto Moerbeek [Tue, 11 Feb 2020 11:30:29 +0000 (12:30 +0100)] 
Warn at refresh=0

(cherry picked from commit 1778d156949380dff86304aa5dbbfb5e10351302)

5 years agoTweaks for minimum time
Otto Moerbeek [Mon, 10 Feb 2020 14:17:09 +0000 (15:17 +0100)] 
Tweaks for minimum time

(cherry picked from commit 87e7a7268ff1c2117f51fbc208ea213584d59536)

5 years agoIntroduce an explicit refreshFromConf arg to RPZIXFRTracker.
Otto Moerbeek [Mon, 10 Feb 2020 13:31:41 +0000 (14:31 +0100)] 
Introduce an explicit refreshFromConf arg to RPZIXFRTracker.

Always load and store the rpz refresh value from and to the zone.
That we we can easily decide which value to use: if an explicit
refreshFromConf value is set, use that one, otherwise use the one
in the rpz zone.

(cherry picked from commit d70a762725cd7011b15286eb580ad93c932b7641)

5 years agorec RPZ dumpFile/seedFile: store/get SOA refresh on dump/load
Peter van Dijk [Mon, 3 Feb 2020 19:09:07 +0000 (20:09 +0100)] 
rec RPZ dumpFile/seedFile: store/get SOA refresh on dump/load

(cherry picked from commit 982817f34d0826bc80adefe488ba8d0383b0e6cf)

5 years agoMerge pull request #8963 from omoerbeek/backport-8876-to-rec-4.3.x
Remi Gacogne [Tue, 24 Mar 2020 09:04:19 +0000 (10:04 +0100)] 
Merge pull request #8963 from omoerbeek/backport-8876-to-rec-4.3.x

rec: backport 8876 to rec-4.3.x: Update boost.m4

5 years agoUpdate boost.m4 8963/head
Pieter Lexis [Fri, 28 Feb 2020 08:27:30 +0000 (09:27 +0100)] 
Update boost.m4

Closes #8875

(cherry picked from commit 2bcb6ea0ddc99548d3d7d6d317c5d64d55aac6cc)

5 years agoMerge pull request #8870 from omoerbeek/backport-8864-to-rec-4.3.x rec-4.3.0
Otto Moerbeek [Wed, 26 Feb 2020 17:14:31 +0000 (18:14 +0100)] 
Merge pull request #8870 from omoerbeek/backport-8864-to-rec-4.3.x

rec: backport 8864 to rec 4.3.x: Only log qname parsing errors when 'log-common-errors' is set

5 years agorec: Only log qname parsing errors when 'log-common-errors' is set 8870/head
Remi Gacogne [Wed, 26 Feb 2020 10:18:35 +0000 (11:18 +0100)] 
rec: Only log qname parsing errors when 'log-common-errors' is set

(cherry picked from commit 4b4566e8d28ff3b18152213e8c8666aa643f8eb9)

5 years agoMerge pull request #8863 from omoerbeek/backport-8857-to-rec-4.3.x
Otto Moerbeek [Wed, 26 Feb 2020 11:14:05 +0000 (12:14 +0100)] 
Merge pull request #8863 from omoerbeek/backport-8857-to-rec-4.3.x

rec: backport 8857 to rec 4.3.x: update copyright year

5 years agoMerge pull request #8865 from omoerbeek/backport-8833-to-rec-4.3.x
Otto Moerbeek [Wed, 26 Feb 2020 11:13:44 +0000 (12:13 +0100)] 
Merge pull request #8865 from omoerbeek/backport-8833-to-rec-4.3.x

rec: backport 8833 to rec 4.3.x: Allow all connections to the PG server in Circle CI

5 years agoAllow all connections to the PG server in Circle CI 8865/head
Remi Gacogne [Mon, 17 Feb 2020 14:11:29 +0000 (15:11 +0100)] 
Allow all connections to the PG server in Circle CI

(cherry picked from commit fed8314d910dbd61f3f3abfbf51f8a316b93001c)

5 years agoIt's 2020 8863/head
Otto Moerbeek [Mon, 24 Feb 2020 14:58:08 +0000 (15:58 +0100)] 
It's 2020

(cherry picked from commit 9fce9d6c21253da0fbeed5163d148be4a0bad1f6)

5 years agoMerge pull request #8831 from omoerbeek/backport-8826-to-rec-4.3.x rec-4.3.0-rc2
Otto Moerbeek [Mon, 17 Feb 2020 10:06:48 +0000 (11:06 +0100)] 
Merge pull request #8831 from omoerbeek/backport-8826-to-rec-4.3.x

rec: Backport 8826 to rec 4.3.x: Refuse NSEC records with a bitmap length > 32

5 years agoMerge pull request #8827 from omoerbeek/backport-8823-to-rec-4.3.x
Otto Moerbeek [Mon, 17 Feb 2020 10:06:25 +0000 (11:06 +0100)] 
Merge pull request #8827 from omoerbeek/backport-8823-to-rec-4.3.x

rec: Backport 8823 to rec 4.3.x: do continue rpz processing if the current policy is passthru

5 years agoRefuse NSEC records with a bitmap length > 32 8831/head
Remi Gacogne [Fri, 14 Feb 2020 13:40:33 +0000 (14:40 +0100)] 
Refuse NSEC records with a bitmap length > 32

(cherry picked from commit 3d51568b456205c9bd60ceeedb4b43af4a33f019)

5 years agoInit zone's d_priority field. 8827/head
Otto Moerbeek [Mon, 17 Feb 2020 08:41:45 +0000 (09:41 +0100)] 
Init zone's d_priority field.

5 years agoAdapt to somewhat older NetmaskTree
Otto Moerbeek [Fri, 14 Feb 2020 14:15:50 +0000 (15:15 +0100)] 
Adapt to somewhat older NetmaskTree

5 years agoRebased to handle NetmaskTree changes
Otto Moerbeek [Fri, 14 Feb 2020 12:46:21 +0000 (13:46 +0100)] 
Rebased to handle NetmaskTree changes

(cherry picked from commit 9bb0af0351594875cc3a8648e0f523cc666989be)

5 years agoFix compilation issue on older compilers
Otto Moerbeek [Fri, 14 Feb 2020 10:48:15 +0000 (11:48 +0100)] 
Fix compilation issue on older compilers

(cherry picked from commit 63464fee3f912b6b6c2d3df10321e17f1781cf6a)

5 years agoFormatting
Otto Moerbeek [Fri, 14 Feb 2020 09:55:11 +0000 (10:55 +0100)] 
Formatting

(cherry picked from commit 08352cb51e382d27f8204e631d04ad7bfc011f2f)

5 years agoAvoid copying policies around by passing a Policy& that gets modified
Otto Moerbeek [Fri, 14 Feb 2020 09:22:12 +0000 (10:22 +0100)] 
Avoid copying policies around by passing a Policy& that gets modified
if a match is found.

(cherry picked from commit 2996400c6411b2cbd0b0d8f5d811f7daecad5282)

5 years agorec: Lookup RPZ Client IP rules before qname ones
Remi Gacogne [Thu, 13 Feb 2020 14:24:42 +0000 (15:24 +0100)] 
rec: Lookup RPZ Client IP rules before qname ones

(cherry picked from commit a7e329b836f7ccf4e8cd0c99b5e8aa01865a79f1)

5 years agorec: Add more RPZ regression tests
Remi Gacogne [Thu, 13 Feb 2020 14:23:57 +0000 (15:23 +0100)] 
rec: Add more RPZ regression tests

(cherry picked from commit f89ae456f6a975c54d94fd701b16a2fbd1284e82)

5 years agoTest clientIP before name, fix one more cutoff condition.
Otto Moerbeek [Wed, 12 Feb 2020 16:04:39 +0000 (17:04 +0100)] 
Test clientIP before name, fix one more cutoff condition.

(cherry picked from commit a4fc3b3720c8bb6fe872b737cab31ae38e4d1191)

5 years agorec: Add unit tests for the RPZ policy priorities and ordering
Remi Gacogne [Wed, 12 Feb 2020 15:53:47 +0000 (16:53 +0100)] 
rec: Add unit tests for the RPZ policy priorities and ordering

(cherry picked from commit d2205b89a70d262fac29d0bafacfd6b46675dc34)

5 years agoSet the d_priority field in the policy objects of a zone.
Otto Moerbeek [Wed, 12 Feb 2020 15:49:58 +0000 (16:49 +0100)] 
Set the d_priority field in the policy objects of a zone.

Comments from racacogne:
Better name for currentPriority, more elegant loops with right cutoff.

(cherry picked from commit 79f64c2b48b641b12f21a6f47b1b7b5ec0f6c7ee)

5 years agorec: Add regression tests for the ordering of RPZ policies
Remi Gacogne [Wed, 12 Feb 2020 14:54:38 +0000 (15:54 +0100)] 
rec: Add regression tests for the ordering of RPZ policies

(cherry picked from commit fa97374995007c984b756e2e8afb2ac63053107c)

5 years agoContinue evaluation of RPZ rules after passthru, taking
Otto Moerbeek [Wed, 12 Feb 2020 14:35:12 +0000 (15:35 +0100)] 
Continue evaluation of RPZ rules after passthru, taking
into account RPZ priorities.

(cherry picked from commit e37e5795852dc954d50a91ecaca2c47b04f16c24)

5 years agoMerge pull request #8751 from omoerbeek/backport-8740-to-rec-4.3.x rec-4.3.0-rc1
Otto Moerbeek [Tue, 28 Jan 2020 12:50:41 +0000 (13:50 +0100)] 
Merge pull request #8751 from omoerbeek/backport-8740-to-rec-4.3.x

rec: backport 8740 to rec 4.3.x: Update boost.m4

5 years agoUpdate boost.m4 8751/head
Pieter Lexis [Wed, 22 Jan 2020 15:03:59 +0000 (16:03 +0100)] 
Update boost.m4

This detects boost::context on boost version 1.61 through 1.65 correctly

(cherry picked from commit c54133a4abccd7228b6898af5cb7b684c6225e97)

5 years agoMerge pull request #8738 from omoerbeek/backport-8729-to-rec-4.3.x
Otto Moerbeek [Wed, 22 Jan 2020 14:54:38 +0000 (15:54 +0100)] 
Merge pull request #8738 from omoerbeek/backport-8729-to-rec-4.3.x

rec: backport 8729 to rec 4.3.x: Explicitly enable dnstap for debian-stretch and buster

5 years agoMerge pull request #8731 from omoerbeek/backport-8723-to-rec-4.3.x
Otto Moerbeek [Wed, 22 Jan 2020 14:54:16 +0000 (15:54 +0100)] 
Merge pull request #8731 from omoerbeek/backport-8723-to-rec-4.3.x

rec: Backport 8723 to rec 4.3.x: add unit tests for the NSEC3 Opt-Out case

5 years agoMerge pull request #8730 from omoerbeek/backport-8718-to-rec-4.3.x
Otto Moerbeek [Wed, 22 Jan 2020 14:53:52 +0000 (15:53 +0100)] 
Merge pull request #8730 from omoerbeek/backport-8718-to-rec-4.3.x

rec: backport 8718 to rec 4.3.x: Make ComboAddress::setPort() update the current object

5 years agoMerge pull request #8728 from omoerbeek/backport-8719-to-rec-4.3.x
Otto Moerbeek [Wed, 22 Jan 2020 14:53:31 +0000 (15:53 +0100)] 
Merge pull request #8728 from omoerbeek/backport-8719-to-rec-4.3.x

rec: Backport 8719 to rec 4.3.x: EPEL 8 now has libfstrm-devel

5 years agoMerge pull request #8727 from omoerbeek/backport-8705-to-rec-4.3.x
Otto Moerbeek [Wed, 22 Jan 2020 14:53:09 +0000 (15:53 +0100)] 
Merge pull request #8727 from omoerbeek/backport-8705-to-rec-4.3.x

rec: Backport 8705 to rec 4.3.x: Fix the evaluation order for filtering policies (RPZ)

5 years agoMerge pull request #8726 from omoerbeek/backport-8688-to-rec-4.3.x
Otto Moerbeek [Wed, 22 Jan 2020 14:52:44 +0000 (15:52 +0100)] 
Merge pull request #8726 from omoerbeek/backport-8688-to-rec-4.3.x

rec: Backport 8688 to rec 4.3.x: Give an explcit messsage if something is wrong with socket-dir.

5 years ago- Explcitly enable dnstap for debian-stretch and buster 8738/head
Otto Moerbeek [Tue, 21 Jan 2020 09:13:03 +0000 (10:13 +0100)] 
- Explcitly enable dnstap for debian-stretch and buster
- Fix inconsistent ref to stretch vs buster in ubuntu-bionic

(cherry picked from commit 51ad9bdf22e58e95e892b46ebc72904d00592560)

5 years agorec: Bow to formatting gods 8731/head
Remi Gacogne [Tue, 21 Jan 2020 09:53:15 +0000 (10:53 +0100)] 
rec: Bow to formatting gods

(cherry picked from commit 68ffd18c09061cca424cf2bd5ab4305b8271cfd8)

5 years agoFix braces formatting in pdns/recursordist/test-syncres_cc.cc
Remi Gacogne [Tue, 21 Jan 2020 09:25:40 +0000 (10:25 +0100)] 
Fix braces formatting in pdns/recursordist/test-syncres_cc.cc

Co-Authored-By: Otto Moerbeek <otto.moerbeek@open-xchange.com>
(cherry picked from commit 6850fa5d095bf2bb4251a6bbf9f763a2116f5c6a)

5 years agorec: Add unit tests for the NSEC3 Opt-Out case
Remi Gacogne [Mon, 20 Jan 2020 18:24:13 +0000 (19:24 +0100)] 
rec: Add unit tests for the NSEC3 Opt-Out case

An Opt-Out NSEC3 only proves that there is no delegation, so we
should not consider a DS NODATA or a NXDOMAIN proved by that RR
secure but insecure.
This was fixed in 18c8faae6c67f734583c5c881d0d083d3253b49e and this
commit adds a few unit tests to cover the fix.

(cherry picked from commit c179741988b9273b12c15a6b318ff0a43fe50081)

5 years agoMake ComboAddress::setPort() update the current object 8730/head
Remi Gacogne [Mon, 20 Jan 2020 11:05:03 +0000 (12:05 +0100)] 
Make ComboAddress::setPort() update the current object

Instead of creating a new one.

(cherry picked from commit 79816288afe7169c1f1bb28463f22512ca11c3b9)

5 years agoExplicit--enable-dnstap, as suggested by lieter. 8728/head
Otto Moerbeek [Mon, 20 Jan 2020 14:09:48 +0000 (15:09 +0100)] 
Explicit--enable-dnstap, as suggested by lieter.

(cherry picked from commit d9707e17d453042049d8a6cc920d9cc7fe09bf55)

5 years agoEPEL 8 now has libfstrm-devel
Otto Moerbeek [Mon, 20 Jan 2020 13:04:34 +0000 (14:04 +0100)] 
EPEL 8 now has libfstrm-devel

(cherry picked from commit 7799259f199121b2b3feba24f90ef1c5381de51d)

5 years agoBetter function name as suggested by rgacogne. 8726/head
Otto Moerbeek [Mon, 20 Jan 2020 13:42:16 +0000 (14:42 +0100)] 
Better function name as suggested by rgacogne.

(cherry picked from commit c6042a88ccf588e718daf1ddd35622d85b7f3dde)

5 years agoGive an explcit messsage if something is wrong with socket-dir.
Otto Moerbeek [Fri, 10 Jan 2020 11:30:37 +0000 (12:30 +0100)] 
Give an explcit messsage if something is wrong with socket-dir.

(cherry picked from commit 0127f6bdccd1a694c5441e914eaa5550ec6d6e0b)

5 years agorec: Apply Otto's suggestion to distinguish which exact policy matched 8727/head
Remi Gacogne [Fri, 17 Jan 2020 14:36:45 +0000 (15:36 +0100)] 
rec: Apply Otto's suggestion to distinguish which exact policy matched

(cherry picked from commit f1ff3d4f19301340d64f6722d822d15bddda4fb4)

5 years agorec: Remove now useless references to '-2' for RPZ hits
Remi Gacogne [Fri, 17 Jan 2020 14:30:20 +0000 (15:30 +0100)] 
rec: Remove now useless references to '-2' for RPZ hits

(cherry picked from commit 0a9fc756d4d3559ca999756cc6b451693b0467c8)

5 years agorec: Add regression tests for RPZ ordering precedence rules
Remi Gacogne [Wed, 15 Jan 2020 14:43:03 +0000 (15:43 +0100)] 
rec: Add regression tests for RPZ ordering precedence rules

(cherry picked from commit 1d2777e993b3f958b182d90a024826217f28a5a5)

5 years agorec: Export the filtering policy type to Lua
Remi Gacogne [Wed, 15 Jan 2020 13:38:45 +0000 (14:38 +0100)] 
rec: Export the filtering policy type to Lua

(cherry picked from commit ed25b2151711bd20cf4a512b8102eef74665a65c)

5 years agorec: Only the first filtering policy should match
Remi Gacogne [Wed, 15 Jan 2020 13:28:25 +0000 (14:28 +0100)] 
rec: Only the first filtering policy should match

Subsequent ones should not be applied.
Also make sure that NSDNAME and NSIP triggers really stop the
processing of the query, instead of just causing the current NS to
be skipped.

(cherry picked from commit 124dd1d4124c52c56a93d6e765f091c88f7bc88a)

5 years agorec: Fix the evaluation order for filtering policies (RPZ)
Remi Gacogne [Tue, 14 Jan 2020 15:26:23 +0000 (16:26 +0100)] 
rec: Fix the evaluation order for filtering policies (RPZ)

Since 272e9a0034e8c5ea29d1ab7d24630424f178e926 we scanned all policies
for an exact match before looking for wildcard matches. It brokes
the promise that filtering policies are evaluated in the order they
are defined.

(cherry picked from commit 06cfa23ffbc7ae170eee31f8130d74f0b07ec9d9)

5 years agoMerge pull request #8704 from omoerbeek/backport-8702-to-rec-4.3.x rec-4.3.0-beta2
Otto Moerbeek [Wed, 15 Jan 2020 10:25:14 +0000 (11:25 +0100)] 
Merge pull request #8704 from omoerbeek/backport-8702-to-rec-4.3.x

rec: Backport 8702 to 4.3.x: Add the source and destination ports to the protobuf msg

5 years agoHandle source and destination ports in the sample protobuf logger 8704/head
Remi Gacogne [Tue, 14 Jan 2020 09:13:46 +0000 (10:13 +0100)] 
Handle source and destination ports in the sample protobuf logger

(cherry picked from commit f39c1ce956d4bf3fa73d08d996b638e3a8221859)

5 years agorec: Add the source port to protobuf messages for incoming queries
Remi Gacogne [Tue, 14 Jan 2020 09:12:57 +0000 (10:12 +0100)] 
rec: Add the source port to protobuf messages for incoming queries

(cherry picked from commit 5d2e9a839cd59911530bf124badfa239304af5b6)

5 years agodnsdist: Add the source and destination ports to the protobuf msg
Remi Gacogne [Tue, 14 Jan 2020 09:12:18 +0000 (10:12 +0100)] 
dnsdist: Add the source and destination ports to the protobuf msg

(cherry picked from commit 36de33306ac5bfa4f55e26975f35fb35a90914da)

5 years agoMerge pull request #8673 from omoerbeek/backport-8639-to-rec-4.3.x
Pieter Lexis [Tue, 14 Jan 2020 09:12:06 +0000 (10:12 +0100)] 
Merge pull request #8673 from omoerbeek/backport-8639-to-rec-4.3.x

rec: backport 8639 to 4.3.x: debian postinst / do not fail on user creation if it already exists

5 years agoMerge pull request #8685 from omoerbeek/backport-8684-to-rec-4.3.x
Pieter Lexis [Tue, 14 Jan 2020 09:11:09 +0000 (10:11 +0100)] 
Merge pull request #8685 from omoerbeek/backport-8684-to-rec-4.3.x

rec: backport 8684 to 4.3.x: parsing `dont-throttle-names` and `dont-throttle-netmasks` as comma separated lists

5 years agoMerge pull request #8692 from omoerbeek/backport-8665-to-rec-4.3.x
Otto Moerbeek [Tue, 14 Jan 2020 09:01:59 +0000 (10:01 +0100)] 
Merge pull request #8692 from omoerbeek/backport-8665-to-rec-4.3.x

rec: backport 8665 to 4.3.x: An Opt-Out NSEC3 RR only proves that there is no secure delegation

5 years agoMerge pull request #8695 from omoerbeek/backport-8694-to-rec-4.3.x
Otto Moerbeek [Tue, 14 Jan 2020 09:01:35 +0000 (10:01 +0100)] 
Merge pull request #8695 from omoerbeek/backport-8694-to-rec-4.3.x

rec: backport 8694 to 4.3.x: Fix ./syncres.hh:228:20: warning: initialized lambda captures are a C++14 extension

5 years agoFix ./syncres.hh:228:20: warning: initialized lambda captures are a C++14 extension 8695/head
Otto Moerbeek [Mon, 13 Jan 2020 08:48:12 +0000 (09:48 +0100)] 
Fix ./syncres.hh:228:20: warning: initialized lambda captures are a C++14 extension

(cherry picked from commit 7b07a07cce7b9476ef602b9e9b35d30a239bdc96)

5 years agorec: An Opt-Out NSEC3 RR only proves that there is no secure delegation 8692/head
Remi Gacogne [Thu, 2 Jan 2020 10:52:14 +0000 (11:52 +0100)] 
rec: An Opt-Out NSEC3 RR only proves that there is no secure delegation

(cherry picked from commit 18c8faae6c67f734583c5c881d0d083d3253b49e)

5 years agoMerge pull request #8670 from omoerbeek/backport-8648-to-rec-4.3.x
Otto Moerbeek [Fri, 10 Jan 2020 10:02:25 +0000 (11:02 +0100)] 
Merge pull request #8670 from omoerbeek/backport-8648-to-rec-4.3.x

rec: backport 8648 to rec 4.3.x: fix wrong zoneCuts caused by cache only lookup

5 years agoparsing `dont-throttle-names` and `dont-throttle-netmasks` as comma separated lists 8685/head
Costy Petrisor [Thu, 9 Jan 2020 10:56:16 +0000 (10:56 +0000)] 
parsing `dont-throttle-names` and `dont-throttle-netmasks` as comma separated lists

(cherry picked from commit 5285831402f3f3a209c16cb3bd743eea640cf894)

5 years agoMerge pull request #8675 from omoerbeek/backport-8647-to-rec-4.3.x
Otto Moerbeek [Fri, 10 Jan 2020 08:38:42 +0000 (09:38 +0100)] 
Merge pull request #8675 from omoerbeek/backport-8647-to-rec-4.3.x

rec: Backport 8647 to rec 4.3.x: increase default maxqperq

5 years agocorrect cast 8675/head
Otto Moerbeek [Tue, 7 Jan 2020 11:31:22 +0000 (12:31 +0100)] 
correct cast

Co-Authored-By: Remi Gacogne <rgacogne@users.noreply.github.com>
(cherry picked from commit 13c43bdd982b2a6df7096a167b0c32c3cc807a8d)

5 years agoSlightly different approach as suggested by rgacogne: if
Otto Moerbeek [Tue, 7 Jan 2020 11:13:01 +0000 (12:13 +0100)] 
Slightly different approach as suggested by rgacogne: if
qname-minimization is active, force maxqperq to be >= 100.

(cherry picked from commit edea1bf7e1213f9643bd0ce29cb81d4413774d98)

5 years agoSet default maxqperq to 60, and allow for extra if qname-minimization is on.
Otto Moerbeek [Tue, 7 Jan 2020 07:35:24 +0000 (08:35 +0100)] 
Set default maxqperq to 60, and allow for extra if qname-minimization is on.

(cherry picked from commit 409b839837f174a1ca1e614dc7cd66f581e4c1be)

5 years agoBump max-qperq default to 100; this is enough for rev v6 queries with cold
Otto Moerbeek [Fri, 20 Dec 2019 08:02:21 +0000 (09:02 +0100)] 
Bump max-qperq default to 100; this is enough for rev v6 queries with cold
cache with validations and qname minimization enabled.  Fixes #8646.

(cherry picked from commit 15d63d5a4a17aece479be953651643736a26d3d0)

5 years agorec: debian postinst / do not fail on user creation if it already exists 8673/head
Antoine Joubert [Mon, 16 Dec 2019 16:57:13 +0000 (17:57 +0100)] 
rec: debian postinst / do not fail on user creation if it already exists

(cherry picked from commit fddad2718fb994d4fd016c03e1e05ef6c67aae14)

5 years agoIntroduce test for PR 8648. 8670/head
Otto Moerbeek [Mon, 6 Jan 2020 14:04:25 +0000 (15:04 +0100)] 
Introduce test for PR 8648.

While there, explicitly init qname-minimization in test-syncres to
false.  The current code gave the impression it was turned on by
default for unit tests.  We have a lot of test that count queries,
and that is highly depedent on qname minimization being on or off.

5 years agoQName Minimization consults the cache first to see work needs to
Otto Moerbeek [Fri, 20 Dec 2019 09:08:50 +0000 (10:08 +0100)] 
QName Minimization consults the cache first to see work needs to
be done. Via doCacheCheck() this can lead to a call to computeZoneCuts()
which might/does not work properly on only cached records, so always
make sure it can go out if needed. Should fix #8642.

(cherry picked from commit 0eb07f3a5c23cc94c95a2bed022367085f8dfcef)

5 years agoMerge pull request #8539 from pieterlexis/4.3-docs rec-4.3.0-beta1
Peter van Dijk [Tue, 10 Dec 2019 11:25:44 +0000 (12:25 +0100)] 
Merge pull request #8539 from pieterlexis/4.3-docs

Auth 4.3.0 docs

5 years agoauth 4.3.0-alpha1 secpoll 8539/head
Peter van Dijk [Tue, 10 Dec 2019 10:51:44 +0000 (11:51 +0100)] 
auth 4.3.0-alpha1 secpoll

5 years agodocument local-ipv6 removal in 4.3
Peter van Dijk [Mon, 9 Dec 2019 09:26:00 +0000 (10:26 +0100)] 
document local-ipv6 removal in 4.3

5 years agoauth 4.3 changelog
Peter van Dijk [Fri, 6 Dec 2019 15:22:27 +0000 (16:22 +0100)] 
auth 4.3 changelog

5 years agogit-to-changelog-merges: remove trailing spaces
Peter van Dijk [Fri, 6 Dec 2019 15:22:00 +0000 (16:22 +0100)] 
git-to-changelog-merges: remove trailing spaces

5 years agoEL pkgs: chown dirs to service user
Pieter Lexis [Mon, 18 Nov 2019 09:40:09 +0000 (10:40 +0100)] 
EL pkgs: chown dirs to service user

5 years agoAdd auth 4.3.0 upgrade docs
Pieter Lexis [Mon, 18 Nov 2019 09:38:03 +0000 (10:38 +0100)] 
Add auth 4.3.0 upgrade docs

5 years agoMerge pull request #8571 from omoerbeek/rec-better-time-based
Otto Moerbeek [Tue, 10 Dec 2019 09:47:49 +0000 (10:47 +0100)] 
Merge pull request #8571 from omoerbeek/rec-better-time-based

Rec: better time based data structures