]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
2 years agoTest ANY bind UDP handling for the v4 case 12309/head
Otto Moerbeek [Fri, 9 Dec 2022 12:44:52 +0000 (13:44 +0100)] 
Test ANY bind UDP handling for the v4 case

v6 is more work, as the test client code assumes v4

Tested by neutering IsAnyAddress handling of auth and rec and verifying the tests fail.

Fixes #3965 (at least th v4 part).

2 years agoMerge pull request #12307 from omoerbeek/update-builder
Otto Moerbeek [Fri, 9 Dec 2022 11:03:59 +0000 (12:03 +0100)] 
Merge pull request #12307 from omoerbeek/update-builder

Update builder to work better on MacOS

2 years agoMerge pull request #12305 from Habbie/auth-docs-4.5.5-4.6.4-4.7.3
Peter van Dijk [Fri, 9 Dec 2022 10:09:57 +0000 (11:09 +0100)] 
Merge pull request #12305 from Habbie/auth-docs-4.5.5-4.6.4-4.7.3

auth 4.5..5 / 4.6.4 / 4.7.3: changelog & secpoll

2 years agoMerge pull request #12306 from rgacogne/ddist-docs-checkclass-typo
Remi Gacogne [Fri, 9 Dec 2022 09:19:17 +0000 (10:19 +0100)] 
Merge pull request #12306 from rgacogne/ddist-docs-checkclass-typo

dnsdist: Fix a typo in the Healthcheck configuration guide

2 years agoUpdate builder to work better on MacOS 12307/head
Otto Moerbeek [Fri, 9 Dec 2022 09:10:59 +0000 (10:10 +0100)] 
Update builder to work better on MacOS

2 years agodnsdist: Fix a typo in the Healthcheck configuration guide 12306/head
Remi Gacogne [Fri, 9 Dec 2022 08:47:27 +0000 (09:47 +0100)] 
dnsdist: Fix a typo in the Healthcheck configuration guide

As reported by Kai Stian Olstad (thanks!).

2 years agoMerge pull request #12297 from chbruyand/auth-ifurlup-byteslimit
Peter van Dijk [Fri, 9 Dec 2022 08:33:06 +0000 (09:33 +0100)] 
Merge pull request #12297 from chbruyand/auth-ifurlup-byteslimit

minicurl: fix missing CURLOPT_XFERINFOFUNCTION on old curl versions

2 years agoauth 4.5..5 / 4.6.4 / 4.7.3: changelog & secpoll 12305/head
Peter van Dijk [Fri, 9 Dec 2022 08:27:42 +0000 (09:27 +0100)] 
auth 4.5..5 / 4.6.4 / 4.7.3: changelog & secpoll

2 years agoMerge pull request #12302 from omoerbeek/dnsdist-docs-implicit
Otto Moerbeek [Thu, 8 Dec 2022 14:25:35 +0000 (15:25 +0100)] 
Merge pull request #12302 from omoerbeek/dnsdist-docs-implicit

dnsdist: Document what happens to a packet not handled by any action

2 years agodnsdist: Document what happens to a packet not handled by any action 12302/head
Otto Moerbeek [Thu, 8 Dec 2022 13:45:29 +0000 (14:45 +0100)] 
dnsdist: Document what happens to a packet not handled by any action

2 years agoMerge pull request #12301 from omoerbeek/rec-docs-preoutquery
Otto Moerbeek [Thu, 8 Dec 2022 12:59:41 +0000 (13:59 +0100)] 
Merge pull request #12301 from omoerbeek/rec-docs-preoutquery

rec: Document preoutquery limitations

2 years agorec: Document preoutquery limitations 12301/head
Otto Moerbeek [Thu, 8 Dec 2022 12:14:03 +0000 (13:14 +0100)] 
rec: Document preoutquery limitations

Fixes #10247

2 years agominicurl: fix missing CURLOPT_XFERINFOFUNCTION on old curl versions 12297/head
Charles-Henri Bruyand [Wed, 7 Dec 2022 14:26:15 +0000 (15:26 +0100)] 
minicurl: fix missing CURLOPT_XFERINFOFUNCTION on old curl versions

2 years agoMerge pull request #12203 from sspans/patch-3
Otto Moerbeek [Thu, 8 Dec 2022 09:42:38 +0000 (10:42 +0100)] 
Merge pull request #12203 from sspans/patch-3

rec: Allow both A and AAAA when importing /etc/hosts

2 years agoMerge pull request #12282 from Habbie/lmdb-notify
Peter van Dijk [Thu, 8 Dec 2022 09:12:20 +0000 (10:12 +0100)] 
Merge pull request #12282 from Habbie/lmdb-notify

auth lmdb: make outgoing notifications work

2 years agoMerge pull request #11554 from yog-singh/yog-singh/ddist-ebpf-memlock-limit
Otto Moerbeek [Thu, 8 Dec 2022 08:55:34 +0000 (09:55 +0100)] 
Merge pull request #11554 from yog-singh/yog-singh/ddist-ebpf-memlock-limit

dnsdist: Raise RLIMIT_MEMLOCK automatically when eBPF is requested

2 years agoTake searchsuffix into acount when generating targets of PTR records. 12203/head
Otto Moerbeek [Wed, 7 Dec 2022 09:51:04 +0000 (10:51 +0100)] 
Take searchsuffix into acount when generating targets of PTR records.

Fix tests for that and also add a testcode for boths v4 and v6 localhost

2 years agoAvoid too many lookups by using iterator
Otto Moerbeek [Wed, 30 Nov 2022 09:45:33 +0000 (10:45 +0100)] 
Avoid too many lookups by using iterator

2 years agoAllow multiple records with same name for etc/hosts processing
Sten Spans [Wed, 16 Nov 2022 21:46:21 +0000 (22:46 +0100)] 
Allow multiple records with same name for etc/hosts processing

This seems to do something right at least

2 years agoMerge pull request #12281 from rgacogne/ddist-optim-cross
Remi Gacogne [Thu, 8 Dec 2022 08:33:10 +0000 (09:33 +0100)] 
Merge pull request #12281 from rgacogne/ddist-optim-cross

dnsdist: Get rid of TCPCrossProtocolQuerySender

2 years agolmdb tests: actually use lmdb config 12282/head
Peter van Dijk [Tue, 6 Dec 2022 17:56:58 +0000 (18:56 +0100)] 
lmdb tests: actually use lmdb config

2 years agoauth lmdb: make outgoing notifications work
Peter van Dijk [Tue, 6 Dec 2022 16:42:27 +0000 (17:42 +0100)] 
auth lmdb: make outgoing notifications work

2 years agoMerge pull request #12298 from Habbie/tinydns-data-fix2
Peter van Dijk [Wed, 7 Dec 2022 18:34:31 +0000 (19:34 +0100)] 
Merge pull request #12298 from Habbie/tinydns-data-fix2

actually fix tinydns data

2 years agoMerge pull request #12274 from rgacogne/ddist-debug-snmp
Remi Gacogne [Wed, 7 Dec 2022 15:37:55 +0000 (16:37 +0100)] 
Merge pull request #12274 from rgacogne/ddist-debug-snmp

dnsdist: Add logs to investigate the SNMP regression tests failure

2 years agoactually fix tinydns data 12298/head
Peter van Dijk [Wed, 7 Dec 2022 15:00:02 +0000 (16:00 +0100)] 
actually fix tinydns data

2 years agoMerge pull request #12290 from omoerbeek/mincurl-coverity
Otto Moerbeek [Wed, 7 Dec 2022 14:31:52 +0000 (15:31 +0100)] 
Merge pull request #12290 from omoerbeek/mincurl-coverity

Coverity 1501408: Uninitialized scalar field

2 years agoMerge pull request #12289 from omoerbeek/rec-unsupported-qtype
Otto Moerbeek [Wed, 7 Dec 2022 13:33:56 +0000 (14:33 +0100)] 
Merge pull request #12289 from omoerbeek/rec-unsupported-qtype

rec: refactor unsuppored qtype code and make sure we ServFail on all unsupported qtypes

2 years agoMerge pull request #12285 from mind04/auth-api-consumer
Peter van Dijk [Wed, 7 Dec 2022 13:15:44 +0000 (14:15 +0100)] 
Merge pull request #12285 from mind04/auth-api-consumer

auth: api, do not create SOA and NS records for consumer zones

2 years agoOnly raise the limit to 1M if the current is lower than 1M 11554/head
Otto Moerbeek [Wed, 7 Dec 2022 13:09:56 +0000 (14:09 +0100)] 
Only raise the limit to 1M if the current is lower than 1M

2 years agoElaborate on NSEC/NSEC3 diffference in comment 12289/head
Otto Moerbeek [Wed, 7 Dec 2022 12:37:13 +0000 (13:37 +0100)] 
Elaborate on NSEC/NSEC3 diffference in comment

2 years agoApply suggestions from code review
Otto Moerbeek [Wed, 7 Dec 2022 12:30:19 +0000 (13:30 +0100)] 
Apply suggestions from code review

Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
2 years agoMerge pull request #12288 from rgacogne/fix-spelling
Remi Gacogne [Wed, 7 Dec 2022 12:15:54 +0000 (13:15 +0100)] 
Merge pull request #12288 from rgacogne/fix-spelling

Fix a typo and allow 'byteslimit'

2 years agoMerge pull request #11065 from pieterlexis/sd-protectproc
Remi Gacogne [Wed, 7 Dec 2022 12:14:32 +0000 (13:14 +0100)] 
Merge pull request #11065 from pieterlexis/sd-protectproc

service files: Add more sandboxing options

2 years agoMerge pull request #12185 from PenelopeFudd/master
Peter van Dijk [Wed, 7 Dec 2022 11:05:17 +0000 (12:05 +0100)] 
Merge pull request #12185 from PenelopeFudd/master

Enhancing dnsupdate documentation

2 years agoCoverity 1501408: Uninitialized scalar field 12290/head
Otto Moerbeek [Wed, 7 Dec 2022 10:54:01 +0000 (11:54 +0100)] 
Coverity 1501408: Uninitialized scalar field

2 years agoMerge pull request #12216 from kpfleming/catalog-zone-doc-clarifications
Peter van Dijk [Wed, 7 Dec 2022 10:21:56 +0000 (11:21 +0100)] 
Merge pull request #12216 from kpfleming/catalog-zone-doc-clarifications

Small clarifications to docs for API usage with catalog zones.

2 years agoIncorporate comments from @rgacogne
Otto Moerbeek [Wed, 7 Dec 2022 09:09:25 +0000 (10:09 +0100)] 
Incorporate comments from @rgacogne

2 years agorec: refactor unsuppored qtype code and make sure we ServFail on all unsupported...
Otto Moerbeek [Wed, 7 Dec 2022 09:54:49 +0000 (10:54 +0100)] 
rec: refactor unsuppored qtype code and make sure we ServFail on all unsupported qtypes

This fixes #12251

Also I'd like to know why we ServFail on NSEC3 but not on NSEC: we should either fix that or add a comment explaining this.

2 years agorec: Fix a typo in the doc 12288/head
Remi Gacogne [Wed, 7 Dec 2022 09:05:20 +0000 (10:05 +0100)] 
rec: Fix a typo in the doc

2 years agospell-check: Allow 'byteslimit' (name of a parameter to a Lua function)
Remi Gacogne [Wed, 7 Dec 2022 09:04:50 +0000 (10:04 +0100)] 
spell-check: Allow 'byteslimit' (name of a parameter to a Lua function)

2 years agoMerge pull request #12287 from Habbie/fix-tinydns-data
Peter van Dijk [Wed, 7 Dec 2022 09:03:23 +0000 (10:03 +0100)] 
Merge pull request #12287 from Habbie/fix-tinydns-data

auth: fix tinydns data, missed this spot in #12279

2 years agosystemd service: Only enable MemoryDenyWriteExecute for ixfrdist 11065/head
Remi Gacogne [Tue, 29 Nov 2022 15:10:57 +0000 (16:10 +0100)] 
systemd service: Only enable MemoryDenyWriteExecute for ixfrdist

Because it does not play well with LuaJIT, which all other products
use.

2 years agosystemd service: disallow access to devices (except, zero, full, null, random, urandom)
Pieter Lexis [Fri, 3 Dec 2021 12:08:09 +0000 (13:08 +0100)] 
systemd service: disallow access to devices (except, zero, full, null, random, urandom)

2 years agosystemd service: lock down IPC
Pieter Lexis [Fri, 3 Dec 2021 12:04:57 +0000 (13:04 +0100)] 
systemd service: lock down IPC

2 years agoservice files: Add MemoryDenyWriteExecute
Pieter Lexis [Fri, 3 Dec 2021 10:01:00 +0000 (11:01 +0100)] 
service files: Add MemoryDenyWriteExecute

This disallows the services to write executable memory.

2 years agoservice files: Add ProtectProc
Pieter Lexis [Fri, 3 Dec 2021 09:37:46 +0000 (10:37 +0100)] 
service files: Add ProtectProc

Another sandboxing option,
[ProtectProc](https://www.freedesktop.org/software/systemd/man/systemd.exec.html#ProtectProc=)
hides all /proc/<pid> that are not owned by the service user and hides
some kernel things from /proc as well.

2 years agodnsdist: Rename the field containing the TCP worker thread ID 12281/head
Remi Gacogne [Wed, 7 Dec 2022 08:56:37 +0000 (09:56 +0100)] 
dnsdist: Rename the field containing the TCP worker thread ID

2 years agoMerge pull request #12248 from kpfleming/issue-11153
Remi Gacogne [Wed, 7 Dec 2022 08:42:25 +0000 (09:42 +0100)] 
Merge pull request #12248 from kpfleming/issue-11153

systemd: Add "After" dependency on time-sync.target

2 years agoMerge pull request #12237 from rgacogne/ddist-unscrew-resumption-ossl3
Remi Gacogne [Wed, 7 Dec 2022 08:33:31 +0000 (09:33 +0100)] 
Merge pull request #12237 from rgacogne/ddist-unscrew-resumption-ossl3

dnsdist: Ignore unclean TLS session shutdown

2 years agoMerge pull request #12283 from rgacogne/ddist-fix-long-double-warning
Remi Gacogne [Wed, 7 Dec 2022 08:33:23 +0000 (09:33 +0100)] 
Merge pull request #12283 from rgacogne/ddist-fix-long-double-warning

dnsdist: Fix a warning about long to double conversion

2 years agoShort Description:
Yogesh Singh [Sun, 17 Apr 2022 11:47:00 +0000 (17:17 +0530)] 
Short Description:
Raise RLIMIT_MEMLOCK automatically when eBPF is requested.

This PR adds changes to eBPF filter constructor which when invoked automatically raises the RLIMIT_MEMLOCK from 64k to 1024k.
The hard limit for the user needs to be set in `/etc/security/limits.conf`.

2 years agoauth: fix tinydns data, missed this spot in #12279 12287/head
Peter van Dijk [Tue, 6 Dec 2022 18:02:31 +0000 (19:02 +0100)] 
auth: fix tinydns data, missed this spot in #12279

2 years agoauth: api, add create/delete consumer zone test 12285/head
Kees Monshouwer [Tue, 6 Dec 2022 17:34:09 +0000 (18:34 +0100)] 
auth: api, add create/delete consumer zone test

2 years agoauth: api, do not create SOA and NS records for consumer zones
Kees Monshouwer [Tue, 6 Dec 2022 17:29:16 +0000 (18:29 +0100)] 
auth: api, do not create SOA and NS records for consumer zones

2 years agodnsdist: Fix a warning about long to double conversion 12283/head
Remi Gacogne [Tue, 6 Dec 2022 16:43:12 +0000 (17:43 +0100)] 
dnsdist: Fix a warning about long to double conversion

```
dnsdist-backend.cc:601:61: warning: implicit conversion from 'long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Wimplicit-const-int-float-conversion]
      if (backOffCoeffTmp != HUGE_VAL && backOffCoeffTmp <= std::numeric_limits<time_t>::max()) {
                                                         ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

2 years agodnsdist: Get rid of TCPCrossProtocolQuerySender
Remi Gacogne [Fri, 2 Dec 2022 14:57:17 +0000 (15:57 +0100)] 
dnsdist: Get rid of TCPCrossProtocolQuerySender

We need this construct to deal with cross-protocol queries, like
queries received over TCP or DoT, but forwarded over DoH, because
the thread dealing with the client and the one dealing with the
backend will not be the same in that case, and we do not want to
have different threads touching the same TCP connections.
So we pass the query and response to the correct thread via pipes.
Until now we were allocating an additional object, TCPCrossProtocolQuerySender,
to deal with that case, but I noticed that the existing IncomingTCPConnectionState
object already does everything we need, except that it needs to
know that the response is a cross-protocol one in order to pass it
via the pipe instead of treating it in a different way. This can be
done by looking if the current thread ID differs from the one that
created this object: if it does, we are dealing with a cross-protocol
response and should pass it via the pipe, and if it does not we
can deal with it directly.
This change saves the need to allocate a new object wrapped in a
shared pointer for each cross-protocol query, which is quite nice.

2 years agoMerge pull request #12276 from rgacogne/ddist-less-wakeups
Remi Gacogne [Tue, 6 Dec 2022 15:51:00 +0000 (16:51 +0100)] 
Merge pull request #12276 from rgacogne/ddist-less-wakeups

dnsdist: Reduce useless wake-ups from the event loop

2 years agoMerge pull request #12278 from rgacogne/ddist-prevent-allocs
Remi Gacogne [Tue, 6 Dec 2022 15:50:41 +0000 (16:50 +0100)] 
Merge pull request #12278 from rgacogne/ddist-prevent-allocs

dnsdist: Small improvements

2 years agoMerge pull request #12279 from Habbie/auth-test-ordername
Peter van Dijk [Tue, 6 Dec 2022 15:16:20 +0000 (16:16 +0100)] 
Merge pull request #12279 from Habbie/auth-test-ordername

auth: add ordername testing

2 years agoadd ordername testing 12279/head
Peter van Dijk [Tue, 6 Dec 2022 14:40:51 +0000 (15:40 +0100)] 
add ordername testing

2 years agoMerge pull request #12275 from rgacogne/ddist-andor-modern
Remi Gacogne [Tue, 6 Dec 2022 14:25:15 +0000 (15:25 +0100)] 
Merge pull request #12275 from rgacogne/ddist-andor-modern

dnsdist: Refactor AndRule and OrRule to modern C++ loops

2 years agoMerge pull request #12218 from nneul/patch-1
Otto Moerbeek [Tue, 6 Dec 2022 12:11:31 +0000 (13:11 +0100)] 
Merge pull request #12218 from nneul/patch-1

rec: Document negation of netmasks in settings.rst

2 years agoMerge pull request #12277 from chbruyand/auth-ifurlup-byteslimit
Peter van Dijk [Tue, 6 Dec 2022 12:09:49 +0000 (13:09 +0100)] 
Merge pull request #12277 from chbruyand/auth-ifurlup-byteslimit

auth: add byteslimit support to lua ifurlup() function

2 years agodnsdist: Only allocate a ConnectionInfo object when actually needed 12278/head
Remi Gacogne [Thu, 10 Nov 2022 11:11:45 +0000 (12:11 +0100)] 
dnsdist: Only allocate a ConnectionInfo object when actually needed

2 years agoIntroduce a seperate parapraph explaining negation in netmask lists. 12218/head
Otto Moerbeek [Tue, 6 Dec 2022 11:23:08 +0000 (12:23 +0100)] 
Introduce a seperate parapraph explaining negation in netmask lists.

Also tell which settings allow negation.

2 years agoauth: add byteslimit support to lua ifurlup() function 12277/head
Charles-Henri Bruyand [Tue, 6 Dec 2022 11:20:26 +0000 (12:20 +0100)] 
auth: add byteslimit support to lua ifurlup() function

2 years agodnsdist: Prevent a copy when inserting a tag
Remi Gacogne [Fri, 18 Nov 2022 15:57:09 +0000 (16:57 +0100)] 
dnsdist: Prevent a copy when inserting a tag

2 years agoMerge pull request #12254 from rgacogne/restrict-github-token
Peter van Dijk [Tue, 6 Dec 2022 11:14:25 +0000 (12:14 +0100)] 
Merge pull request #12254 from rgacogne/restrict-github-token

Restrict permissions for GITHUB_TOKEN in our workflows

2 years agodnsdist: Keep the local copy of the downstream servers around
Remi Gacogne [Fri, 18 Nov 2022 15:56:47 +0000 (16:56 +0100)] 
dnsdist: Keep the local copy of the downstream servers around

2 years agodnsdist: Reduce useless wake-ups from the event loop 12276/head
Remi Gacogne [Fri, 18 Nov 2022 15:56:16 +0000 (16:56 +0100)] 
dnsdist: Reduce useless wake-ups from the event loop

The TCP acceptor, UDP client and Lua network threads never needs to break out of the event loop.
The outgoing DoH one only needs to do that once per second to check for timeouts.

2 years agodnsdist: Refactor AndRule and OrRule to modern C++ loops 12275/head
Remi Gacogne [Mon, 5 Dec 2022 15:22:03 +0000 (16:22 +0100)] 
dnsdist: Refactor AndRule and OrRule to modern C++ loops

2 years agodnsdist: Add logs to investigate the SNMP regression tests failure 12274/head
Remi Gacogne [Tue, 6 Dec 2022 10:35:30 +0000 (11:35 +0100)] 
dnsdist: Add logs to investigate the SNMP regression tests failure

2 years agoMerge pull request #12087 from zeha/apizonecreaterectify
Peter van Dijk [Tue, 6 Dec 2022 10:34:24 +0000 (11:34 +0100)] 
Merge pull request #12087 from zeha/apizonecreaterectify

API: Auth: fix newly created zone not rectified

2 years agoMerge pull request #12269 from frei-style/master
Peter van Dijk [Tue, 6 Dec 2022 10:22:06 +0000 (11:22 +0100)] 
Merge pull request #12269 from frei-style/master

auth: fix invalid catalog zone sql query for gpgsqlbackend

2 years agoauth: fix invalid catalog zone sql query for gpgsqlbackend 12269/head
Manuel Frei [Tue, 6 Dec 2022 00:34:37 +0000 (01:34 +0100)] 
auth: fix invalid catalog zone sql query for gpgsqlbackend

2 years agoMerge pull request #12265 from Habbie/alsonotifies
Peter van Dijk [Mon, 5 Dec 2022 14:02:16 +0000 (15:02 +0100)] 
Merge pull request #12265 from Habbie/alsonotifies

auth: move alsoNotifies up into DNSBackend

2 years agoauth: move alsoNotifies up into DNSBackend, fixes #12256 12265/head
Peter van Dijk [Mon, 5 Dec 2022 13:01:15 +0000 (14:01 +0100)] 
auth: move alsoNotifies up into DNSBackend, fixes #12256

2 years agoMerge pull request #12257 from Habbie/auth-api-backend-refused
Peter van Dijk [Mon, 5 Dec 2022 09:21:32 +0000 (10:21 +0100)] 
Merge pull request #12257 from Habbie/auth-api-backend-refused

auth API: slightly clearer message when a backend cannot create domains

2 years agoauth API: slightly clearer message when a backend cannot create domains 12257/head
Peter van Dijk [Thu, 1 Dec 2022 18:51:40 +0000 (19:51 +0100)] 
auth API: slightly clearer message when a backend cannot create domains

2 years agoMerge pull request #12255 from rgacogne/ddist-doc-counters-typo
Remi Gacogne [Thu, 1 Dec 2022 14:17:57 +0000 (15:17 +0100)] 
Merge pull request #12255 from rgacogne/ddist-doc-counters-typo

dnsdist: Fix a typo in the counters documentation

2 years agodnsdist: Fix a typo in the counters documentation 12255/head
Remi Gacogne [Thu, 1 Dec 2022 13:42:34 +0000 (14:42 +0100)] 
dnsdist: Fix a typo in the counters documentation

2 years agoRestrict permissions for GITHUB_TOKEN in our workflows 12254/head
Remi Gacogne [Thu, 1 Dec 2022 13:34:19 +0000 (14:34 +0100)] 
Restrict permissions for GITHUB_TOKEN in our workflows

Added using https://github.com/step-security/secure-workflows
For more information see:
- https://github.com/ossf/scorecard/blob/d8fefc9b246db3600c777e9d60d441d7c386ce1d/docs/checks.md#token-permissions
- https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/

2 years agoMerge pull request #11020 from MiniPierre/xdp-logging
Remi Gacogne [Thu, 1 Dec 2022 13:05:26 +0000 (14:05 +0100)] 
Merge pull request #11020 from MiniPierre/xdp-logging

dnsdist: Added XDP middleware for dropped/redirected queries logging

2 years agoMerge pull request #12252 from omoerbeek/auth-docs-recordtypes
Peter van Dijk [Thu, 1 Dec 2022 09:20:02 +0000 (10:20 +0100)] 
Merge pull request #12252 from omoerbeek/auth-docs-recordtypes

auth: Update supported recordtypes: remove A6 MAILA MAILB SIG and WKS, add ZONEMD

2 years agodnsdist: fixed XDP filter indentation 11020/head
Pierre Grié [Wed, 24 Nov 2021 13:15:50 +0000 (14:15 +0100)] 
dnsdist: fixed XDP filter indentation

2 years agodnsdist: Added XDP middleware for dropped/redirected queries logging
Pierre Grié [Mon, 22 Nov 2021 16:56:12 +0000 (17:56 +0100)] 
dnsdist: Added XDP middleware for dropped/redirected queries logging

2 years agoMerge pull request #11863 from darnuria/dnsname/usememchr_check_length
Otto Moerbeek [Wed, 30 Nov 2022 15:02:55 +0000 (16:02 +0100)] 
Merge pull request #11863 from darnuria/dnsname/usememchr_check_length

DNSName constructor use memchr instead of strchr and cleanup with string_view

2 years agoDrop ref from string_view arg 11863/head
Otto Moerbeek [Wed, 30 Nov 2022 14:12:28 +0000 (15:12 +0100)] 
Drop ref from string_view arg

2 years agoUse '\0' for (char) 0 and ref for string_view argument
Otto Moerbeek [Wed, 30 Nov 2022 13:26:18 +0000 (14:26 +0100)] 
Use '\0' for (char) 0 and ref for string_view argument

2 years agofixup: Optionnal removal of plen.
Axel Viala [Mon, 22 Aug 2022 11:46:54 +0000 (13:46 +0200)] 
fixup: Optionnal removal of plen.

2 years agoWIP: Clean-up DNSName constructor unify with string_view.
Axel Viala [Mon, 22 Aug 2022 10:17:16 +0000 (12:17 +0200)] 
WIP: Clean-up DNSName constructor unify with string_view.

2 years agofixup: Apply @omoerbeek suggestion
Axel Viala [Mon, 22 Aug 2022 10:24:43 +0000 (12:24 +0200)] 
fixup: Apply @omoerbeek suggestion

2 years agoDNSName constructor use memchr instead of strchr.
Axel Viala [Thu, 18 Aug 2022 10:31:04 +0000 (12:31 +0200)] 
DNSName constructor use memchr instead of strchr.

Also check length before dereferencing.
Rational for this change:

- Why using strchr if we have a length?
- Accepting char * p that doesn't contains `\0`.

2 years agoMerge pull request #11594 from ClaudioRifo/patch-1
Otto Moerbeek [Wed, 30 Nov 2022 10:32:16 +0000 (11:32 +0100)] 
Merge pull request #11594 from ClaudioRifo/patch-1

Update statistics.rst

2 years agoUpdate supported recordtypes: remove A6 MAILA MAILB SIG and WKS, add ZONEMD 12252/head
Otto Moerbeek [Wed, 30 Nov 2022 10:08:11 +0000 (11:08 +0100)] 
Update supported recordtypes: remove A6 MAILA MAILB SIG and WKS, add ZONEMD

Fixes #11468

2 years agobetter word 11594/head
Otto Moerbeek [Wed, 30 Nov 2022 09:52:34 +0000 (10:52 +0100)] 
better word

Co-authored-by: Remi Gacogne <github@coredump.fr>
2 years agoRefer to Linux docs and RFC instead of documenting these ourselves.
Otto Moerbeek [Wed, 30 Nov 2022 08:57:08 +0000 (09:57 +0100)] 
Refer to Linux docs and RFC instead of documenting these ourselves.

2 years agoUpdate statistics.rst
ClaudioRifo [Fri, 29 Apr 2022 22:18:17 +0000 (18:18 -0400)] 
Update statistics.rst

Notes that help understand some UDP counters.
Note that help understand that counters from /proc/net/ are global and O.S. related.

2 years agoMerge pull request #11951 from Habbie/Werror
Otto Moerbeek [Wed, 30 Nov 2022 08:37:51 +0000 (09:37 +0100)] 
Merge pull request #11951 from Habbie/Werror

make builds pass with -Werror on _my_ system

2 years agosystemd: Add "After" dependency on time-sync.target 12248/head
Kevin P. Fleming [Tue, 29 Nov 2022 11:14:10 +0000 (06:14 -0500)] 
systemd: Add "After" dependency on time-sync.target

Adds 'After=time-sync.target' to the service unit files; this will not
have any immediate effect, unless the system administrator has also
enabled a unit which has a 'Before' dependency on that target;
there are none of those units enabled in a default configuration in
common distributions. systemd itself adds such an 'After' dependency
to all timer units with OnCalendar settings, and to some other units.

However, in a system which makes use of systemd-timesyncd, the admin
can enable systemd-time-wait-sync.service, which has such a
dependency. The result would be that none of the PowerDNS services on
the system would be started until after systemd-timesyncd is certain
that the system's clock is synchronized with the configured external
source.

A similar configuration can be achieved on systems which use ntpd,
chronyd, or other time synchronization tools.

Closes #11153.