]>
git.ipfire.org Git - thirdparty/pdns.git/log
Remi Gacogne [Mon, 14 Oct 2019 08:21:20 +0000 (10:21 +0200)]
Work around CMSG_SPACE somehow not being a constexpr on macOS
Otto Moerbeek [Mon, 14 Oct 2019 07:06:35 +0000 (09:06 +0200)]
More modern C++ idiom
Remi Gacogne [Sat, 12 Oct 2019 13:25:17 +0000 (15:25 +0200)]
Merge pull request #8372 from rgacogne/ddist-vrf-itf
dnsdist: Use SO_BINDTODEVICE when available for newServer's source itf
Remi Gacogne [Sat, 12 Oct 2019 13:23:47 +0000 (15:23 +0200)]
Merge pull request #8409 from rgacogne/ddist-prometheus-descriptions-pool
dnsdist: Add missing prometheus descriptions for cache-related metrics
Remi Gacogne [Fri, 11 Oct 2019 15:16:37 +0000 (17:16 +0200)]
dnsdist: Add more options to LogAction (non-verbose mode, timestamps)
Remi Gacogne [Fri, 11 Oct 2019 14:38:51 +0000 (16:38 +0200)]
Merge pull request #8410 from franklouwers/doc/setQueryRate-fix
Fix typo in setQueryRate docs
Remi Gacogne [Fri, 11 Oct 2019 14:26:51 +0000 (16:26 +0200)]
dnsdist: Don't call SO_BINDTODEVICE with an empty interface name
Remi Gacogne [Fri, 11 Oct 2019 14:12:54 +0000 (16:12 +0200)]
dnsdist: Fix indentation in newServer()
Frank Louwers [Fri, 11 Oct 2019 14:10:08 +0000 (16:10 +0200)]
Clarify comment
Frank Louwers [Fri, 11 Oct 2019 14:00:31 +0000 (16:00 +0200)]
Fix typo in setQueryRate docs
Remi Gacogne [Fri, 11 Oct 2019 13:24:55 +0000 (15:24 +0200)]
dnsdist: Add missing prometheus descriptions for cache-related metrics
Remi Gacogne [Fri, 11 Oct 2019 13:16:16 +0000 (15:16 +0200)]
Merge pull request #8406 from rgacogne/ddist-tls-ticket-key-stats
dnsdist: Add metrics about unknown/inactive TLS ticket keys
Otto Moerbeek [Fri, 11 Oct 2019 12:54:33 +0000 (14:54 +0200)]
Merge pull request #8407 from omoerbeek/auth-lua-records-shadowing
auth: A few shadowing cases.
Otto Moerbeek [Fri, 11 Oct 2019 12:05:22 +0000 (14:05 +0200)]
A few shadowing cases.
Otto Moerbeek [Fri, 11 Oct 2019 09:22:39 +0000 (11:22 +0200)]
Proper in-flight maintenance; settable setting with doc.
Remi Gacogne [Thu, 10 Oct 2019 14:57:29 +0000 (16:57 +0200)]
dnsdist: Add metrics about unknown/inactive TLS ticket keys
Remi Gacogne [Fri, 4 Oct 2019 15:57:04 +0000 (17:57 +0200)]
dnsdist: Merge the setup of TLS contexts in Doh and DoT
Remi Gacogne [Thu, 10 Oct 2019 14:44:41 +0000 (16:44 +0200)]
Merge pull request #8398 from rgacogne/ddist-fix-session-resumption-tests
dnsdist: Check that tickets have really been written in the tests, really disable tickets when asked
Remi Gacogne [Thu, 10 Oct 2019 14:44:23 +0000 (16:44 +0200)]
Merge pull request #8387 from rgacogne/dnsdist-tls-versions
dnsdist: Add metrics about TLS versions with DNS over TLS
Remi Gacogne [Thu, 10 Oct 2019 14:34:45 +0000 (16:34 +0200)]
Merge pull request #8404 from rgacogne/ddist-typo-suffixmatchnode-doc
dnsdist: Add a missing line before SuffixMatchNode's 'versionadded'
Otto Moerbeek [Thu, 10 Oct 2019 14:08:09 +0000 (16:08 +0200)]
Merge pull request #8396 from omoerbeek/zoneparser-fixed-format
Do not use variable printf format strings
Remi Gacogne [Thu, 10 Oct 2019 12:56:14 +0000 (14:56 +0200)]
dnsdist: Add a missing line before SuffixMatchNode's 'versionadded'
Pieter Lexis [Thu, 10 Oct 2019 12:03:21 +0000 (14:03 +0200)]
Add CentOS 8 as builder target
Remi Gacogne [Thu, 10 Oct 2019 09:07:21 +0000 (11:07 +0200)]
Merge pull request #8395 from rgacogne/ddist-doh-concurrent-connections
dnsdist: Count the number of concurrent connections for DoH as well
Remi Gacogne [Thu, 10 Oct 2019 09:00:30 +0000 (11:00 +0200)]
dnsdist: Add TLS version metrics to the API as well
Remi Gacogne [Tue, 8 Oct 2019 14:14:32 +0000 (16:14 +0200)]
dnsdist: Check that tickets have been written when needed
But they might not have been, especially when a session has been
resumed and it was encrypted with a Session Ticket Encryption Key
still active.
Remi Gacogne [Tue, 8 Oct 2019 14:14:04 +0000 (16:14 +0200)]
dnsdist: Really disable TLS tickets for TLS 1.3 when asked
Remi Gacogne [Thu, 10 Oct 2019 08:04:00 +0000 (10:04 +0200)]
Merge pull request #8388 from rgacogne/dnsdist-doh-rotation-key-clear
dnsdist: Clear the DoH Session Ticket Encryption Key in the ctor
Otto Moerbeek [Wed, 9 Oct 2019 14:21:00 +0000 (16:21 +0200)]
Add unit test for zone file with template
Remi Gacogne [Wed, 9 Oct 2019 13:41:50 +0000 (15:41 +0200)]
dnsdist: Count the number of concurrent connections for DoH as well
Otto Moerbeek [Wed, 9 Oct 2019 12:39:29 +0000 (14:39 +0200)]
Using a variable format string opens up all kinds of cans of worms.
Otto Moerbeek [Wed, 9 Oct 2019 09:12:38 +0000 (11:12 +0200)]
On read error we remove the fd from the set. If there are still queries in-flight
we will add it back if the in-flight condition is true.
This is not a real problem as the next handleTCPClientReadable() will take care.
Add a comment to explain that.
Also, setting the TTD might throw so handle that.
We might need a forgiving variant of removeReadFD() and setReadTTD().
Otto Moerbeek [Wed, 9 Oct 2019 08:35:00 +0000 (10:35 +0200)]
- Fix multiplexer accounting in the write error case
- Use proper type for in-flight accounting
Peter van Dijk [Wed, 9 Oct 2019 07:29:17 +0000 (09:29 +0200)]
Merge pull request #7719 from Habbie/dnspython-assertequal
better assertEqual for dnspython
Otto Moerbeek [Wed, 18 Sep 2019 10:01:01 +0000 (12:01 +0200)]
Allow multiple simulaneous incoming TCP queries over a connection.
Answers are sent out the moment the become available, so not
necesarily in the same order as received. There's a limit on how
many queries per TCP induced connection we may have in flight.
Peter van Dijk [Thu, 3 Oct 2019 13:59:51 +0000 (15:59 +0200)]
recursor-dnssec: use eqdnsmessage
Peter van Dijk [Thu, 3 Oct 2019 13:35:43 +0000 (15:35 +0200)]
ixfrdist: eqdnsmessage
Peter van Dijk [Thu, 3 Oct 2019 13:26:23 +0000 (15:26 +0200)]
(uselessly) add eqdnsmessage to auth testing
Peter van Dijk [Thu, 3 Oct 2019 13:18:31 +0000 (15:18 +0200)]
move assert helper out of dnsdist tests
Peter van Dijk [Thu, 11 Apr 2019 15:40:20 +0000 (17:40 +0200)]
better assertEqual for dnspython
before:
AssertionError: <DNS message, ID 38993> != <DNS message, ID 38993>
after:
AssertionError: <DNS message, ID 46818> != <DNS message, ID 46818>:
--- first
+++ second
@@ -1,10 +1,10 @@
id 46818
-opcode 6
-rcode NOTAUTH
-flags AD CD
+opcode QUERY
+rcode NOERROR
+flags RD
;QUESTION
xpf.tests.powerdns.com. IN A
;ANSWER
;AUTHORITY
;ADDITIONAL
-. 0 IN TYPE65422 \# 14
04117f0000017f000001f8bc14dc
+xpf.tests.powerdns.com. 60 IN TYPE65422 \# 14
04117f0000017f00000100000000
Otto Moerbeek [Tue, 8 Oct 2019 08:23:49 +0000 (10:23 +0200)]
Merge pull request #8351 from Habbie/no-move-mutex
auth statbag: move to std::mutex, avoid copies
Remi Gacogne [Thu, 3 Oct 2019 09:52:08 +0000 (11:52 +0200)]
dnsdist: Fix ECS addition in presence of answer or authority records
Remi Gacogne [Fri, 19 Jul 2019 14:33:10 +0000 (16:33 +0200)]
dnsdist: Fix ECS addition when the OPT record is not the last one
Remi Gacogne [Mon, 7 Oct 2019 15:27:37 +0000 (17:27 +0200)]
Merge pull request #8382 from rgacogne/ddist-ciphers-order
dnsdist: Add a 'preferServerCiphers' option for DoH and DoT
Remi Gacogne [Mon, 7 Oct 2019 15:27:20 +0000 (17:27 +0200)]
Merge pull request #8381 from rgacogne/ddist-prometheus-thread-number
dnsdist: Add a prometheus 'thread' label to distinguish identical frontends
Remi Gacogne [Mon, 7 Oct 2019 15:26:55 +0000 (17:26 +0200)]
Merge pull request #8375 from rgacogne/ddist-python-dns-options-print
Implement python's to_text() for Cookies and Client Subnet options
Remi Gacogne [Mon, 7 Oct 2019 14:32:13 +0000 (16:32 +0200)]
dnsdist: Clear the DoH Session Ticket Encryption Key in the ctor
Remi Gacogne [Mon, 7 Oct 2019 14:00:59 +0000 (16:00 +0200)]
dnsdist: Add metrics about TLS versions with DNS over TLS
Otto Moerbeek [Mon, 7 Oct 2019 12:17:36 +0000 (14:17 +0200)]
And declare assignment operator deleted
Otto Moerbeek [Mon, 7 Oct 2019 11:44:59 +0000 (13:44 +0200)]
Merge pull request #8385 from omoerbeek/more-strict-flags
More strict flags
Otto Moerbeek [Mon, 7 Oct 2019 09:27:13 +0000 (11:27 +0200)]
While there is no shadowing going on for global functions, improve
consistency by calling a lua_state lua_state.
Otto Moerbeek [Mon, 7 Oct 2019 08:43:41 +0000 (10:43 +0200)]
Add copy-ct, gcc C++ lib <= 4.8 seems to need it.
Otto Moerbeek [Fri, 4 Oct 2019 15:13:19 +0000 (17:13 +0200)]
Some more shadowing going on
Otto Moerbeek [Fri, 4 Oct 2019 14:40:00 +0000 (16:40 +0200)]
Use -Wextra -Wshadow.
This cause plenty of signed-compare warnings from clang in the unit-tests. So
fix those plus a few cases of -Wshadow.
Remi Gacogne [Fri, 4 Oct 2019 10:28:56 +0000 (12:28 +0200)]
dnsdist: Add a 'preferServerCiphers' option for DoH and DoT
It used to be that the servers had a much better configuration than
the clients, but nowadays we better rely on the clients, as they
know whether they have hardware support for a specific algorithm
which might save battery life or improve latency by a large margin.
Remi Gacogne [Fri, 4 Oct 2019 09:13:42 +0000 (11:13 +0200)]
dnsdist: Add a prometheus 'thread' label to distinguish identical frontends
Remi Gacogne [Fri, 4 Oct 2019 09:02:08 +0000 (11:02 +0200)]
dnsdist: Switch the default DoT provider from GnuTLS to OpenSSL
The feedback from our users is that the OpenSSL provider is faster
and more stable. We also provide better Session Ticket Keys rotation
options with OpenSSL.
Remi Gacogne [Fri, 4 Oct 2019 08:44:33 +0000 (10:44 +0200)]
dnsdist: Also apply SO_BINDTODEVICE to TCP sockets
Remi Gacogne [Fri, 4 Oct 2019 08:23:56 +0000 (10:23 +0200)]
Merge pull request #8377 from rgacogne/ddist-more-warnings
dnsdist: Compile with -Wall -Wextra -Wshadow by default
Remi Gacogne [Fri, 4 Oct 2019 08:22:53 +0000 (10:22 +0200)]
Merge pull request #8378 from rgacogne/ddist-prometheus-senderrors-typo
dnsdist: Fix a typo in the prometheus description of 'senderrors'
Remi Gacogne [Thu, 3 Oct 2019 15:29:39 +0000 (17:29 +0200)]
dnsdist: Fix a typo in the prometheus description of 'senderrors'
Remi Gacogne [Thu, 3 Oct 2019 15:06:44 +0000 (17:06 +0200)]
dnsdist: Keep CAP_NET_RAW around when SO_BINDTODEVICE is in use
Remi Gacogne [Thu, 3 Oct 2019 13:41:46 +0000 (15:41 +0200)]
dnsdist: Compile with -Wall -Wextra -Wshadow by default
And -Werror=vla -Werror=shadow -Wformat=2 -Werror=format-security
in CircleCI.
Remi Gacogne [Thu, 3 Oct 2019 13:41:20 +0000 (15:41 +0200)]
Fix 'this statement may fall through' warnings
Remi Gacogne [Thu, 3 Oct 2019 13:41:07 +0000 (15:41 +0200)]
dnsdist: Fix shadowed variables
Remi Gacogne [Thu, 3 Oct 2019 13:40:12 +0000 (15:40 +0200)]
Fix implicitly-declared 'YaHTTP::CookieJar& YaHTTP::CookieJar::operator='
Remi Gacogne [Thu, 3 Oct 2019 13:10:05 +0000 (15:10 +0200)]
dnsdist: Set SO_BINDTODEVICE _before_ binding the health check socket
Remi Gacogne [Thu, 3 Oct 2019 12:53:02 +0000 (14:53 +0200)]
Merge pull request #8342 from chbruyand/pipebackend-unused-warning
pipebackend: remove unused variable
Remi Gacogne [Thu, 3 Oct 2019 12:27:42 +0000 (14:27 +0200)]
dnsdist: Apply SO_BINDTODEVICE to health check sockets too
Remi Gacogne [Thu, 3 Oct 2019 11:45:46 +0000 (13:45 +0200)]
dnsdist: Don't shadow the 'sourceItfName' variable in 'newServer()'
Remi Gacogne [Thu, 3 Oct 2019 09:53:48 +0000 (11:53 +0200)]
Implement python's to_text() for Cookies and Client Subnet options
Otto Moerbeek [Wed, 2 Oct 2019 13:46:46 +0000 (15:46 +0200)]
Merge pull request #8371 from omoerbeek/rec-fix-debian-pkg-build
Fix chmod paths in rules files
Remi Gacogne [Wed, 2 Oct 2019 13:37:35 +0000 (15:37 +0200)]
dnsdist: Use SO_BINDTODEVICE when available for newServer's source itf
Otto Moerbeek [Wed, 2 Oct 2019 13:27:49 +0000 (15:27 +0200)]
Correct chmod paths
Otto Moerbeek [Wed, 2 Oct 2019 13:18:51 +0000 (15:18 +0200)]
Fix chmod paths in rules files
Otto Moerbeek [Wed, 2 Oct 2019 12:23:41 +0000 (14:23 +0200)]
Merge pull request #8369 from omoerbeek/auth-pthread_t-isnotanint
Printing a pthread_t on platforms having a non-int pthread_id requires a cast to uintptr_t.
Remi Gacogne [Wed, 2 Oct 2019 12:16:45 +0000 (14:16 +0200)]
Merge pull request #8368 from rgacogne/ddist-prometheus-third
dnsdist: More prometheus fixes
Remi Gacogne [Wed, 2 Oct 2019 12:15:01 +0000 (14:15 +0200)]
Merge pull request #8365 from rgacogne/ddist-lowercase-custom-header-names
dnsdist: Lowercase custom DoH header names
Otto Moerbeek [Wed, 2 Oct 2019 11:38:33 +0000 (13:38 +0200)]
Merge pull request #8344 from franklouwers/rec-signalhandling
Add signal handling for SIGTERM and SIGINT in pdns_recursor, if we are PID1
Otto Moerbeek [Wed, 2 Oct 2019 11:01:57 +0000 (13:01 +0200)]
Merge pull request #8366 from omoerbeek/rec-enable-nod
rec: Build Newly Observerd Domain (NOD) support by default.
Otto Moerbeek [Wed, 2 Oct 2019 09:17:48 +0000 (11:17 +0200)]
Printing a pthread_t on platforms having a non-int pthread_id
requires a cast to uintptr_t.
Remi Gacogne [Wed, 2 Oct 2019 09:14:50 +0000 (11:14 +0200)]
dnsdist: Also lowercase custom DoH header names for early responses
Remi Gacogne [Wed, 2 Oct 2019 08:49:12 +0000 (10:49 +0200)]
dnsdist: Deduplicate DoH frontend names in prometheus
Remi Gacogne [Wed, 2 Oct 2019 08:47:47 +0000 (10:47 +0200)]
dnsdist: Add missing prometheus descriptions for dnsdist_pool_servers and dnsdist_pool_active_servers
Remi Gacogne [Wed, 2 Oct 2019 08:45:07 +0000 (10:45 +0200)]
dnsdist: Fix a typo in 'tcpdownstreamtimeouts' prometheus description
Remi Gacogne [Wed, 2 Oct 2019 08:44:44 +0000 (10:44 +0200)]
dnsdist: Fix handling of latency-sum and latency-count in prometheus
Remi Gacogne [Wed, 2 Oct 2019 08:38:53 +0000 (10:38 +0200)]
dnsdist: Add per-frontend and per-server response counters
Frank Louwers [Tue, 1 Oct 2019 15:44:38 +0000 (17:44 +0200)]
Typo. Thanks @phonedph1
Otto Moerbeek [Tue, 1 Oct 2019 12:42:17 +0000 (14:42 +0200)]
Auto, conditional on availability of boot-filesystem lib
Remi Gacogne [Tue, 1 Oct 2019 11:45:16 +0000 (13:45 +0200)]
Merge pull request #8364 from rgacogne/ddist-webserver-checkconfig
dnsdist: Check the address supplied to 'webserver' in check-config
Remi Gacogne [Tue, 1 Oct 2019 11:44:58 +0000 (13:44 +0200)]
Merge pull request #8363 from omoerbeek/lgtm-coverity-1
LGTM/coverity spotted issues: copy constructors and = operators
Otto Moerbeek [Tue, 1 Oct 2019 09:57:57 +0000 (11:57 +0200)]
Build Newly Observerd Domain (NOD) support by default.
Still disabled by default config.
Otto Moerbeek [Tue, 1 Oct 2019 09:35:03 +0000 (11:35 +0200)]
Merge pull request #8360 from omoerbeek/rec-systemd-config-perms
rec: chmod/own recursor.conf for the systemd case
Remi Gacogne [Tue, 1 Oct 2019 09:10:07 +0000 (11:10 +0200)]
dnsdist: Lowercase custom DoH header names
Remi Gacogne [Tue, 1 Oct 2019 08:36:02 +0000 (10:36 +0200)]
Merge pull request #8361 from rgacogne/ddist-doh-prometheus-bis
dnsdist: Refactor DoH prometheus metrics again
Remi Gacogne [Tue, 1 Oct 2019 08:35:04 +0000 (10:35 +0200)]
Merge pull request #8359 from rgacogne/dnsdist-setrules-creationorder
dnsdist: Fix the creation order of rules when inserted via SetRules()
Remi Gacogne [Tue, 1 Oct 2019 08:02:14 +0000 (10:02 +0200)]
dnsdist: Check the address supplied to 'webserver' in check-config
Otto Moerbeek [Mon, 30 Sep 2019 09:46:13 +0000 (11:46 +0200)]
Cleanup copy constructor/assignment op "rule-of-2" violations.
Otto Moerbeek [Mon, 30 Sep 2019 15:54:27 +0000 (17:54 +0200)]
chown/mods for systemd case for more smooth upgrade
Remi Gacogne [Mon, 30 Sep 2019 15:44:51 +0000 (17:44 +0200)]
dnsdist: Refactor DoH prometheus metrics again