]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
3 years agoTypo spotted by reviewer 11507/head
Otto Moerbeek [Tue, 12 Apr 2022 07:25:31 +0000 (09:25 +0200)] 
Typo spotted by reviewer

Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
3 years agoBetter English in docs
Otto Moerbeek [Wed, 6 Apr 2022 11:14:29 +0000 (13:14 +0200)] 
Better English in docs

Co-authored-by: Neil Cook <neil.cook@noware.co.uk>
3 years agoAdd test for extra domain table in proxy mapping1
Otto Moerbeek [Tue, 5 Apr 2022 11:12:35 +0000 (13:12 +0200)] 
Add test for extra domain table in proxy mapping1

3 years agoAdd docs plus some cleanup of the DNS Suffix Match Group docs we refer to.
Otto Moerbeek [Tue, 5 Apr 2022 11:48:54 +0000 (13:48 +0200)] 
Add docs plus some cleanup of the DNS Suffix Match Group docs we refer to.

3 years agoAdd an (optional) table of domains to addProxyMapping().
Otto Moerbeek [Tue, 5 Apr 2022 08:01:19 +0000 (10:01 +0200)] 
Add an (optional) table of domains to addProxyMapping().

The table is used to construct a DNSSuffixMatchGroup. Only apply mapping
if the qname in the query matches the DNSSuffixMatchGroup.

3 years agoMerge pull request #11500 from paddg/patch-11
Peter van Dijk [Mon, 4 Apr 2022 14:10:13 +0000 (16:10 +0200)] 
Merge pull request #11500 from paddg/patch-11

Update upgrade.rst

3 years agoUpdate upgrade.rst 11500/head
Winfried Angele [Mon, 4 Apr 2022 13:20:18 +0000 (15:20 +0200)] 
Update upgrade.rst

Oversight corrected

3 years agoMerge pull request #11483 from omoerbeek/rec-prep-459-462
Otto Moerbeek [Mon, 4 Apr 2022 12:21:38 +0000 (14:21 +0200)] 
Merge pull request #11483 from omoerbeek/rec-prep-459-462

Prep for 4.5.9 and 4.6.2 releases

3 years agoMerge pull request #11484 from omoerbeek/rec-syncres-tables3
Otto Moerbeek [Mon, 4 Apr 2022 11:10:56 +0000 (13:10 +0200)] 
Merge pull request #11484 from omoerbeek/rec-syncres-tables3

rec: Use boost::mult-index for nsspeed table and make it shared.

3 years agoMerge pull request #11466 from omoerbeek/2022-01-ixfr
Peter van Dijk [Mon, 4 Apr 2022 10:56:29 +0000 (12:56 +0200)] 
Merge pull request #11466 from omoerbeek/2022-01-ixfr

ixfr: Fix a case where an incomplete read caused by network error might result in a truncated zone

3 years agorename find to find_or_enter 11484/head
Otto Moerbeek [Mon, 4 Apr 2022 10:19:36 +0000 (12:19 +0200)] 
rename find to find_or_enter

3 years agoMerge pull request #11489 from Habbie/dnsupdate-carsten
Peter van Dijk [Mon, 4 Apr 2022 10:23:06 +0000 (12:23 +0200)] 
Merge pull request #11489 from Habbie/dnsupdate-carsten

auth docs: fix typo in dnsupdate doc, thanks Carsten Strotmann

3 years agoMerge pull request #11496 from swegener/recursor-segfault-parseACL
Otto Moerbeek [Mon, 4 Apr 2022 10:08:31 +0000 (12:08 +0200)] 
Merge pull request #11496 from swegener/recursor-segfault-parseACL

Prevent segfault with empty allow-from-file and allow-from options

3 years agoMerge pull request #11495 from omoerbeek/luawrapper-exception-from-cp-ct
Otto Moerbeek [Mon, 4 Apr 2022 09:38:00 +0000 (11:38 +0200)] 
Merge pull request #11495 from omoerbeek/luawrapper-exception-from-cp-ct

Coverity: 1419402 Uncaught exception in LuaWrapper

3 years agoPrevent segfault with empty allow-from-file and allow-from options 11496/head
Sven Wegener [Sat, 2 Apr 2022 13:35:09 +0000 (15:35 +0200)] 
Prevent segfault with empty allow-from-file and allow-from options

Always return a valid NetmaskGroup from parseACL()

3 years agoMerge pull request #11494 from omoerbeek/coverity-fixes-20220401
Otto Moerbeek [Fri, 1 Apr 2022 13:53:09 +0000 (15:53 +0200)] 
Merge pull request #11494 from omoerbeek/coverity-fixes-20220401

Bunch of Coverity fixes

3 years agoThrow an exception on trying to get an address out of a non-A/AAAA record. 11494/head
Otto Moerbeek [Fri, 1 Apr 2022 13:16:10 +0000 (15:16 +0200)] 
Throw an exception on trying to get an address out of a non-A/AAAA record.

Better that the nullptr deref it was before.

3 years agoCoverity: 1419402 Uncaught exception 11495/head
Otto Moerbeek [Fri, 1 Apr 2022 12:48:05 +0000 (14:48 +0200)] 
Coverity: 1419402 Uncaught exception

Catch any exception that might be thrown when (copy) constructing an object.
As the push method is declared `noexcept` we cannot have that.

3 years agoFormatting
Otto Moerbeek [Fri, 1 Apr 2022 10:46:01 +0000 (12:46 +0200)] 
Formatting

3 years agoCoverity:
Otto Moerbeek [Fri, 1 Apr 2022 10:28:43 +0000 (12:28 +0200)] 
Coverity:
1469603 Uninitialized scalar field
1445929 Uninitialized scalar field

3 years agoCoverity: 1469685 Dereference null return value
Otto Moerbeek [Fri, 1 Apr 2022 10:26:42 +0000 (12:26 +0200)] 
Coverity: 1469685 Dereference null return value

3 years agoCoverity: 1466057 Unchecked return value
Otto Moerbeek [Fri, 1 Apr 2022 10:26:00 +0000 (12:26 +0200)] 
Coverity: 1466057 Unchecked return value

3 years agoCoverity: 1462718 Unchecked return value from library
Otto Moerbeek [Fri, 1 Apr 2022 10:25:33 +0000 (12:25 +0200)] 
Coverity: 1462718 Unchecked return value from library

3 years agoCoverity:
Otto Moerbeek [Fri, 1 Apr 2022 10:23:59 +0000 (12:23 +0200)] 
Coverity:
1487562 Uninitialized scalar variable
1469603 Uninitialized scalar field
1446991 Uninitialized scalar field

3 years agoCoverity 1469687: Dereference null return value
Otto Moerbeek [Fri, 1 Apr 2022 10:22:29 +0000 (12:22 +0200)] 
Coverity 1469687: Dereference null return value

3 years agoMerge pull request #11312 from omoerbeek/rec-pc-cleanup
Otto Moerbeek [Fri, 1 Apr 2022 08:52:46 +0000 (10:52 +0200)] 
Merge pull request #11312 from omoerbeek/rec-pc-cleanup

Rec: packet cache improvements

3 years agoUse correct index for LRU delete 11312/head
Otto Moerbeek [Mon, 28 Mar 2022 08:21:02 +0000 (10:21 +0200)] 
Use correct index for LRU delete

3 years agoUse correct counters to compute PC cache hit ratio and qps.
Otto Moerbeek [Wed, 23 Feb 2022 12:30:52 +0000 (13:30 +0100)] 
Use correct counters to compute PC cache hit ratio and qps.
SyncRes::s_queries only counts queries handled by SyncRes.

3 years agoFormat cachecleaner
Otto Moerbeek [Sun, 6 Feb 2022 15:25:12 +0000 (16:25 +0100)] 
Format cachecleaner

3 years agoTell packet cache it's max size and use it on insert to immediately
Otto Moerbeek [Sun, 6 Feb 2022 14:38:48 +0000 (15:38 +0100)] 
Tell packet cache it's max size and use it on insert to immediately
delete the oldest entry when we're over-sized.

Also, if we're seeing a stale cache item, don't move it to the front
of the sequence, as we're almost always going to update it and then
it will be moved again to the back.

3 years agoOnly create PC for threads that need it
Otto Moerbeek [Sun, 6 Feb 2022 09:49:41 +0000 (10:49 +0100)] 
Only create PC for threads that need it

3 years agoauth docs: fix typo in dnsupdate doc, thanks Carsten Strotmann 11489/head
Peter van Dijk [Thu, 31 Mar 2022 09:41:56 +0000 (11:41 +0200)] 
auth docs: fix typo in dnsupdate doc, thanks Carsten Strotmann

3 years agoUse boost::mult-index for nsspeed table and make it shared.
Otto Moerbeek [Mon, 28 Mar 2022 11:29:25 +0000 (13:29 +0200)] 
Use boost::mult-index for nsspeed table and make it shared.

3 years agoMerge pull request #11444 from omoerbeek/rec-syncres-tables2
Otto Moerbeek [Wed, 30 Mar 2022 10:20:05 +0000 (12:20 +0200)] 
Merge pull request #11444 from omoerbeek/rec-syncres-tables2

rec: Use nice format for timestamp printing

3 years agoUse nice format for timestamp printing 11444/head
Otto Moerbeek [Wed, 23 Mar 2022 12:34:08 +0000 (13:34 +0100)] 
Use nice format for timestamp printing

3 years agoMerge pull request #11476 from omoerbeek/rec-std-function
Otto Moerbeek [Wed, 30 Mar 2022 08:47:23 +0000 (10:47 +0200)] 
Merge pull request #11476 from omoerbeek/rec-std-function

Switch from boost::function to std::function everywhere

3 years agoMerge pull request #11477 from omoerbeek/rec-docs-postresolve-ffi
Otto Moerbeek [Wed, 30 Mar 2022 08:34:04 +0000 (10:34 +0200)] 
Merge pull request #11477 from omoerbeek/rec-docs-postresolve-ffi

rec: postresolve_ffi docs

3 years agoMerge pull request #11471 from omoerbeek/rec-sd_notify
Otto Moerbeek [Wed, 30 Mar 2022 08:33:38 +0000 (10:33 +0200)] 
Merge pull request #11471 from omoerbeek/rec-sd_notify

rec: In the handler, call sd_notify just befere entering the main loop in RecursorThread

3 years agoMerge pull request #11482 from rgacogne/fix-static-warnings
Remi Gacogne [Wed, 30 Mar 2022 08:25:18 +0000 (10:25 +0200)] 
Merge pull request #11482 from rgacogne/fix-static-warnings

Fix a couple of static analysis warnings

3 years agoLuaWrapper: Prevent referencing a temporary object 11482/head
Remi Gacogne [Tue, 29 Mar 2022 16:09:28 +0000 (18:09 +0200)] 
LuaWrapper: Prevent referencing a temporary object

Reported by Coverity (CIDs 120403 and 145915)

3 years agoLMDB: Clarify that the base commit() method should be called in the dtor
Remi Gacogne [Tue, 29 Mar 2022 15:49:41 +0000 (17:49 +0200)] 
LMDB: Clarify that the base commit() method should be called in the dtor

CodeQL warns that there might some ambiguity about whether the base
or derived commit() method is called in derived classes:

https://github.com/PowerDNS/pdns/security/code-scanning/379

3 years agorec: postresolve_ffi docs 11477/head
Otto Moerbeek [Tue, 29 Mar 2022 10:00:21 +0000 (12:00 +0200)] 
rec: postresolve_ffi docs

Plus fix a formatting issue in policyEventFilter docs.

3 years agoPrep for 4.5.9 and 4.6.2 releases 11483/head
Otto Moerbeek [Mon, 7 Mar 2022 08:52:33 +0000 (09:52 +0100)] 
Prep for 4.5.9 and 4.6.2 releases

3 years agoInclude <functional> where needed 11476/head
Otto Moerbeek [Tue, 29 Mar 2022 07:37:33 +0000 (09:37 +0200)] 
Include <functional> where needed

3 years agoMove remaining boost:function to std::function
Otto Moerbeek [Mon, 28 Mar 2022 15:07:27 +0000 (17:07 +0200)] 
Move remaining boost:function to std::function

3 years agoauth, rec IXFR-in: Fix a case where an incomplete read caused by network error might... 11466/head
Otto Moerbeek [Tue, 8 Mar 2022 14:36:48 +0000 (15:36 +0100)] 
auth, rec IXFR-in: Fix a case where an incomplete read caused by network error might result in a truncated zone.

As we might break from the loop early, we need to check if the end SOA was seen after the loop.
Also make sure we detect end conditions for both AXFR and IXFR style properly, to avoid processing
data after the end marker.

3 years agoMerge pull request #11295 from tokred/contrib-pdnsutil-zcompl
Peter van Dijk [Mon, 28 Mar 2022 15:58:59 +0000 (17:58 +0200)] 
Merge pull request #11295 from tokred/contrib-pdnsutil-zcompl

auth: zsh completion script for pdnsutil

3 years agoSwitch to std::fcuntion for broadcast functions. Fixes a mem leak report by scanbuild.
Otto Moerbeek [Mon, 28 Mar 2022 14:53:28 +0000 (16:53 +0200)] 
Switch to std::fcuntion for broadcast functions. Fixes a mem leak report by scanbuild.

3 years agoauth: zsh completion script for pdnsutil 11295/head
tokred [Sat, 5 Feb 2022 17:24:09 +0000 (18:24 +0100)] 
auth: zsh completion script for pdnsutil

3 years agoIn the handler, call sd_notify just befere entering the main loop in RecursorThread 11471/head
Otto Moerbeek [Mon, 28 Mar 2022 11:53:14 +0000 (13:53 +0200)] 
In the handler, call sd_notify just befere entering the main loop in RecursorThread

There still is a race, but this is better than calling sd_notify before the handler is created.

3 years agoMerge pull request #11437 from rgacogne/ddist-healthcheck-mplexer
Remi Gacogne [Mon, 28 Mar 2022 10:10:11 +0000 (12:10 +0200)] 
Merge pull request #11437 from rgacogne/ddist-healthcheck-mplexer

dnsdist: Only allocate the health-check mplexer when needed

3 years agoMerge pull request #11470 from omoerbeek/rec-scanbuild-fixes
Otto Moerbeek [Mon, 28 Mar 2022 10:08:58 +0000 (12:08 +0200)] 
Merge pull request #11470 from omoerbeek/rec-scanbuild-fixes

Rec: scanbuild fixes

3 years agoMerge pull request #11426 from mind04/pdns-fix-decaf-signer
Peter van Dijk [Mon, 28 Mar 2022 09:53:35 +0000 (11:53 +0200)] 
Merge pull request #11426 from mind04/pdns-fix-decaf-signer

decaf signer did not compile after #11414

3 years agoMerge pull request #11465 from omoerbeek/docs-2022-01-prs
Peter van Dijk [Mon, 28 Mar 2022 09:23:59 +0000 (11:23 +0200)] 
Merge pull request #11465 from omoerbeek/docs-2022-01-prs

Fill in PR#s for Security Advisory 2022-01

3 years agoMerge pull request #11445 from omoerbeek/rec-nod-log-too-long
Otto Moerbeek [Mon, 28 Mar 2022 09:21:44 +0000 (11:21 +0200)] 
Merge pull request #11445 from omoerbeek/rec-nod-log-too-long

rec: Only log "Unable to send NOD lookup" if log-comnon-errors is set

3 years agoComment on the two remaining scanbuild cases. At first sight these are both false... 11470/head
Otto Moerbeek [Mon, 28 Mar 2022 09:07:46 +0000 (11:07 +0200)] 
Comment on the two remaining scanbuild cases. At first sight these are both false positives.

3 years agoTeach scanbuild that two divisions are safe: one by adding an assert, one by using...
Otto Moerbeek [Mon, 28 Mar 2022 08:50:52 +0000 (10:50 +0200)] 
Teach scanbuild that two divisions are safe: one by adding an assert, one by using a *const* table

3 years agoAdd .cacche dir for pdns/pdns
Otto Moerbeek [Fri, 25 Mar 2022 14:41:48 +0000 (15:41 +0100)] 
Add .cacche dir for pdns/pdns

3 years agoScanbuid fixes
Otto Moerbeek [Fri, 25 Mar 2022 10:17:44 +0000 (11:17 +0100)] 
Scanbuid fixes

AFAIKS, a few false positives remain:

Unused code Dead assignment lwres.cc asyncresolve 444 1 View Report
Logic error Division by zero pdns_recursor.cc selectWorker 2423 49 View Report
Logic error Division by zero sillyrecords.cc precsize_aton 48 32 View Report
Memory error Memory leak recursordist/rec-main.cc wipeCaches 2716 18 View Report

3 years agoMerge pull request #11467 from Habbie/spelling-202203
Remi Gacogne [Mon, 28 Mar 2022 08:14:46 +0000 (10:14 +0200)] 
Merge pull request #11467 from Habbie/spelling-202203

spelling: add missed words

3 years agospelling: add missed words 11467/head
Peter van Dijk [Fri, 25 Mar 2022 13:16:19 +0000 (14:16 +0100)] 
spelling: add missed words

3 years agoMerge pull request #11447 from jsoref/linguist-dns-zones
Peter van Dijk [Sat, 26 Mar 2022 00:06:52 +0000 (01:06 +0100)] 
Merge pull request #11447 from jsoref/linguist-dns-zones

Add linguist-language tag for dns zones

3 years agoAdd linguist-language tag for dns zones 11447/head
Josh Soref [Fri, 25 Mar 2022 02:19:48 +0000 (22:19 -0400)] 
Add linguist-language tag for dns zones

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
3 years agoFill in PR#s for Security Advisory 2022-01 11465/head
Otto Moerbeek [Fri, 25 Mar 2022 14:13:26 +0000 (15:13 +0100)] 
Fill in PR#s for Security Advisory 2022-01

3 years agosecpoll: fix typos
Peter van Dijk [Fri, 25 Mar 2022 12:21:52 +0000 (13:21 +0100)] 
secpoll: fix typos

3 years agoMerge pull request #11452 from omoerbeek/prep-docs-2022-01
Peter van Dijk [Fri, 25 Mar 2022 12:00:45 +0000 (13:00 +0100)] 
Merge pull request #11452 from omoerbeek/prep-docs-2022-01

rec/auth: Prep for security release 2022-01 (low severity)

3 years agoMerge pull request #11450 from fredmorcos/checked-stoi-empty-str-fix
Fred Morcos [Fri, 25 Mar 2022 10:39:53 +0000 (11:39 +0100)] 
Merge pull request #11450 from fredmorcos/checked-stoi-empty-str-fix

`checked_stoi` fix: Don't leave `idx`/`pos` uninitialized when the input string is empty

3 years agoformat decafsigners.cc 11426/head
Kees Monshouwer [Fri, 25 Mar 2022 10:10:00 +0000 (11:10 +0100)] 
format decafsigners.cc

3 years agoDon't leave idx/pos uninitialized when input str is empty 11450/head
Fred Morcos [Fri, 25 Mar 2022 08:52:29 +0000 (09:52 +0100)] 
Don't leave idx/pos uninitialized when input str is empty

3 years agoMerge pull request #11449 from rgacogne/docs-pin-jinja2
Peter van Dijk [Fri, 25 Mar 2022 09:12:49 +0000 (10:12 +0100)] 
Merge pull request #11449 from rgacogne/docs-pin-jinja2

docs: Pin jinja2 to < 3.1.0

3 years agodocs: Pin jinja2 to < 3.1.0 11449/head
Remi Gacogne [Fri, 25 Mar 2022 08:45:55 +0000 (09:45 +0100)] 
docs: Pin jinja2 to < 3.1.0

Jinja2 3.1.0 removed deprecated code that is still used by sphinx
1.8.x, and it looks like our custom sphinx extensions are not working
with more recent versions of sphinx..

See:
- https://github.com/pallets/jinja/issues/1631
- https://github.com/readthedocs/readthedocs.org/issues/9037

and

- https://github.com/PowerDNS/pdns/pull/7712

The exact error is:
```
Extension error:
Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/dnsdist/pdns/dnsdistdist/.venv/lib/python3.7/site-packages/jinja2/__init__.py))
```

3 years agoPrep for 2022-01 11452/head
Otto Moerbeek [Fri, 25 Mar 2022 08:04:19 +0000 (09:04 +0100)] 
Prep for 2022-01

3 years agoMerge pull request #11438 from fredmorcos/checked-conv-boundary-val-fix
Fred Morcos [Wed, 23 Mar 2022 14:02:16 +0000 (15:02 +0100)] 
Merge pull request #11438 from fredmorcos/checked-conv-boundary-val-fix

Checked int conversions: Avoid checks when boundary values are equal

3 years agoOnly log "Unable to send NOD lookup" if log-common-errors is set 11445/head
Otto Moerbeek [Wed, 23 Mar 2022 12:48:52 +0000 (13:48 +0100)] 
Only log "Unable to send NOD lookup" if log-common-errors is set

Fixes #11440.

3 years agoMerge pull request #11443 from omoerbeek/rec-syncres-tables1
Otto Moerbeek [Wed, 23 Mar 2022 12:08:52 +0000 (13:08 +0100)] 
Merge pull request #11443 from omoerbeek/rec-syncres-tables1

rec: Move implemenation of failed and non-resolving table to .cc file

3 years agoMerge pull request #11442 from omoerbeek/rec-docs-api-config-dir
Otto Moerbeek [Wed, 23 Mar 2022 12:08:40 +0000 (13:08 +0100)] 
Merge pull request #11442 from omoerbeek/rec-docs-api-config-dir

rec: Note that api-config-dir and include-dir should be the same for updates via REST to work

3 years agoChecked int conversions: Avoid checks when boundary values are equal 11438/head
Fred Morcos [Mon, 21 Mar 2022 13:52:55 +0000 (14:52 +0100)] 
Checked int conversions: Avoid checks when boundary values are equal

3 years agoMove implemenation of failed and non-resolving table to .cc file 11443/head
Otto Moerbeek [Wed, 23 Mar 2022 09:38:59 +0000 (10:38 +0100)] 
Move implemenation of failed and non-resolving table to .cc file

3 years agoNote that api-config-dir and include-dir should be the same for dynamic updates of... 11442/head
Otto Moerbeek [Wed, 23 Mar 2022 08:55:53 +0000 (09:55 +0100)] 
Note that api-config-dir and include-dir should be the same for dynamic updates of config to work.

Plus fix assorted typos. Fixes #11439

3 years agoMerge pull request #11308 from omoerbeek/rec-save-parent-ns
Otto Moerbeek [Mon, 21 Mar 2022 11:35:51 +0000 (12:35 +0100)] 
Merge pull request #11308 from omoerbeek/rec-save-parent-ns

rec: Remember parent NS set, to be able to fallback to it if needed

3 years agoMerge pull request #11396 from omoerbeek/rec-proxy-by-table
Otto Moerbeek [Mon, 21 Mar 2022 11:35:32 +0000 (12:35 +0100)] 
Merge pull request #11396 from omoerbeek/rec-proxy-by-table

Rec: proxy by table

3 years agoproxyMapping: a table based approach to let the recursor know the actual IP address... 11396/head
Otto Moerbeek [Tue, 1 Mar 2022 14:32:59 +0000 (15:32 +0100)] 
proxyMapping: a table based approach to let the recursor know the actual IP address it should use for ACLS etc

3 years agoMerge pull request #11436 from rgacogne/ddist-unbreak-optional
Remi Gacogne [Mon, 21 Mar 2022 09:31:53 +0000 (10:31 +0100)] 
Merge pull request #11436 from rgacogne/ddist-unbreak-optional

dnsdist: Fix compilation by adding a missing <optional> include in misc.cc

3 years agodnsdist: Only allocate the health-check mplexer when needed 11437/head
Remi Gacogne [Mon, 21 Mar 2022 09:27:30 +0000 (10:27 +0100)] 
dnsdist: Only allocate the health-check mplexer when needed

When health-checking is disabled, or when a check delay longer than one
second is used, there is no need to allocate a new multiplexer object
every second.

3 years agoApply suggestions from code review 11308/head
Otto Moerbeek [Fri, 18 Mar 2022 16:04:52 +0000 (17:04 +0100)] 
Apply suggestions from code review

Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
3 years agoTest for saved parent set
Otto Moerbeek [Fri, 18 Mar 2022 13:58:19 +0000 (14:58 +0100)] 
Test for saved parent set

3 years agoDocs, and config switch (default off)
Otto Moerbeek [Fri, 18 Mar 2022 12:38:45 +0000 (13:38 +0100)] 
Docs, and config switch (default off)

3 years agoMoved SavedParentSet class to syncres.cc
Otto Moerbeek [Fri, 18 Mar 2022 12:16:17 +0000 (13:16 +0100)] 
Moved SavedParentSet class to syncres.cc

3 years agoThe nsset can change, so we have to be prepared for that
Otto Moerbeek [Tue, 15 Mar 2022 14:31:13 +0000 (15:31 +0100)] 
The nsset can change, so we have to be prepared for that

3 years agoProcess comment reviews
Otto Moerbeek [Tue, 15 Mar 2022 12:35:54 +0000 (13:35 +0100)] 
Process comment reviews

3 years agoMan page addition
Otto Moerbeek [Fri, 4 Mar 2022 14:12:47 +0000 (15:12 +0100)] 
Man page addition

3 years agoRemember parent NS set, to be able to fallback to it if needed
Otto [Tue, 19 Oct 2021 08:48:28 +0000 (10:48 +0200)] 
Remember parent NS set, to be able to fallback to it if needed

When a non-auth NS set is replaced by an auth one, remember the non-auth one if
it contains NS not in the auth set.

Use that NS set later as a fallback if resolving fails.

TODO: general validation of method, pruning the new table, tests, config switch?

Should fix #10594

3 years agodnsdist: Fix compilation by adding a missing <optional> include in misc.cc 11436/head
Remi Gacogne [Mon, 21 Mar 2022 08:52:19 +0000 (09:52 +0100)] 
dnsdist: Fix compilation by adding a missing <optional> include in misc.cc

Otherwise g++ 11.2.0 complains here:
```
misc.cc: In function ‘int makeIPv6sockaddr(const string&, sockaddr_in6*)’:
misc.cc:711:8: error: ‘optional’ is not a member of ‘std’
  711 |   std::optional<uint16_t> port = std::nullopt;
      |        ^~~~~~~~
misc.cc:61:1: note: ‘std::optional’ is defined in header ‘<optional>’; did you forget to ‘#include <optional>’?
```

3 years agoMerge pull request #11433 from omoerbeek/dnsdist-include-um
Otto Moerbeek [Fri, 18 Mar 2022 15:41:22 +0000 (16:41 +0100)] 
Merge pull request #11433 from omoerbeek/dnsdist-include-um

dnsdist: fix build on MacOS and OpenBSD: include <unordered_map>

3 years agoinclude <unordered_map> 11433/head
Otto Moerbeek [Fri, 18 Mar 2022 14:47:39 +0000 (15:47 +0100)] 
include <unordered_map>

3 years agoMerge pull request #11432 from fredmorcos/11429-fix-pem-import-export-on-old-ssl
Fred Morcos [Fri, 18 Mar 2022 14:33:01 +0000 (15:33 +0100)] 
Merge pull request #11432 from fredmorcos/11429-fix-pem-import-export-on-old-ssl

Enable named curves on ECDSA key generation and import from ISC

3 years agoMerge pull request #11430 from fredmorcos/get-msg-from-errno-macos-fix
Fred Morcos [Fri, 18 Mar 2022 14:05:59 +0000 (15:05 +0100)] 
Merge pull request #11430 from fredmorcos/get-msg-from-errno-macos-fix

Make getMessageFromErrno work on broken MacOS strerror_r

3 years agoEnable named curves on ECDSA key generation and import from ISC 11432/head
Fred Morcos [Fri, 18 Mar 2022 12:00:17 +0000 (13:00 +0100)] 
Enable named curves on ECDSA key generation and import from ISC

Fixes #11429

Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
3 years agostrerror_r on MacOS returns int despite _GNU_SOURCE being defined 11430/head
Fred Morcos [Fri, 18 Mar 2022 11:47:06 +0000 (12:47 +0100)] 
strerror_r on MacOS returns int despite _GNU_SOURCE being defined

3 years agoMerge pull request #11423 from Habbie/auth-rfc-typo
Peter van Dijk [Fri, 18 Mar 2022 07:34:05 +0000 (08:34 +0100)] 
Merge pull request #11423 from Habbie/auth-rfc-typo

auth docs: fix typo in RFC number