]>
git.ipfire.org Git - thirdparty/pdns.git/log
Remi Gacogne [Wed, 13 Oct 2021 12:03:45 +0000 (14:03 +0200)]
dnsdist: Use per-thread credentials for GnuTLS client connections
It looks like there is a race in some versions when the credentials
are shared between several threads opening TLS client connections.
Remi Gacogne [Tue, 12 Oct 2021 12:56:37 +0000 (14:56 +0200)]
Merge pull request #10814 from chbruyand/dnsdist-setednsoptionaction
dnsdist: add lua support for SetEDNSOptionAction
Remi Gacogne [Tue, 12 Oct 2021 12:56:13 +0000 (14:56 +0200)]
Merge pull request #10833 from chbruyand/dnsdist-protocol-grepq
dnsdist: add incoming and outgoing protocols to grepq
Charles-Henri Bruyand [Mon, 11 Oct 2021 14:19:17 +0000 (16:19 +0200)]
Merge pull request #1 from rgacogne/dnsdist-protocol-grepq
dnsdist: Prevent implicit conversions between dnsdist::Protocol and uint8_t
Remi Gacogne [Mon, 11 Oct 2021 14:00:19 +0000 (16:00 +0200)]
dnsdist: Return a pretty protocol string for DNSResponse objects
Remi Gacogne [Mon, 11 Oct 2021 13:52:18 +0000 (15:52 +0200)]
dnsdist: Prevent implicit conversions between dnsdist::Protocol and uint8_t
This commit makes sure that we always use the dnsdist::Protocol type,
and that we cannot easily convert to or from a different type by mistake.
C++ really dropped the ball by making it impossible to declare methods
on the 'enum class' that solved the issue of making regular enums
implicitly convertible to int and back, thus making it possible to
assign and compare different types of enums together, as well as
enums and ints.
The result is that we are stuck with declaring classes to hold our
methods, along with a lot of plumbing to make sure that we can convert
in some cases but not allow obvious mistakes from happening.
Otto Moerbeek [Mon, 11 Oct 2021 11:30:08 +0000 (13:30 +0200)]
Merge pull request #10826 from omoerbeek/rec-prep-4.5.6
rec: Prep for rec-4.5.6
Otto Moerbeek [Mon, 11 Oct 2021 11:07:33 +0000 (13:07 +0200)]
Update 4.5.rst
Charles-Henri Bruyand [Mon, 11 Oct 2021 09:01:52 +0000 (11:01 +0200)]
fix fuzz_target_dnsdistcache build
Otto Moerbeek [Mon, 11 Oct 2021 08:45:33 +0000 (10:45 +0200)]
Merge pull request #10828 from omoerbeek/rec-proxy-protobuf-test
rec: Basic test for the `from' and `to' fields in protobuf when proxy protocol is used.
Charles-Henri Bruyand [Mon, 11 Oct 2021 08:12:15 +0000 (10:12 +0200)]
dnsdist: add incoming and outgoing protocols to grepq
Pieter Lexis [Sat, 9 Oct 2021 09:02:54 +0000 (11:02 +0200)]
Merge pull request #10831 from phonedph1/patch-29
Update dq.rst
phonedph1 [Sat, 9 Oct 2021 01:48:16 +0000 (19:48 -0600)]
Update dq.rst
Otto Moerbeek [Fri, 8 Oct 2021 12:36:26 +0000 (14:36 +0200)]
Basic test for the `from' and `to' fields in protobuf when proxy protocol is used.
Fixes #10114, as there are already tests for the other mentioned cases.
Peter van Dijk [Fri, 8 Oct 2021 11:11:42 +0000 (13:11 +0200)]
Merge pull request #10819 from Habbie/proxy-guide
auth, rec docs: some improvements
Otto Moerbeek [Fri, 8 Oct 2021 09:33:23 +0000 (11:33 +0200)]
Prep for rec-4.5.6
aerique [Fri, 8 Oct 2021 08:26:31 +0000 (10:26 +0200)]
Merge pull request #10818 from aerique/feature/add-auth-45-46-to-repo-script
Add auth-45 and auth-46 to repo test script.
Otto Moerbeek [Fri, 8 Oct 2021 08:17:46 +0000 (10:17 +0200)]
Merge pull request #10817 from omoerbeek/rec-prep-4.4.6
rec: Prep for rec-4.4.6
Otto Moerbeek [Fri, 8 Oct 2021 08:14:24 +0000 (10:14 +0200)]
Quating and spelling
Otto [Wed, 6 Oct 2021 11:36:22 +0000 (13:36 +0200)]
Prep for rec-4.4.6
Otto Moerbeek [Fri, 8 Oct 2021 05:33:30 +0000 (07:33 +0200)]
Merge pull request #10798 from gmelikov/examples
Recursor: update powerdns-example-script.lua
Peter van Dijk [Thu, 7 Oct 2021 10:03:45 +0000 (12:03 +0200)]
add pdnsutil note about attodot removal to upgrade guide
Peter van Dijk [Thu, 7 Oct 2021 09:37:11 +0000 (11:37 +0200)]
auth, rec docs: link to dnsdist PROXY guide
Erik Winkels [Thu, 7 Oct 2021 08:32:18 +0000 (10:32 +0200)]
Add auth-45 and auth-46 to repo test script.
Also remove auth-41, auth-42 and rec-42 from the script.
Peter van Dijk [Thu, 7 Oct 2021 08:24:06 +0000 (10:24 +0200)]
Merge pull request #10747 from Habbie/auth-4.6.0-alpha1-docs
auth 4.6.0 alpha1: changelog & secpoll
Peter van Dijk [Tue, 21 Sep 2021 14:04:35 +0000 (16:04 +0200)]
auth 4.6.0 alpha1: changelog & secpoll
Remi Gacogne [Thu, 7 Oct 2021 07:59:34 +0000 (09:59 +0200)]
Merge pull request #10791 from chbruyand/dnsdist-skip-options
dnsdist: allow skipping arbitrary EDNS options when computing packet hash
Remi Gacogne [Thu, 7 Oct 2021 07:55:40 +0000 (09:55 +0200)]
Merge pull request #10812 from chbruyand/dnsdist-advancedtests-cleanup
dnsdist tests: remove redundant tests
Charles-Henri Bruyand [Wed, 6 Oct 2021 15:19:02 +0000 (17:19 +0200)]
Make sure that any EDNS sent by the backend is removed before forwarding the response to the client
Charles-Henri Bruyand [Wed, 6 Oct 2021 12:30:35 +0000 (14:30 +0200)]
fuzz: update canHashPacket() calls accordingly
Peter van Dijk [Wed, 6 Oct 2021 11:06:17 +0000 (13:06 +0200)]
Merge pull request #10780 from Habbie/remove-attodot
auth: remove attodot feature; fixes #10254
Charles-Henri Bruyand [Wed, 6 Oct 2021 10:14:12 +0000 (12:14 +0200)]
remove DNSDistPacketCache::setCookieHashing and clarify documentation and code about skipped options
Peter van Dijk [Wed, 6 Oct 2021 10:00:27 +0000 (12:00 +0200)]
Merge pull request #10788 from mind04/pdns-getalldomains
auth: improve SOA parse exception handling
Charles-Henri Bruyand [Wed, 6 Oct 2021 09:28:12 +0000 (11:28 +0200)]
prevent unnecessary padding
Charles-Henri Bruyand [Wed, 6 Oct 2021 09:10:19 +0000 (11:10 +0200)]
dnsdist: add lua support for SetEDNSOptionAction to set arbitrary EDNS option and content to the query
Charles-Henri Bruyand [Wed, 6 Oct 2021 09:18:43 +0000 (11:18 +0200)]
dnsdist tests: remove redundant tests
Peter van Dijk [Fri, 1 Oct 2021 15:03:24 +0000 (17:03 +0200)]
pdnsutil check-zone: warn about @ in SOA RNAME
Co-authored-by: Kees Monshouwer <mind04@monshouwer.org>
Peter van Dijk [Thu, 23 Sep 2021 15:25:16 +0000 (17:25 +0200)]
auth: remove attodot feature; fixes #10254
Otto Moerbeek [Wed, 6 Oct 2021 05:42:00 +0000 (07:42 +0200)]
too short title line
Otto Moerbeek [Tue, 5 Oct 2021 19:20:58 +0000 (21:20 +0200)]
Merge pull request #10800 from omoerbeek/rec-fix-10799
rec: Fix compile error on Ubuntu 18
Otto [Tue, 5 Oct 2021 11:50:12 +0000 (13:50 +0200)]
Fixes 10799:
test-rec-zonetocache.cc: In member function 'void rec_zonetocache::test_zonetocache::test_method()':
test-rec-zonetocache.cc:77:27: sorry, unimplemented: non-trivial designated initializers not supported
.d_refreshPeriod = 0};
^
test-rec-zonetocache.cc:77:27: warning: missing initializer for member 'RecZoneToCache::Config::d_tt' [-Wmissing-field-initializers]
George Melikov [Tue, 5 Oct 2021 13:00:52 +0000 (16:00 +0300)]
powerdns-example-script.lua: clean up empty lines and spaces
George Melikov [Tue, 5 Oct 2021 10:06:48 +0000 (13:06 +0300)]
Recursor: update powerdns-example-script.lua
print() won't output properly, use pdnslog.
Otto Moerbeek [Tue, 5 Oct 2021 10:08:38 +0000 (12:08 +0200)]
Merge pull request #10794 from omoerbeek/rec-zonetocache-followup
rec: Followup on ZoneToCache and fix #10246: document local root config
Otto Moerbeek [Tue, 5 Oct 2021 08:47:42 +0000 (10:47 +0200)]
Apply suggestions from code review
Co-authored-by: Remi Gacogne <github@coredump.fr>
Kees Monshouwer [Fri, 1 Oct 2021 08:33:27 +0000 (10:33 +0200)]
auth: fix the SOA check in pdnsutil
Kees Monshouwer [Thu, 30 Sep 2021 20:46:28 +0000 (22:46 +0200)]
auth: ignore broken SOA content in getAllDomains(),
avoid unnecessary parsing of SOA content
Otto [Tue, 5 Oct 2021 07:42:19 +0000 (09:42 +0200)]
Followup on ZoneToCache and fix #10246: document local root config (rfc8806)
Otto Moerbeek [Mon, 4 Oct 2021 13:23:00 +0000 (15:23 +0200)]
Merge pull request #10505 from omoerbeek/rec-zonetocache
Add a periodic zones-to-cache function.
Otto [Mon, 4 Oct 2021 11:46:59 +0000 (13:46 +0200)]
Add two comments based on code review
Otto [Mon, 4 Oct 2021 11:36:50 +0000 (13:36 +0200)]
Small stuff from review comments
Otto [Mon, 4 Oct 2021 10:23:21 +0000 (12:23 +0200)]
Basic zone to cache unit test plus scaffolding to make structured
logging work (test backend logs to the regular logging)
Otto Moerbeek [Fri, 1 Oct 2021 13:40:47 +0000 (15:40 +0200)]
Don;t take refresh time from SOA, allow for single shot (refreshPeriod = 0) and
docs fixes.
Otto Moerbeek [Fri, 1 Oct 2021 12:18:23 +0000 (14:18 +0200)]
Docs
Otto Moerbeek [Fri, 1 Oct 2021 11:42:14 +0000 (13:42 +0200)]
Use structured logging, move loading to separate thread (a la RPZ)
Otto Moerbeek [Fri, 1 Oct 2021 11:31:57 +0000 (13:31 +0200)]
setting verbosity should not reset the logger name
Otto [Wed, 29 Sep 2021 14:36:42 +0000 (16:36 +0200)]
Current code doesn't care if dnssec is enabled or not; reorder struct Config
Otto [Wed, 29 Sep 2021 13:51:51 +0000 (15:51 +0200)]
Scaffolding for config via Lua
Otto [Wed, 12 May 2021 13:56:57 +0000 (15:56 +0200)]
Add a periodic zones-to-cache function.
No signatures are validated, that will happen on-demand if the
records are used.
Peter van Dijk [Mon, 4 Oct 2021 10:02:47 +0000 (12:02 +0200)]
Merge pull request #10562 from Habbie/auth-log-nsname
auth NOTIFY: log names of NSes we could not resolve
Peter van Dijk [Mon, 4 Oct 2021 08:22:04 +0000 (10:22 +0200)]
Merge pull request #10784 from Habbie/docs-remove-autoserial
auth docs: remove some leftover mentions of autoserial
Remi Gacogne [Mon, 4 Oct 2021 07:38:17 +0000 (09:38 +0200)]
Merge pull request #10787 from rgacogne/ddist-udp-cross-protocol-cache
dnsdist: Properly cache UDP queries passed to a TCP/DoT/DoH backend
Remi Gacogne [Mon, 4 Oct 2021 07:32:13 +0000 (09:32 +0200)]
Merge pull request #10789 from rgacogne/ddist-typo-healthchecks
dnsdist: Fix several typos in the health check code
Remi Gacogne [Mon, 4 Oct 2021 07:20:57 +0000 (09:20 +0200)]
Merge pull request #10783 from rgacogne/remove-BoundsCheckingPointer
Remove the unused BoundsCheckingPointer class
Peter van Dijk [Fri, 1 Oct 2021 15:52:39 +0000 (17:52 +0200)]
reduce back and forth type conversions; beter var naming
Charles-Henri Bruyand [Fri, 1 Oct 2021 15:46:39 +0000 (17:46 +0200)]
auth: update canHashPacket() calls accordingly
Charles-Henri Bruyand [Fri, 1 Oct 2021 15:06:13 +0000 (17:06 +0200)]
add a regression test
Charles-Henri Bruyand [Fri, 1 Oct 2021 13:35:31 +0000 (15:35 +0200)]
dnsdist: allow skipping arbitrary EDNS options when computing packets hash
Remi Gacogne [Fri, 1 Oct 2021 13:16:25 +0000 (15:16 +0200)]
dnsdist: Try to work around a TSAN false positive
tcpMaxConcurrentConnections is an indicative metric, we don't really
care if there is a small race here.
Remi Gacogne [Fri, 1 Oct 2021 11:25:59 +0000 (13:25 +0200)]
dnsdist: Fix several typos in the health check code
Remi Gacogne [Fri, 1 Oct 2021 08:44:17 +0000 (10:44 +0200)]
dnsdist: Properly cache UDP queries passed to a TCP/DoT/DoH backend
We use to tell the cache that the queries was received over TCP when
inserting the response into the packet cache, which is obviously not
true.
Peter van Dijk [Thu, 30 Sep 2021 15:58:56 +0000 (17:58 +0200)]
auth docs: remove some leftover mentions of autoserial
Remi Gacogne [Thu, 30 Sep 2021 15:35:14 +0000 (17:35 +0200)]
Remove the unused BoundsCheckingPointer class
Peter van Dijk [Mon, 5 Jul 2021 09:25:40 +0000 (11:25 +0200)]
auth NOTIFY: log names of NSes we could not resolve
Remi Gacogne [Thu, 30 Sep 2021 07:37:01 +0000 (09:37 +0200)]
Merge pull request #10772 from rgacogne/ddist-outgoing-doh-threads
dnsdist: Better handling of outgoing DoH workers
Peter van Dijk [Thu, 30 Sep 2021 06:56:10 +0000 (08:56 +0200)]
Merge pull request #10777 from aerique/feature/add-rec-46-to-repo-script
Add dnsdist-17 and rec-46 to repo test script.
Peter van Dijk [Thu, 30 Sep 2021 06:44:22 +0000 (08:44 +0200)]
Merge pull request #10779 from jsoref/decrypt
auth: fix copy+paste for decrypt
Josh Soref [Wed, 29 Sep 2021 18:19:10 +0000 (14:19 -0400)]
auth: fix copy+paste for decrypt
Erik Winkels [Wed, 29 Sep 2021 13:01:02 +0000 (15:01 +0200)]
Add rec-46 to repo test script.
Otto Moerbeek [Wed, 29 Sep 2021 08:48:57 +0000 (10:48 +0200)]
Merge pull request #10764 from omoerbeek/rec-prep-4.6.0-alpha1
rec: Upgrade guide and changelog for rec-4.6.0-alpha1
Otto Moerbeek [Wed, 29 Sep 2021 08:36:40 +0000 (10:36 +0200)]
Merge pull request #10774 from omoerbeek/dnsdist-centos7-undef-cert
undef CERT from libssl, as it conflicts with the one from qtype.hh
Otto [Wed, 29 Sep 2021 07:01:03 +0000 (09:01 +0200)]
undef cert from libssl, as it conflicts with the one from qtype.hh
Peter van Dijk [Tue, 28 Sep 2021 17:09:46 +0000 (19:09 +0200)]
Merge pull request #10748 from mind04/pdns-bind-reload
auth: try to reload rejected zones in bind-backend
Otto Moerbeek [Tue, 28 Sep 2021 15:23:15 +0000 (17:23 +0200)]
Merge pull request #10773 from omoerbeek/dnsdist-regress-log
dnsdist: Print summary after a failed dnsdist regress run and disable secpoll
Peter van Dijk [Tue, 28 Sep 2021 15:13:33 +0000 (17:13 +0200)]
Merge pull request #10231 from pieterlexis/DNAME-YXDOMAIN
auth: send YXDOMAIN for too long DNAME synth
Remi Gacogne [Tue, 28 Sep 2021 14:18:50 +0000 (16:18 +0200)]
Merge pull request #10770 from rgacogne/auth-udp-handle-uncaught-exceptions
auth: Gracefully handle uncaught exceptions in the UDP path
Otto [Tue, 28 Sep 2021 13:33:31 +0000 (15:33 +0200)]
Print summary after a failed dnsdist regress run and disable secpoll
Remi Gacogne [Tue, 28 Sep 2021 13:43:41 +0000 (15:43 +0200)]
Merge pull request #10768 from rgacogne/rec-rpz-stats-name
rec: Use the correct RPZ policy name when loading via XFR
Remi Gacogne [Tue, 28 Sep 2021 13:38:42 +0000 (15:38 +0200)]
dnsdist: Better handling of outgoing DoH workers
This commit raises the number of DoH workers to be at least 1, always, unless
told otherwise via setOutgoingDoHWorkerThreads(0).
In that last case it raises an exception if the console is used to declare
a new DoH backend later on.
Remi Gacogne [Fri, 16 Jul 2021 12:16:15 +0000 (14:16 +0200)]
auth: Gracefully handle uncaught exceptions in the UDP path
These exceptions should never bubble up to this point, but if it
does it makes no sense to terminate the whole process because of it.
This commit logs a message at error level and moves on to the next
query, like we do in the TCP path.
Otto [Tue, 28 Sep 2021 10:25:18 +0000 (12:25 +0200)]
missed 10157
Otto Moerbeek [Tue, 28 Sep 2021 10:18:43 +0000 (12:18 +0200)]
Merge pull request #10760 from omoerbeek/libssl-file-mode
Don't create file with wide permissions
Remi Gacogne [Tue, 28 Sep 2021 10:15:04 +0000 (12:15 +0200)]
Merge pull request #10767 from chbruyand/dnsdist-settag
dnsdist: Update existing tags when calling setTagAction and setTagResponseAction
Remi Gacogne [Tue, 28 Sep 2021 09:12:23 +0000 (11:12 +0200)]
rec: Use the correct RPZ policy name when loading via XFR
This commit fixes two issues:
- if the existing zone name is not empty we should use it, instead of
the zone domain
- if the zone domain has to be used, it should not include a final dot
Otto Moerbeek [Tue, 28 Sep 2021 08:25:09 +0000 (10:25 +0200)]
Merge pull request #10765 from omoerbeek/rec-lwres-without-dnstap
rec: Fix compile for !HAVE_FSTRM
Otto Moerbeek [Tue, 28 Sep 2021 08:24:06 +0000 (10:24 +0200)]
add O_APPEND
Co-authored-by: Remi Gacogne <github@coredump.fr>
Otto Moerbeek [Tue, 28 Sep 2021 08:22:58 +0000 (10:22 +0200)]
Merge pull request #10766 from omoerbeek/dnsdist-clarify-addMasks
dnsdist: Improve NetmaskGroup:addMasks docs
Otto [Tue, 28 Sep 2021 08:21:07 +0000 (10:21 +0200)]
Less strong words on deprecated setting names.
Otto Moerbeek [Tue, 28 Sep 2021 06:32:49 +0000 (08:32 +0200)]
Merge pull request #10757 from rgacogne/rec-rpz-file-stats
rec: Update the stats (serial, number of records, timestamp) for RPZ files
Charles-Henri Bruyand [Mon, 27 Sep 2021 16:32:43 +0000 (18:32 +0200)]
dnsdist: make sure setting tags will overwrite any existing value