]>
git.ipfire.org Git - thirdparty/pdns.git/log
Peter van Dijk [Mon, 5 Oct 2020 08:05:50 +0000 (10:05 +0200)]
Merge pull request #9583 from Habbie/dnsdist-make-fixes
dnsdist make: two fixes
Kees Monshouwer [Sun, 4 Oct 2020 19:18:34 +0000 (21:18 +0200)]
auth: remove always true conditions in zone2sql
Peter van Dijk [Sun, 4 Oct 2020 13:48:27 +0000 (15:48 +0200)]
Merge pull request #9581 from zeha/auth-readme
auth: update bionic packages in README
Peter van Dijk [Fri, 2 Oct 2020 19:26:50 +0000 (21:26 +0200)]
dnsdist make: two fixes
* make sure dnsdist-lua-ffi-interface.inc is built before dnsdist-lua-ffi.o
* cleaner output while building that .inc
by Pieter Lexis
Chris Hofstaedtler [Fri, 2 Oct 2020 11:07:26 +0000 (13:07 +0200)]
auth: update bionic packages in README
Especially for gpgsql, we do not need the full postgresql-server-dev package.
Chris Hofstaedtler [Fri, 2 Oct 2020 10:35:43 +0000 (12:35 +0200)]
Support serving APL records pointing to fe80:: on macOS
Remi Gacogne [Fri, 2 Oct 2020 09:49:11 +0000 (11:49 +0200)]
rec: Reply with NOTIMP instead of terminating the TCP connection
For qdcount == 0 and UPDATE/NOTIFY opcodes.
Chris Hofstaedtler [Fri, 2 Oct 2020 09:20:21 +0000 (11:20 +0200)]
Fix error checking on one getaddrinfo call
Otto Moerbeek [Fri, 2 Oct 2020 08:26:22 +0000 (10:26 +0200)]
Merge pull request #9569 from pieterlexis/rec-no-cfg-parse-on-version
recursor: Don't parse any config with `--version`
Otto Moerbeek [Fri, 2 Oct 2020 08:21:45 +0000 (10:21 +0200)]
Merge pull request #9562 from omoerbeek/rec-flush-typed-api
rec: Expose typed cache flush via Web API
Otto Moerbeek [Fri, 2 Oct 2020 08:21:21 +0000 (10:21 +0200)]
Be explicit we're talking about the recursor.
Remi Gacogne [Thu, 1 Oct 2020 16:20:21 +0000 (18:20 +0200)]
rec: Terminate TCP connections instead of 'ignoring' errors
We used to ignore questions that we consider invalid (unexpected
opcode, qdcount != 1, QR=1, parse error, ...) but also those
received from source addresses blocked by ipfilter, still waiting
for a new question to come up on the socket.
That might be fine for clients that will keep sending queries, even
though they will still end up wondering what happened to the ignored
queries, but some clients like dnsdist will wait until a response is
sent, or a time out occurs.
Closing the TCP connection instead allows dnsdist to keep going,
possibly retrying over a new connection but finally giving up,
instead of keeping the connection alive.
Pieter Lexis [Thu, 1 Oct 2020 14:03:34 +0000 (16:03 +0200)]
Add script to check sort order for SOURCES
Peter van Dijk [Thu, 1 Oct 2020 14:17:13 +0000 (16:17 +0200)]
Merge pull request #9563 from omoerbeek/rec-docs-endpoint-servers-config
rec: fix double "Configuration endpoint" in docs
Pieter Lexis [Thu, 1 Oct 2020 12:27:16 +0000 (14:27 +0200)]
Sort all _SOURCES = lines
Peter van Dijk [Thu, 1 Oct 2020 11:49:33 +0000 (13:49 +0200)]
Merge pull request #9558 from Habbie/auth-4.4.0-alpha1-docs
auth: changelog for 4.4.0-alpha1
Pieter Lexis [Thu, 1 Oct 2020 11:47:27 +0000 (13:47 +0200)]
recursor: Don't parse any config with `--version`
This ensures we don't log anything _apart_ from the version info.
Spotted in https://github.com/PowerDNS/pdns_recursor-ansible/issues/66
Peter van Dijk [Thu, 1 Oct 2020 11:42:57 +0000 (13:42 +0200)]
generate-repo-files: add auth-44
Peter van Dijk [Thu, 1 Oct 2020 11:09:00 +0000 (13:09 +0200)]
Merge pull request #9564 from Habbie/centos6-inttypes
el6: set __STDC_FORMAT_MACROS during package builds
Peter van Dijk [Wed, 30 Sep 2020 12:08:10 +0000 (14:08 +0200)]
document 4.3.1 sqlite index changes
Peter van Dijk [Mon, 28 Sep 2020 11:28:57 +0000 (13:28 +0200)]
4.4.0-alpha1 changelog, secpoll, notes
Kees Monshouwer [Thu, 1 Oct 2020 06:57:21 +0000 (08:57 +0200)]
auth: Speedup presigned signature lookups.
There was an unnecessary soa lookup which resulted in a large number of extra backend queries.
Remi Gacogne [Thu, 1 Oct 2020 07:16:16 +0000 (09:16 +0200)]
Merge pull request #9551 from rgacogne/ddist151-changelog-secpoll
dnsdist: ChangeLog and secpoll update for 1.5.1
Remi Gacogne [Thu, 1 Oct 2020 07:14:41 +0000 (09:14 +0200)]
dnsdist: 1.5.1 is a bit late, fixing the secpoll and ChangeLog :)
Remi Gacogne [Wed, 30 Sep 2020 12:15:06 +0000 (14:15 +0200)]
dnsdist: Add 9555 to 1.5.x's changelog
Remi Gacogne [Mon, 28 Sep 2020 14:18:09 +0000 (16:18 +0200)]
dnsdist: Prepare secpoll update for 1.5.1
Remi Gacogne [Mon, 28 Sep 2020 14:17:12 +0000 (16:17 +0200)]
dnsdist: Add the ChangeLog entries for 1.5.1
Otto Moerbeek [Wed, 30 Sep 2020 12:11:38 +0000 (14:11 +0200)]
Switch off IPv4 for this test to make sure there's only one IP per NS.
This avoids the non-deterministic behaviour.
Otto Moerbeek [Wed, 30 Sep 2020 12:07:14 +0000 (14:07 +0200)]
Merge pull request #9559 from omoerbeek/rec-test-glueless-referral-loop
rec: add unit test for potential NS loop.
Otto Moerbeek [Wed, 30 Sep 2020 09:50:40 +0000 (11:50 +0200)]
Count number of queries as suggested by @rgacogne. Do not assert on it yet,
we are seeing some non-deterministic behaviour.
Peter van Dijk [Wed, 30 Sep 2020 09:26:31 +0000 (11:26 +0200)]
el6: set __STDC_FORMAT_MACROS during package builds
Otto Moerbeek [Wed, 30 Sep 2020 08:55:50 +0000 (10:55 +0200)]
Merge pull request #9554 from pieterlexis/rec-rm-qla6
Recursor: Remove query-local-address6
Otto Moerbeek [Wed, 30 Sep 2020 08:33:51 +0000 (10:33 +0200)]
Due to include structure we have a double "Configuration endpoint" header
Otto Moerbeek [Wed, 30 Sep 2020 08:24:33 +0000 (10:24 +0200)]
Expose typed cache flush via Web API
Remi Gacogne [Tue, 29 Sep 2020 15:47:39 +0000 (17:47 +0200)]
Merge pull request #9553 from rgacogne/ddist-edns-negative-additional-soa
dnsdist: Only add EDNS on negative answers if the query had EDNS
Remi Gacogne [Tue, 29 Sep 2020 15:47:09 +0000 (17:47 +0200)]
Merge pull request #9556 from rgacogne/ddist-debug-trailing
dnsdist: Debug trailing data failures
Chris Hofstaedtler [Tue, 29 Sep 2020 12:42:17 +0000 (14:42 +0200)]
auth: remove local-ipv6, query-local-address6
Otto Moerbeek [Tue, 29 Sep 2020 13:25:19 +0000 (15:25 +0200)]
Merge pull request #9515 from omoerbeek/rec-wipe-cache-typed-followup
rec: Actually fix wipe-cache-typed
Pieter Lexis [Tue, 29 Sep 2020 13:02:35 +0000 (15:02 +0200)]
Recursor: Remove query-local-address6
Remi Gacogne [Tue, 29 Sep 2020 10:43:43 +0000 (12:43 +0200)]
dnsdist: Update regression tests for dnspython 2.0.0
Remi Gacogne [Tue, 29 Sep 2020 10:41:58 +0000 (12:41 +0200)]
dnsdist: Fix Cookie and ECS implementations for dnspython 2.0.0
Remi Gacogne [Tue, 29 Sep 2020 10:40:31 +0000 (12:40 +0200)]
dnsdist: Only add EDNS on negative answers if the query had EDNS
Peter van Dijk [Tue, 29 Sep 2020 11:33:36 +0000 (13:33 +0200)]
Merge pull request #9550 from zeha/apl-testcase
dnsrecords: fix APL test on macOS
Peter van Dijk [Tue, 29 Sep 2020 11:26:54 +0000 (13:26 +0200)]
Merge pull request #9549 from zeha/auth-stat-prefix
pdns_control: add show <prefix>
Remi Gacogne [Tue, 29 Sep 2020 09:30:26 +0000 (11:30 +0200)]
Merge pull request #9519 from rgacogne/check-sscanf-return-value
Always check sscanf's return value
Chris Hofstaedtler [Mon, 28 Sep 2020 13:56:04 +0000 (15:56 +0200)]
dnsrecords: fix APL test on macOS
macOS does not life fe80:: without an %interface specifier, so inet_pton
fails, and we end with an error like this:
check rec->getZoneRepresentation() == zoneval has failed [2:invalid Non-recoverable failure in name resolution/128 != 2:fe80:1234:5678:9910:8bc:3359:b2e8:720e/128]
Fix test by switching to a "normal" internet class prefix.
Chris Hofstaedtler [Mon, 28 Sep 2020 11:18:01 +0000 (13:18 +0200)]
pdns_control: add show <prefix>
Remi Gacogne [Mon, 28 Sep 2020 10:39:54 +0000 (12:39 +0200)]
Merge pull request #9544 from pieterlexis/svcb-coverity
svb-records: Initialize d_port
Pieter Lexis [Mon, 28 Sep 2020 08:00:18 +0000 (10:00 +0200)]
svb-records: Initialize d_port
Should fix 6 coverity warnings.
Remi Gacogne [Thu, 5 Mar 2020 09:04:50 +0000 (10:04 +0100)]
dnsdist: Debug trailing data failures
Kees Monshouwer [Mon, 14 Sep 2020 21:55:19 +0000 (23:55 +0200)]
FIXME400
Peter van Dijk [Fri, 25 Sep 2020 15:46:20 +0000 (17:46 +0200)]
Merge pull request #9531 from RobinGeuze/fixCoverityLMDBIssues
Fix a small coverity issue in lmdb backend and fix a compiler warning
Remi Gacogne [Fri, 25 Sep 2020 14:57:54 +0000 (16:57 +0200)]
dnsdist: Fix documentation issues reported by Josh Soref (thanks!)
Remi Gacogne [Fri, 25 Sep 2020 14:32:22 +0000 (16:32 +0200)]
dnsdist: Rename topRule() and friends
Peter van Dijk [Fri, 25 Sep 2020 14:16:12 +0000 (16:16 +0200)]
Merge pull request #9530 from Habbie/additional-processing-db-state
auth: avoid bad DB state in impossible situation; fix a typo
Robin Geuze [Fri, 25 Sep 2020 13:59:17 +0000 (15:59 +0200)]
Catch the none existent shard case and just skip that
Robin Geuze [Fri, 25 Sep 2020 13:32:07 +0000 (15:32 +0200)]
Fix a small coverity issue in lmdb backend and fix a compiler warning
Peter van Dijk [Fri, 25 Sep 2020 13:06:13 +0000 (15:06 +0200)]
avoid bad DB state in impossible situation; fix a typo
Otto Moerbeek [Fri, 25 Sep 2020 11:46:36 +0000 (13:46 +0200)]
Fix wrong parameter
Co-authored-by: Remi Gacogne <rgacogne+github@valombre.net>
Peter van Dijk [Fri, 25 Sep 2020 11:34:50 +0000 (13:34 +0200)]
Merge pull request #9369 from pieterlexis/draft-ietf-dnsop-svcb-https-01
SVCB and HTTPS support
Pieter Lexis [Thu, 24 Sep 2020 14:36:17 +0000 (16:36 +0200)]
Add API test for SVCB records
Pieter Lexis [Thu, 24 Sep 2020 14:08:05 +0000 (16:08 +0200)]
Switch SvcParam to std::move semantics
Pieter Lexis [Thu, 24 Sep 2020 13:21:23 +0000 (15:21 +0200)]
SVCB: return const-refs for heavy kvs
Pieter Lexis [Thu, 24 Sep 2020 09:57:06 +0000 (11:57 +0200)]
Add SVCB and HTTPS to LDAP schema
Pieter Lexis [Wed, 23 Sep 2020 14:56:49 +0000 (16:56 +0200)]
Add some regression tests for SVCB
Pieter Lexis [Wed, 23 Sep 2020 11:39:06 +0000 (13:39 +0200)]
Add SVCB/HTTPS checks to pdnsutil
Pieter Lexis [Tue, 22 Sep 2020 14:11:46 +0000 (16:11 +0200)]
Add additional processing for SVCB and HTTPS
Pieter Lexis [Thu, 30 Jul 2020 15:56:00 +0000 (17:56 +0200)]
Add SVCB records, parsing and writing
Pieter Lexis [Thu, 30 Jul 2020 13:52:17 +0000 (15:52 +0200)]
Add SvcParam class plus tests
Pieter Lexis [Thu, 30 Jul 2020 11:22:43 +0000 (13:22 +0200)]
iputils: Add function to print comma-separated CA containers
Peter van Dijk [Fri, 25 Sep 2020 10:17:31 +0000 (12:17 +0200)]
Merge pull request #9518 from mind04/pdns-api-metadata
auth: make sure the metadata cache is not filled from within an api transaction
Peter van Dijk [Fri, 25 Sep 2020 09:01:45 +0000 (11:01 +0200)]
Merge pull request #9524 from qvr/fix/rediscover-master-alsonotify-changes
auth: bindbackend: 'rediscover' changes to master and also-notifies
Matti Hiljanen [Fri, 25 Sep 2020 05:54:18 +0000 (08:54 +0300)]
auth: bindbackend: 'rediscover' changes to master and also-notifies
Kevin P. Fleming [Thu, 24 Sep 2020 11:48:56 +0000 (07:48 -0400)]
builder-support: Disable luajit usage on aarch64 Debian/Ubuntu builds
The luajit package is currently not compatible with the aarch64 architecture,
so when Debian or Ubuntu packages are built for that architecture, use lua5.3
instead.
Signed-off-by: Kevin P. Fleming <kevin@km6g.us>
Kevin P. Fleming [Thu, 24 Sep 2020 11:42:46 +0000 (07:42 -0400)]
builder-support: Improve consistency of Debian Stretch/Buster configurations
(Also applies to all post-Xenial Ubuntu builds since they use these configurations too)
* Use debhelper version 10.x on both distributions
* Use consistent logic for enabling systemd support
* Remove unnecessary --parallel flags (default mode in debhelper 10.x)
* Always use architecture.mk and pkg-info.mk to set DEB_* variables
* Enable warnings and hardening on Stretch builds
Signed-off-by: Kevin P. Fleming <kevin@km6g.us>
Kevin P. Fleming [Thu, 24 Sep 2020 11:27:08 +0000 (07:27 -0400)]
builder-support: Extend 'all' module support to docs/sdist/deb targets
The build.sh script can build 'all' modules in a single execution, but
not all of the Dockerfile templates supported this mode. Since this is useful
for manual testing of the build process, this patch adds 'all' support
to the 'docs' and 'sdist' templates, and the templates which produce
Debian-style packages.
Signed-off-by: Kevin P. Fleming <kevin@km6g.us>
Remi Gacogne [Thu, 24 Sep 2020 14:17:58 +0000 (16:17 +0200)]
Always check sscanf's return value
These remaining cases are not in any way a security issue since the
variables are initialized before the call. This mostly improves the
reporting, and make sure we fail earlier.
Chris Hofstaedtler [Mon, 14 Sep 2020 20:53:26 +0000 (22:53 +0200)]
auth: canDoAXFR: avoid confusing B name
Chris Hofstaedtler [Mon, 14 Sep 2020 20:50:07 +0000 (22:50 +0200)]
auth: dnsbackend: replace a bare NULL
Chris Hofstaedtler [Mon, 14 Sep 2020 20:36:55 +0000 (22:36 +0200)]
slaveRefresh: avoid extra SOA lookups
For incoming NOTIFYs, we already call getDomainInfo, so reuse the serial
from there. For unfresh domains, we already have a serial from the
backend.
However, a serial of 0 is now always considered stale.
Chris Hofstaedtler [Mon, 14 Sep 2020 20:01:14 +0000 (22:01 +0200)]
auth: fix typo in backend-writers-guide.rst
Chris Hofstaedtler [Mon, 14 Sep 2020 19:59:25 +0000 (21:59 +0200)]
auth: remove UeberBackend::getSOA
Chris Hofstaedtler [Mon, 14 Sep 2020 19:59:09 +0000 (21:59 +0200)]
slaveRefresh: remove B->getSOA
Peter van Dijk [Thu, 24 Sep 2020 12:00:34 +0000 (14:00 +0200)]
Merge pull request #9496 from mind04/pdns-dnskey
auth: ignore cryptokeys in presigned zones
Peter van Dijk [Thu, 24 Sep 2020 11:37:23 +0000 (13:37 +0200)]
Merge pull request #9039 from Habbie/pg-escape-connect-string
auth: quote/escape PG connection parameters
Peter van Dijk [Thu, 24 Sep 2020 11:37:05 +0000 (13:37 +0200)]
Merge pull request #9389 from RobinGeuze/lmdbNoDupSort
Removed the need for DUPSORT lmdb databases
Kees Monshouwer [Tue, 1 Sep 2020 14:17:54 +0000 (16:17 +0200)]
auth: replace full zone rectifies with rectifyZone() in the rfc2136 code
Kees Monshouwer [Mon, 31 Aug 2020 16:41:53 +0000 (18:41 +0200)]
auth: avoid metadata cache polution in the api code
Robin Geuze [Mon, 17 Aug 2020 15:00:50 +0000 (17:00 +0200)]
Removed the need for DUPSORT lmdb databases. Includes automatic database conversion
Peter van Dijk [Thu, 24 Sep 2020 08:51:02 +0000 (10:51 +0200)]
Merge pull request #8942 from Habbie/lua-backtrace
lua: add backtraces to errors
Peter van Dijk [Tue, 11 Aug 2020 13:24:37 +0000 (15:24 +0200)]
clarify quoting/escaping upgrade note, thanks @jsoref
Peter van Dijk [Fri, 17 Apr 2020 13:24:56 +0000 (15:24 +0200)]
quote/escape PG connection parameters
Peter van Dijk [Thu, 24 Sep 2020 08:27:11 +0000 (10:27 +0200)]
Merge pull request #9427 from mind04/pdns-2136-metadata
auth: improve metadata caching
Peter van Dijk [Thu, 24 Sep 2020 07:46:25 +0000 (09:46 +0200)]
Merge pull request #9517 from jsoref/spelling
Spelling
Remi Gacogne [Thu, 24 Sep 2020 07:28:04 +0000 (09:28 +0200)]
Merge pull request #9495 from rgacogne/rec-rearm-after-ooor-timeout
rec: Watch the descriptor again after an out-of-order read timeout
Remi Gacogne [Thu, 24 Sep 2020 07:26:56 +0000 (09:26 +0200)]
Merge pull request #9504 from rgacogne/rec-time-constness
rec: Better const-ness when dealing with timestamps
Remi Gacogne [Thu, 24 Sep 2020 07:26:46 +0000 (09:26 +0200)]
Merge pull request #9505 from rgacogne/rec-unused-sign-tags
rec: Remove unused vector of tags in validateDNSKeysAgainstDS()
Remi Gacogne [Thu, 24 Sep 2020 07:21:47 +0000 (09:21 +0200)]
Merge pull request #9513 from rgacogne/ddist-fix-parse-edns-options
dnsdist: Fix getEDNSOptions() for {AN,NS}COUNT != 0 and ARCOUNT = 0
Otto Moerbeek [Wed, 23 Sep 2020 14:06:32 +0000 (16:06 +0200)]
A few more g_negache un-threading cases.
Otto Moerbeek [Wed, 23 Sep 2020 13:55:29 +0000 (15:55 +0200)]
Since record cache and negcache are global now no need to broadcast to all
threads.