]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
6 years agoTell about the release cycles. 9106/head
Otto Moerbeek [Fri, 15 May 2020 08:11:41 +0000 (10:11 +0200)] 
Tell about the release cycles.

6 years agoMerge pull request #9107 from jsoref/spell-check
Peter van Dijk [Fri, 15 May 2020 19:16:40 +0000 (21:16 +0200)] 
Merge pull request #9107 from jsoref/spell-check

Update check-spelling to 0.0.16-a

6 years agoUpdate expects 9107/head
Josh Soref [Fri, 15 May 2020 15:09:22 +0000 (11:09 -0400)] 
Update expects

6 years agospelling: Wshadow
Josh Soref [Fri, 15 May 2020 15:09:07 +0000 (11:09 -0400)] 
spelling: Wshadow

6 years agoIgnore c(xx)flags
Josh Soref [Fri, 15 May 2020 14:46:35 +0000 (10:46 -0400)] 
Ignore c(xx)flags

6 years agospelling: with
Josh Soref [Fri, 15 May 2020 14:44:51 +0000 (10:44 -0400)] 
spelling: with

6 years agospelling: target
Josh Soref [Fri, 15 May 2020 14:43:05 +0000 (10:43 -0400)] 
spelling: target

6 years agospelling: should
Josh Soref [Fri, 15 May 2020 14:42:48 +0000 (10:42 -0400)] 
spelling: should

6 years agospelling: record
Josh Soref [Fri, 15 May 2020 14:42:37 +0000 (10:42 -0400)] 
spelling: record

6 years agospelling: milliseconds
Josh Soref [Fri, 15 May 2020 14:42:20 +0000 (10:42 -0400)] 
spelling: milliseconds

6 years agospelling: improvements
Josh Soref [Fri, 15 May 2020 14:40:26 +0000 (10:40 -0400)] 
spelling: improvements

6 years agospelling: first
Josh Soref [Fri, 15 May 2020 14:39:58 +0000 (10:39 -0400)] 
spelling: first

6 years agospelling: answer
Josh Soref [Fri, 15 May 2020 14:38:55 +0000 (10:38 -0400)] 
spelling: answer

6 years agoUpdate check-spelling action
Josh Soref [Fri, 15 May 2020 14:30:24 +0000 (10:30 -0400)] 
Update check-spelling action

6 years agoMerge pull request #9018 from jsoref/spell-check
Peter van Dijk [Fri, 15 May 2020 14:26:19 +0000 (16:26 +0200)] 
Merge pull request #9018 from jsoref/spell-check

Set up spell-checking action

6 years agoSupport LOOP link type 9111/head
Otto Moerbeek [Fri, 15 May 2020 13:33:12 +0000 (15:33 +0200)] 
Support LOOP link type

6 years agoMerge pull request #9105 from omoerbeek/auth-4.0-eol
Otto Moerbeek [Fri, 15 May 2020 08:38:27 +0000 (10:38 +0200)] 
Merge pull request #9105 from omoerbeek/auth-4.0-eol

Mark auth 4.0.x as EOL, plus some even older versions.

6 years agoMark auth 4.0.x as EOL, plus some even older versions. 9105/head
Otto Moerbeek [Fri, 15 May 2020 07:58:21 +0000 (09:58 +0200)] 
Mark auth 4.0.x as EOL, plus some even older versions.

6 years agoMerge pull request #9099 from PowerDNS/omoerbeek-patch-1
Otto Moerbeek [Thu, 14 May 2020 08:22:00 +0000 (10:22 +0200)] 
Merge pull request #9099 from PowerDNS/omoerbeek-patch-1

rec: don't suggest to add a TA for powerdns.com

6 years agoMerge pull request #9100 from omoerbeek/secpol-err-msg
Otto Moerbeek [Thu, 14 May 2020 08:21:39 +0000 (10:21 +0200)] 
Merge pull request #9100 from omoerbeek/secpol-err-msg

Less negatives in error messages improves readability.

6 years agoAlso update surrounding text as noted by phonedph1 9099/head
Otto Moerbeek [Wed, 13 May 2020 14:29:42 +0000 (16:29 +0200)] 
Also update surrounding text as noted by phonedph1

6 years agoLess negatives in error messages improves readability. 9100/head
Otto Moerbeek [Wed, 13 May 2020 12:27:42 +0000 (14:27 +0200)] 
Less negatives in error messages improves readability.

6 years agodon't suggest to a TA for pwerdns.com
Otto Moerbeek [Wed, 13 May 2020 12:17:44 +0000 (14:17 +0200)] 
don't suggest to a TA for pwerdns.com

6 years agoDon't read potentially uninitalized memory if gethostname() failed 9114/head
Remi Gacogne [Mon, 17 Feb 2020 14:20:32 +0000 (15:20 +0100)] 
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.

6 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.

6 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

6 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

6 years agoMention versionadded for the three branches
Otto Moerbeek [Tue, 24 Mar 2020 11:42:05 +0000 (12:42 +0100)] 
Mention versionadded for the three branches

6 years agoLimit the number of queries sent out to get NS addresses per query.
Otto Moerbeek [Tue, 4 Feb 2020 12:52:51 +0000 (13:52 +0100)] 
Limit the number of queries sent out to get NS addresses per query.

6 years agoMerge pull request #9095 from rgacogne/dnsdist-1.5.0-rc2-changelog
Remi Gacogne [Wed, 13 May 2020 08:54:28 +0000 (10:54 +0200)] 
Merge pull request #9095 from rgacogne/dnsdist-1.5.0-rc2-changelog

dnsdist: Update the ChangeLog and secpoll for 1.5.0-rc2

6 years agoTSIG Keys are also used for DNSUPDATE, so update API docs 8970/head
Kevin P. Fleming [Wed, 25 Mar 2020 01:39:52 +0000 (21:39 -0400)] 
TSIG Keys are also used for DNSUPDATE, so update API docs

Signed-off-by: Kevin P. Fleming <kevin@km6g.us>
6 years agoreplace boost:bind() with lambdas 9088/head
Rosen Penev [Wed, 6 May 2020 02:55:52 +0000 (19:55 -0700)] 
replace boost:bind() with lambdas

lambdas are standard C++. bind is also recommended against by LLVM.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agodnsdist: Update the ChangeLog and secpoll for 1.5.0-rc2 9095/head
Remi Gacogne [Mon, 11 May 2020 08:50:29 +0000 (10:50 +0200)] 
dnsdist: Update the ChangeLog and secpoll for 1.5.0-rc2

6 years agoreceiver: fix help output for pdns current-config 9092/head
Josh Soref [Fri, 8 May 2020 22:03:59 +0000 (18:03 -0400)] 
receiver: fix help output for pdns current-config

6 years agoMerge pull request #9070 from rgacogne/boost-173 dnsdist-1.5.0-rc2
Remi Gacogne [Wed, 6 May 2020 08:46:57 +0000 (10:46 +0200)] 
Merge pull request #9070 from rgacogne/boost-173

Boost 1.73 moved boost::bind placeholders to the placeholders namespace

6 years agoMerge pull request #9079 from omoerbeek/coverity-1428667
Otto Moerbeek [Mon, 4 May 2020 10:53:13 +0000 (12:53 +0200)] 
Merge pull request #9079 from omoerbeek/coverity-1428667

Avoid throwing an exception in Logger::log().

6 years agoMerge pull request #9080 from omoerbeek/coverity-1401969-sqllite
Otto Moerbeek [Mon, 4 May 2020 10:52:51 +0000 (12:52 +0200)] 
Merge pull request #9080 from omoerbeek/coverity-1401969-sqllite

auth: better (actual) fix for mem leak in SSQLite3::execute()

6 years agoMerge pull request #9076 from rgacogne/clang-10-warnings
Remi Gacogne [Mon, 4 May 2020 09:48:35 +0000 (11:48 +0200)] 
Merge pull request #9076 from rgacogne/clang-10-warnings

Fix useless copies in loop reported by clang++ 10

6 years agoMerge pull request #9084 from pieterlexis/dnsdist_latency_prometheus_help
Remi Gacogne [Mon, 4 May 2020 09:19:37 +0000 (11:19 +0200)] 
Merge pull request #9084 from pieterlexis/dnsdist_latency_prometheus_help

dnsdist: add the unit to the help for latency buckets

6 years agosqlite3_exec does not return SQLITE_DONE or SQLITE_ROW plus one forgottten throw 9080/head
Otto Moerbeek [Mon, 4 May 2020 09:08:26 +0000 (11:08 +0200)] 
sqlite3_exec does not return SQLITE_DONE or SQLITE_ROW plus one forgottten throw
conversion

6 years agoApply suggestions from code review
Otto Moerbeek [Mon, 4 May 2020 09:00:23 +0000 (11:00 +0200)] 
Apply suggestions from code review

Co-authored-by: Remi Gacogne <rgacogne+github@valombre.net>
6 years agoMerge pull request #9078 from omoerbeek/coverity-1419400
Otto Moerbeek [Mon, 4 May 2020 08:50:31 +0000 (10:50 +0200)] 
Merge pull request #9078 from omoerbeek/coverity-1419400

NetmaskTree: do not test node for null, the loop guarantees node is not null.

6 years agoMerge pull request #9087 from kpfleming/patch-1
Otto Moerbeek [Sat, 2 May 2020 13:34:34 +0000 (15:34 +0200)] 
Merge pull request #9087 from kpfleming/patch-1

Correct doc for ecs-add-for default

6 years agoCorrect doc for ecs-add-for default 9087/head
Kevin P. Fleming [Sat, 2 May 2020 13:16:54 +0000 (09:16 -0400)] 
Correct doc for ecs-add-for default

The default setting for `ecs-add-for` includes "::/0", not "::".

6 years agobuilder: avoid config change prompts on each pdns-recursor update 9085/head
Chris Hofstaedtler [Fri, 1 May 2020 21:48:37 +0000 (23:48 +0200)] 
builder: avoid config change prompts on each pdns-recursor update

6 years agobuilder: use new --config=default for building config templates
Chris Hofstaedtler [Fri, 1 May 2020 21:45:32 +0000 (23:45 +0200)] 
builder: use new --config=default for building config templates

6 years agodnsdist: add the unit to the help for latency buckets 9084/head
Pieter Lexis [Fri, 1 May 2020 16:16:46 +0000 (18:16 +0200)] 
dnsdist: add the unit to the help for latency buckets

6 years agoBetter version that also plug the leaks for errors != the ones tested for.
Otto Moerbeek [Fri, 1 May 2020 10:26:51 +0000 (12:26 +0200)] 
Better version that also plug the leaks for errors != the ones tested for.

6 years agoBetter (actual) fix for leak reported by Coverity.
Otto Moerbeek [Fri, 1 May 2020 09:55:51 +0000 (11:55 +0200)] 
Better (actual) fix for leak reported by Coverity.

Always free errmsg; use two diffferent string vars to avoid shadowing.
Coverity 1401969.

6 years agoAvoid throwing an exception in Logger::log(). 9079/head
Otto Moerbeek [Fri, 1 May 2020 08:56:09 +0000 (10:56 +0200)] 
Avoid throwing an exception in Logger::log().

Throwing an exception in the logger, almost cetainly will cause
trouble. Coverity 1428667 shows this can happen in
LdapBackend::~LdapBackend().

6 years agoDo not test node for null, the loop guarantees node is not null. 9078/head
Otto Moerbeek [Fri, 1 May 2020 08:52:50 +0000 (10:52 +0200)] 
Do not test node for null, the loop guarantees node is not null.

Found by Coverity (1419400), which concludes that if node could be
null, the following node->node.first.getBits() would deref a nullptr.

6 years agoauth: Remove unused variable in the LDAP backend 9076/head
Remi Gacogne [Thu, 30 Apr 2020 08:30:34 +0000 (10:30 +0200)] 
auth: Remove unused variable in the LDAP backend

6 years agoauth: Fix 'loop variable [...] creates a copy' warnings
Remi Gacogne [Thu, 30 Apr 2020 08:30:22 +0000 (10:30 +0200)] 
auth: Fix 'loop variable [...] creates a copy' warnings

Reported by clang++ 10.

6 years agorec: Fix 'loop variable [...] creates a copy' warnings
Remi Gacogne [Thu, 30 Apr 2020 08:29:06 +0000 (10:29 +0200)] 
rec: Fix 'loop variable [...] creates a copy' warnings

Reported by clang++ 10.

6 years agoMerge pull request #9067 from rgacogne/wrap-pthread-objects
Remi Gacogne [Thu, 30 Apr 2020 07:22:21 +0000 (09:22 +0200)] 
Merge pull request #9067 from rgacogne/wrap-pthread-objects

Wrap pthread objects

6 years agoMake the constructors taking a pthread_rwlock_t * private. 9067/head
Otto Moerbeek [Wed, 29 Apr 2020 10:36:27 +0000 (12:36 +0200)] 
Make the constructors taking a pthread_rwlock_t * private.

This is to avoid re-introducing code using the unwrapped pthread_rwlock_t's.
While there, reorganize the classes to make the order more natural.

6 years agoSet socket-dir to RUNTIME_DIRECTORY under systemd. 9073/head
Pieter Lexis [Wed, 29 Apr 2020 09:32:23 +0000 (11:32 +0200)] 
Set socket-dir to RUNTIME_DIRECTORY under systemd.

RUNTIME_DIRECTORY is set by systemd to the value to `RuntimeDirectory`
, which is managed by systemd and so it is safe to use for the socket-dir.

6 years agoEnsure runtime dirs for virtual services differ
Pieter Lexis [Wed, 29 Apr 2020 08:12:03 +0000 (10:12 +0200)] 
Ensure runtime dirs for virtual services differ

6 years agoReplace boost's placeholders with the ones from the std namespace 9070/head
Remi Gacogne [Tue, 28 Apr 2020 15:51:47 +0000 (17:51 +0200)] 
Replace boost's placeholders with the ones from the std namespace

Boost 1.73 moved boost::bind placeholders to the placeholders
namespace which did not exist before 1.60, let's switch to
std::bind and std::placeholders instead of doing per-version handling.

6 years agoLock: Remove the unused g_singleThreaded variable
Remi Gacogne [Tue, 28 Apr 2020 13:59:46 +0000 (15:59 +0200)] 
Lock: Remove the unused g_singleThreaded variable

6 years agoRemove the now unused Lock class wrapping pthread_mutex_t objects
Remi Gacogne [Tue, 28 Apr 2020 13:34:25 +0000 (15:34 +0200)] 
Remove the now unused Lock class wrapping pthread_mutex_t objects

6 years agoauth: Wrap a few more missed pthread_ objects
Remi Gacogne [Tue, 28 Apr 2020 13:33:47 +0000 (15:33 +0200)] 
auth: Wrap a few more missed pthread_ objects

6 years agoauth: Wrap pthread_ objects
Remi Gacogne [Fri, 24 Apr 2020 19:02:41 +0000 (21:02 +0200)] 
auth: Wrap pthread_ objects

6 years agorec: Wrap pthread_ objects
Remi Gacogne [Fri, 24 Apr 2020 15:44:09 +0000 (17:44 +0200)] 
rec: Wrap pthread_ objects

6 years agodnsdist: Wrap pthread_ objects
Remi Gacogne [Fri, 24 Apr 2020 15:27:50 +0000 (17:27 +0200)] 
dnsdist: Wrap pthread_ objects

6 years agoMerge pull request #9069 from omoerbeek/test-destroy-with-waiters
Otto Moerbeek [Tue, 28 Apr 2020 12:14:03 +0000 (14:14 +0200)] 
Merge pull request #9069 from omoerbeek/test-destroy-with-waiters

Avoid "pthread_rwlock_destroy on rwlock with waiters!" on OpenBSD

6 years agoMerge pull request #9068 from rgacogne/ddist-http2-counters
Remi Gacogne [Tue, 28 Apr 2020 12:00:10 +0000 (14:00 +0200)] 
Merge pull request #9068 from rgacogne/ddist-http2-counters

dnsdist: Fix duplicated HTTP/1 counter in 'showDOHFrontends()'

6 years agoAvoid "pthread_rwlock_destroy on rwlock with waiters!" on OpenBSD 9069/head
Otto Moerbeek [Tue, 28 Apr 2020 11:32:51 +0000 (13:32 +0200)] 
Avoid "pthread_rwlock_destroy on rwlock with waiters!" on OpenBSD

6 years agodnsdist: Fix duplicated HTTP/1 counter in 'showDOHFrontends()' 9068/head
Remi Gacogne [Tue, 28 Apr 2020 10:12:12 +0000 (12:12 +0200)] 
dnsdist: Fix duplicated HTTP/1 counter in 'showDOHFrontends()'

6 years agoMerge pull request #9057 from rgacogne/ddist-socket-removal
Remi Gacogne [Tue, 28 Apr 2020 07:58:44 +0000 (09:58 +0200)] 
Merge pull request #9057 from rgacogne/ddist-socket-removal

dnsdist: Gracefully handle a failure to remove FD on (re)-connection

6 years agoMerge pull request #9056 from omoerbeek/decl-warnings
Otto Moerbeek [Tue, 28 Apr 2020 06:41:30 +0000 (08:41 +0200)] 
Merge pull request #9056 from omoerbeek/decl-warnings

Add -Wmissing-declarations -Wredundant-decls

6 years agoMerge pull request #9060 from Habbie/bind-extstatus-offbyone
Remi Gacogne [Mon, 27 Apr 2020 08:08:23 +0000 (10:08 +0200)] 
Merge pull request #9060 from Habbie/bind-extstatus-offbyone

BIND-DOMAIN-EXTENDED-STATUS: don't look for a domain called BIND-DOMAIN-EXTENDED-STATUS

6 years agoBIND-DOMAIN-EXTENDED-STATUS: don't look for a domain called BIND-DOMAIN-EXTENDED... 9060/head
Peter van Dijk [Fri, 24 Apr 2020 18:58:42 +0000 (20:58 +0200)] 
BIND-DOMAIN-EXTENDED-STATUS: don't look for a domain called BIND-DOMAIN-EXTENDED-STATUS

6 years agoMerge pull request #9059 from omoerbeek/dnsdist-warnings
Otto Moerbeek [Fri, 24 Apr 2020 14:01:53 +0000 (16:01 +0200)] 
Merge pull request #9059 from omoerbeek/dnsdist-warnings

dnsdist: a few warnings fixed, reported by clang on OpenBSD

6 years agoFix warnings about dup/missing prototypes 9056/head
Remi Gacogne [Fri, 24 Apr 2020 13:36:08 +0000 (15:36 +0200)] 
Fix warnings about dup/missing prototypes

6 years agoA few warnings, reported by clang on OpenBSD 9059/head
Otto Moerbeek [Fri, 24 Apr 2020 12:49:32 +0000 (14:49 +0200)] 
A few warnings, reported by clang on OpenBSD

6 years agodnsdist: Gracefully handle a failure to remove FD on (re)-connection 9057/head
Remi Gacogne [Fri, 24 Apr 2020 10:45:45 +0000 (12:45 +0200)] 
dnsdist: Gracefully handle a failure to remove FD on (re)-connection

When more than one socket per backend is used, we might not have
added all the socket descriptors to the multiplexer and that's fine.

6 years agoMerge pull request #9044 from rgacogne/auth-never-read-clang
Remi Gacogne [Fri, 24 Apr 2020 08:25:24 +0000 (10:25 +0200)] 
Merge pull request #9044 from rgacogne/auth-never-read-clang

auth: Fix warnings reported by clang++ 10

6 years agoMerge pull request #9053 from rgacogne/devpoll-no-naked-pointer
Remi Gacogne [Fri, 24 Apr 2020 08:23:51 +0000 (10:23 +0200)] 
Merge pull request #9053 from rgacogne/devpoll-no-naked-pointer

Get rid of a naked pointer in the /dev/poll event multiplexer

6 years agoMerge pull request #9054 from rgacogne/ddist-more-flags
Remi Gacogne [Fri, 24 Apr 2020 08:23:15 +0000 (10:23 +0200)] 
Merge pull request #9054 from rgacogne/ddist-more-flags

dnsdist: Build with -Wmissing-declarations -Wredundant-decls

6 years agoAdd -Wmissing-declarations -Wredundant-decls
Otto Moerbeek [Fri, 24 Apr 2020 08:11:20 +0000 (10:11 +0200)] 
Add -Wmissing-declarations -Wredundant-decls

6 years agoMerge pull request #9016 from omoerbeek/random-engine
Otto Moerbeek [Fri, 24 Apr 2020 07:31:45 +0000 (09:31 +0200)] 
Merge pull request #9016 from omoerbeek/random-engine

random engine to allow for future ++17 compatibility

6 years agoMerge pull request #9050 from aerique/feature/add-rec-44-to-repo-script
aerique [Thu, 23 Apr 2020 20:03:59 +0000 (22:03 +0200)] 
Merge pull request #9050 from aerique/feature/add-rec-44-to-repo-script

Add `rec-44` to repo test script.

6 years agoGet rid of a naked pointer in the /dev/poll event multiplexer 9053/head
Remi Gacogne [Thu, 23 Apr 2020 15:37:23 +0000 (17:37 +0200)] 
Get rid of a naked pointer in the /dev/poll event multiplexer

6 years agodnsdist: Build with -Wmissing-declarations -Wredundant-decls 9054/head
Remi Gacogne [Thu, 23 Apr 2020 13:42:45 +0000 (15:42 +0200)] 
dnsdist: Build with -Wmissing-declarations -Wredundant-decls

6 years agodnsdist: Fix warnings about dup/missing prototypes
Remi Gacogne [Thu, 23 Apr 2020 13:41:41 +0000 (15:41 +0200)] 
dnsdist: Fix warnings about dup/missing prototypes

Including a wrong FFI prototype.

6 years agoMerge pull request #9052 from cyclops1982/docs
Remi Gacogne [Thu, 23 Apr 2020 08:00:12 +0000 (10:00 +0200)] 
Merge pull request #9052 from cyclops1982/docs

Small doc changes

6 years agoAdd notes on logging ability in dnsdist 9052/head
Ruben d'Arco [Wed, 22 Apr 2020 20:09:52 +0000 (21:09 +0100)] 
Add notes on logging ability in dnsdist

6 years agoMerge pull request #9046 from omoerbeek/rec-prep-4.4.0-alpha1
aerique [Wed, 22 Apr 2020 13:10:23 +0000 (15:10 +0200)] 
Merge pull request #9046 from omoerbeek/rec-prep-4.4.0-alpha1

Prep rec-4.4.0-alpha1

6 years agoAdd `rec-44` to repo test script. 9050/head
aerique [Wed, 22 Apr 2020 13:08:52 +0000 (15:08 +0200)] 
Add `rec-44` to repo test script.

6 years agoixfrdist: Use more of systemd's sandboxing options when available 8969/head
Remi Gacogne [Wed, 22 Apr 2020 10:03:36 +0000 (12:03 +0200)] 
ixfrdist: Use more of systemd's sandboxing options when available

6 years agodnsdist: Set the default EDNS buffer size on generated answers to 1232
Remi Gacogne [Wed, 22 Apr 2020 09:12:05 +0000 (11:12 +0200)] 
dnsdist: Set the default EDNS buffer size on generated answers to 1232

6 years agoIn dnsdist, (which is not a dns_random consumer), use sdt::default_random_engine 9016/head
Otto Moerbeek [Tue, 21 Apr 2020 12:36:12 +0000 (14:36 +0200)] 
In dnsdist, (which is not a dns_random consumer), use sdt::default_random_engine
for shuffle.

6 years agoAvoid self-assignment of DNSName, some version of boost::container::string
Otto Moerbeek [Wed, 8 Apr 2020 13:26:08 +0000 (15:26 +0200)] 
Avoid self-assignment of DNSName, some version of boost::container::string
do not like that and throw an assertion.

6 years agoUtilize std::shuffle and introduce pdns::dns_random_engine
krionbsd [Mon, 6 Apr 2020 10:28:34 +0000 (12:28 +0200)] 
Utilize std::shuffle and introduce pdns::dns_random_engine

std::random_shuffle is deprecated and removed starting from C++17, so we
might better use std::shuffle which uses URBG:
https://en.cppreference.com/w/cpp/named_req/UniformRandomBitGenerator
under the hood for a better random generation.

6 years agoPrep rec-4.4.0-alpha1 9046/head
Otto Moerbeek [Mon, 20 Apr 2020 14:45:50 +0000 (16:45 +0200)] 
Prep rec-4.4.0-alpha1

6 years agoMerge pull request #8910 from omoerbeek/rec-routing-tag rec-4.4.0-alpha1
Otto Moerbeek [Mon, 20 Apr 2020 14:26:56 +0000 (16:26 +0200)] 
Merge pull request #8910 from omoerbeek/rec-routing-tag

Rec: routing tag

6 years agoTest tweaks 8910/head
Otto Moerbeek [Fri, 17 Apr 2020 09:14:27 +0000 (09:14 +0000)] 
Test tweaks

6 years agoSimpify 'variable' condition: it boils down to having a reply from
Otto Moerbeek [Fri, 17 Apr 2020 08:17:09 +0000 (10:17 +0200)] 
Simpify 'variable' condition: it boils down to having a reply from
the auth including an ednsmask, routingTag does not play a role.

6 years agoProcess rgacogne's comments wrt entryMatches().
Otto Moerbeek [Fri, 17 Apr 2020 08:08:56 +0000 (10:08 +0200)] 
Process rgacogne's comments wrt entryMatches().

This simplifies the code, but has the silent assumption that
entryMatches() only gets fed matching routingTags (if present).
The getEntries() code does guarrantee this so we should be safe.