]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
5 years agoMerge pull request #9716 from rgacogne/webserver-accept-yaml
Remi Gacogne [Fri, 13 Nov 2020 11:24:39 +0000 (12:24 +0100)] 
Merge pull request #9716 from rgacogne/webserver-accept-yaml

Fix initialization of WebServer::accept_yaml

5 years agoFix initialization of WebServer::accept_yaml 9716/head
Remi Gacogne [Fri, 13 Nov 2020 07:41:05 +0000 (08:41 +0100)] 
Fix initialization of WebServer::accept_yaml

5 years agoMerge pull request #9633 from omoerbeek/rec-opensbd-udpsockets dnsdist-1.6.0-alpha0
Otto Moerbeek [Thu, 12 Nov 2020 19:21:46 +0000 (20:21 +0100)] 
Merge pull request #9633 from omoerbeek/rec-opensbd-udpsockets

rec: two OpenBSD improvemenst wrt UDP sockets: port randomization and EGAIN errors

5 years agoMerge pull request #9643 from omoerbeek/rec-add-some-deps
Otto Moerbeek [Thu, 12 Nov 2020 19:20:53 +0000 (20:20 +0100)] 
Merge pull request #9643 from omoerbeek/rec-add-some-deps

rec: add a few missing dependencies to README

5 years agoMerge pull request #9707 from omoerbeek/rec-chain-already-processing
Otto Moerbeek [Thu, 12 Nov 2020 19:20:14 +0000 (20:20 +0100)] 
Merge pull request #9707 from omoerbeek/rec-chain-already-processing

rec: Do not add request to a wait chain that's already processed or being processed

5 years agoImproved wording of comments 9633/head
Otto Moerbeek [Thu, 12 Nov 2020 19:17:13 +0000 (20:17 +0100)] 
Improved wording of comments

Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
5 years agoRemove all documentation irrelevant after 4.4.0 9715/head
Pieter Lexis [Thu, 12 Nov 2020 16:46:43 +0000 (17:46 +0100)] 
Remove all documentation irrelevant after 4.4.0

This removes settings that no longer exist since 4.2.0, and removes any
statements of settings and docs that were added or changed in 4.2.0 and below.

5 years agoApply suggestions from code review 9713/head
Pieter Lexis [Thu, 12 Nov 2020 16:06:07 +0000 (17:06 +0100)] 
Apply suggestions from code review

Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
5 years agoauth mysql: disable automatic charset detection 9714/head
Peter van Dijk [Thu, 12 Nov 2020 13:55:22 +0000 (14:55 +0100)] 
auth mysql: disable automatic charset detection

5 years agoauth regress: allow per-backend test skipping
Peter van Dijk [Thu, 12 Nov 2020 13:43:46 +0000 (14:43 +0100)] 
auth regress: allow per-backend test skipping

5 years agoAllow ip ranges as trusted-notification-proxy
Pieter Lexis [Thu, 12 Nov 2020 13:32:02 +0000 (14:32 +0100)] 
Allow ip ranges as trusted-notification-proxy

This also stops us from doing string comparison for that setting.

Fixes #9711

5 years agoMerge pull request #8911 from kpfleming/add-api-docs-endpoint
Peter van Dijk [Thu, 12 Nov 2020 12:05:55 +0000 (13:05 +0100)] 
Merge pull request #8911 from kpfleming/add-api-docs-endpoint

Add '/api/docs' endpoint to Auth server

5 years agoMerge pull request #9688 from mind04/pdns-loglevel
Peter van Dijk [Wed, 11 Nov 2020 15:42:50 +0000 (16:42 +0100)] 
Merge pull request #9688 from mind04/pdns-loglevel

Pdns AXFR, IXFR loglevels

5 years agoauth: make notify logging less verbose 9688/head
Kees Monshouwer [Tue, 10 Nov 2020 22:38:56 +0000 (23:38 +0100)] 
auth: make notify logging less verbose

5 years agoauth: make primary logging less verbose
Kees Monshouwer [Mon, 9 Nov 2020 12:36:14 +0000 (13:36 +0100)] 
auth: make primary logging less verbose

5 years agoauth regression docs: more mysql variants 9708/head
Peter van Dijk [Wed, 11 Nov 2020 12:42:01 +0000 (13:42 +0100)] 
auth regression docs: more mysql variants

5 years agoDo not add request to a wait chain that's already processed or being processed. 9707/head
Otto Moerbeek [Wed, 11 Nov 2020 11:02:50 +0000 (12:02 +0100)] 
Do not add request to a wait chain that's already processed or being processed.

The following scenario can occur. Multiple concurrent clients doing the same query A
are needed to trigger it:

1. Incoming request A, which has a need for request X
2. Add request X to chain because we already have an identical outstanding request
3. We receive the reply for X
4. We process the chain
5. In the meantime a new request for X that's identical is added to the chain
6. The added id in step 5 is not being processed anymore -> timeout

This can happen if request X has TTL 0, otherwise the record cache would have a hit.

5 years agoMerge pull request #9700 from pieterlexis/docker-release-builds
Peter van Dijk [Wed, 11 Nov 2020 11:10:07 +0000 (12:10 +0100)] 
Merge pull request #9700 from pieterlexis/docker-release-builds

Allow setting a fake-ish version number when building release images

5 years agoAdd a few comments as suggested by Habbie
Otto Moerbeek [Wed, 11 Nov 2020 08:09:27 +0000 (09:09 +0100)] 
Add a few comments as suggested by Habbie

5 years agoMerge pull request #9697 from Habbie/rec-nod-oversize
Peter van Dijk [Tue, 10 Nov 2020 22:26:02 +0000 (23:26 +0100)] 
Merge pull request #9697 from Habbie/rec-nod-oversize

rec: do not send overly long NOD lookups

5 years agoauth: Add /api/docs endpoint to obtain OpenAPI document 8911/head
Kevin P. Fleming [Tue, 10 Nov 2020 12:29:39 +0000 (07:29 -0500)] 
auth: Add /api/docs endpoint to obtain OpenAPI document

This patch adds an /api/docs endpoint to the API webserver,
allowing clients to obtain the OpenAPI (Swagger) document that
describes the server's API directly from the server.

It also modifies the response body mechanism in the webserver
to no longer assume JSON output, but allow handlers to specify
JSON, YAML, or plain text. It also adds detection of YAML
support in the request so that handlers can choose which type
to send in their response. Since there is not yet a standard
MIME type for YAML, 'application/x-yaml' is used since it
appears to be the most commonly used type.

Signed-off-by: Kevin P. Fleming <kevin@km6g.us>
5 years agoMerge pull request #9698 from omoerbeek/namespace-rampage
Otto Moerbeek [Tue, 10 Nov 2020 16:09:44 +0000 (17:09 +0100)] 
Merge pull request #9698 from omoerbeek/namespace-rampage

namespaces.hh cleanup

5 years agoMerge pull request #9696 from rgacogne/rec-fakeaaa-cname-loop
Remi Gacogne [Tue, 10 Nov 2020 15:31:21 +0000 (16:31 +0100)] 
Merge pull request #9696 from rgacogne/rec-fakeaaa-cname-loop

rec: Avoid a CNAME loop detection issue with DNS64

5 years agoAllow setting a fake-ish version number when building release images 9700/head
Pieter Lexis [Tue, 10 Nov 2020 13:56:17 +0000 (14:56 +0100)] 
Allow setting a fake-ish version number when building release images

5 years agoMerge pull request #8608 from criteo-forks/custom_placeholder
Peter van Dijk [Tue, 10 Nov 2020 13:18:26 +0000 (14:18 +0100)] 
Merge pull request #8608 from criteo-forks/custom_placeholder

geoipbackend: accept custom lookup mapping

5 years agorec: do not send overly long NOD lookups 9697/head
Peter van Dijk [Tue, 10 Nov 2020 10:56:52 +0000 (11:56 +0100)] 
rec: do not send overly long NOD lookups

5 years agoUnscoped tie should come from boost for now 9698/head
Otto Moerbeek [Mon, 9 Nov 2020 13:46:46 +0000 (14:46 +0100)] 
Unscoped tie should come from boost for now

5 years agoKeep on using boost::tuple, switching to std::tuple introduces
Otto Moerbeek [Wed, 4 Nov 2020 13:09:19 +0000 (14:09 +0100)] 
Keep on using boost::tuple, switching to std::tuple introduces
a few issues.

5 years agoInclude less in namespaces.hh and use more std::;
Otto Moerbeek [Tue, 3 Nov 2020 13:55:25 +0000 (14:55 +0100)] 
Include less in namespaces.hh and use more std::;
boost stuff now needs explicit scoping.

5 years agoMerge pull request #9694 from pieterlexis/docker-improvements
Peter van Dijk [Tue, 10 Nov 2020 12:07:54 +0000 (13:07 +0100)] 
Merge pull request #9694 from pieterlexis/docker-improvements

Several docker image improvements

5 years agodnsdist: Fix the sorting of dnsdist's source files in Makefile.am
Remi Gacogne [Tue, 10 Nov 2020 10:43:21 +0000 (11:43 +0100)] 
dnsdist: Fix the sorting of dnsdist's source files in Makefile.am

5 years agorec: Add a regression test for the DNS64 CNAME loop detection issue 9696/head
Remi Gacogne [Tue, 10 Nov 2020 10:16:43 +0000 (11:16 +0100)] 
rec: Add a regression test for the DNS64 CNAME loop detection issue

5 years agorec: Avoid a CNAME loop detection issue with DNS64
Remi Gacogne [Tue, 10 Nov 2020 10:15:02 +0000 (11:15 +0100)] 
rec: Avoid a CNAME loop detection issue with DNS64

When the requested qname is a CNAME to a second CNAME, the CNAME
loop detection might get incorrectly triggered because the CNAMEs
were already present in the vector of result records.

5 years agoMerge pull request #9630 from omoerbeek/rec-protozero
Otto Moerbeek [Tue, 10 Nov 2020 09:44:52 +0000 (10:44 +0100)] 
Merge pull request #9630 from omoerbeek/rec-protozero

Rec: start using protozero to create protobuf messages

5 years agodnsdist: Better handling of reconnection failures
Remi Gacogne [Mon, 5 Oct 2020 12:39:08 +0000 (14:39 +0200)] 
dnsdist: Better handling of reconnection failures

5 years agomplexer: Add a method to inspect the monitored descriptors
Remi Gacogne [Mon, 5 Oct 2020 12:38:00 +0000 (14:38 +0200)] 
mplexer: Add a method to inspect the monitored descriptors

5 years agodnsdist: Fix tcpGaveUp and tcpDownstreamTimeout counters
Remi Gacogne [Fri, 2 Oct 2020 15:03:06 +0000 (17:03 +0200)] 
dnsdist: Fix tcpGaveUp and tcpDownstreamTimeout counters

5 years agodnsdist: Mark the TCP downstream connection as fresh after reconnecting
Remi Gacogne [Fri, 2 Oct 2020 13:44:38 +0000 (15:44 +0200)] 
dnsdist: Mark the TCP downstream connection as fresh after reconnecting

5 years agodnsdist: Account for outstanding TCP queries
Remi Gacogne [Fri, 2 Oct 2020 13:43:57 +0000 (15:43 +0200)] 
dnsdist: Account for outstanding TCP queries

5 years agodnsdist: Try to send before calling epoll_wait
Remi Gacogne [Thu, 17 Sep 2020 15:04:04 +0000 (17:04 +0200)] 
dnsdist: Try to send before calling epoll_wait

It usually works and saves adding the descriptor to the set, calling
epoll_wait() then removing the descriptor.

5 years agodnsdist: Add 'hasBufferedData' method to TCPIOHandler
Remi Gacogne [Wed, 16 Sep 2020 09:41:01 +0000 (11:41 +0200)] 
dnsdist: Add 'hasBufferedData' method to TCPIOHandler

5 years agodnsdist: Only copy what we need from the response buffer
Remi Gacogne [Tue, 15 Sep 2020 14:33:07 +0000 (16:33 +0200)] 
dnsdist: Only copy what we need from the response buffer

5 years agodnsdist: Use the more efficient epoll update mechanism
Remi Gacogne [Tue, 15 Sep 2020 13:38:53 +0000 (15:38 +0200)] 
dnsdist: Use the more efficient epoll update mechanism

5 years agoDirectly switch between read/write epoll states
Remi Gacogne [Tue, 15 Sep 2020 13:36:55 +0000 (15:36 +0200)] 
Directly switch between read/write epoll states

Altering an existing state instead of removing then adding it back
saves a call to `epoll_ctl()`.

5 years agodnsdist: Use a counter for pipelined TCP queries
Remi Gacogne [Mon, 14 Sep 2020 09:42:29 +0000 (11:42 +0200)] 
dnsdist: Use a counter for pipelined TCP queries

It turns out that collisions do happen with a random ID.

5 years agodnsdist: Decrement the number of pending queries on error
Remi Gacogne [Mon, 14 Sep 2020 09:41:01 +0000 (11:41 +0200)] 
dnsdist: Decrement the number of pending queries on error

5 years agodnsdist: Gracefully handle dnsdist closing the test backend connection
Remi Gacogne [Fri, 11 Sep 2020 15:03:57 +0000 (17:03 +0200)] 
dnsdist: Gracefully handle dnsdist closing the test backend connection

5 years agodnsdist: Better handling of read timeouts when we have responses
Remi Gacogne [Fri, 11 Sep 2020 15:03:16 +0000 (17:03 +0200)] 
dnsdist: Better handling of read timeouts when we have responses

5 years agodnsdist: Fix sending queued responses after reading a query
Remi Gacogne [Fri, 11 Sep 2020 13:00:25 +0000 (15:00 +0200)] 
dnsdist: Fix sending queued responses after reading a query

5 years agodnsdist: Add some tests for out of order processing
Remi Gacogne [Thu, 10 Sep 2020 10:20:57 +0000 (12:20 +0200)] 
dnsdist: Add some tests for out of order processing

5 years agodnsdist: Match backend connections on the backend, not its address
Remi Gacogne [Thu, 10 Sep 2020 15:05:04 +0000 (17:05 +0200)] 
dnsdist: Match backend connections on the backend, not its address

5 years agodnsdist: Fix the accounting of 'active' connections
Remi Gacogne [Wed, 9 Sep 2020 15:21:28 +0000 (17:21 +0200)] 
dnsdist: Fix the accounting of 'active' connections

5 years agodnsdist: Add 'maxInFlight' parameter to 'newServer()' and '*Local()'
Remi Gacogne [Wed, 9 Sep 2020 15:20:30 +0000 (17:20 +0200)] 
dnsdist: Add 'maxInFlight' parameter to 'newServer()' and '*Local()'

5 years agodnsdist: Try to reuse active connections
Remi Gacogne [Tue, 8 Sep 2020 11:12:27 +0000 (13:12 +0200)] 
dnsdist: Try to reuse active connections

5 years agodnsdist: TCP out-of-order implementation
Remi Gacogne [Fri, 5 Jun 2020 15:58:31 +0000 (17:58 +0200)] 
dnsdist: TCP out-of-order implementation

5 years agoMerge pull request #9689 from rgacogne/ddist-fix-ebpf-long-names
Remi Gacogne [Tue, 10 Nov 2020 08:35:59 +0000 (09:35 +0100)] 
Merge pull request #9689 from rgacogne/ddist-fix-ebpf-long-names

dnsdist: Fix eBPF filtering of long qnames

5 years agoMerge pull request #9676 from rgacogne/dnsdist-lua-web-hooks
Remi Gacogne [Tue, 10 Nov 2020 08:34:46 +0000 (09:34 +0100)] 
Merge pull request #9676 from rgacogne/dnsdist-lua-web-hooks

dnsdist: Implement Lua custom web endpoints

5 years agoMerge pull request #9677 from rgacogne/ddist-log-tcp-size
Remi Gacogne [Tue, 10 Nov 2020 08:33:32 +0000 (09:33 +0100)] 
Merge pull request #9677 from rgacogne/ddist-log-tcp-size

dnsdist: Add the query payload size to the verbose log over TCP

5 years agoMerge pull request #9678 from rgacogne/ddist-htmlfiles-dep
Remi Gacogne [Tue, 10 Nov 2020 08:28:45 +0000 (09:28 +0100)] 
Merge pull request #9678 from rgacogne/ddist-htmlfiles-dep

dnsdist: Add incfiles as a dependency to htmlfiles.h

5 years agoMerge pull request #9686 from omoerbeek/rec-x-our-latency-is-gauge
Otto Moerbeek [Tue, 10 Nov 2020 08:18:55 +0000 (09:18 +0100)] 
Merge pull request #9686 from omoerbeek/rec-x-our-latency-is-gauge

rec: x-our-latency is a gauge

5 years agoDo not access pbData members if pbData is boost::none, spotted by @rgacogne 9630/head
Otto Moerbeek [Mon, 9 Nov 2020 15:59:44 +0000 (16:59 +0100)] 
Do not access pbData members if pbData is boost::none, spotted by @rgacogne

5 years agoSort sources
Otto Moerbeek [Fri, 30 Oct 2020 13:05:09 +0000 (14:05 +0100)] 
Sort sources

5 years agoEmbedding the Message in an optional is not working properly,
Otto Moerbeek [Fri, 30 Oct 2020 10:20:36 +0000 (11:20 +0100)] 
Embedding the Message in an optional is not working properly,
somewhere move or copy semantics are violated.

To avoid heap allocatiom, move the a scheme where we always have a
Message. Later we can change the buffers to be thead-local as well.

5 years agoFix reserve botch, as noted by @rgacogne
Otto Moerbeek [Fri, 30 Oct 2020 09:10:43 +0000 (10:10 +0100)] 
Fix reserve botch, as noted by @rgacogne

5 years agoSuggestions by @rgacogne
Otto Moerbeek [Fri, 30 Oct 2020 08:33:00 +0000 (09:33 +0100)] 
Suggestions by @rgacogne

5 years agoUse move semantics for putting things in packetcache and
Otto Moerbeek [Fri, 23 Oct 2020 08:37:04 +0000 (10:37 +0200)] 
Use move semantics for putting things in packetcache and
tweak sizes to a better estimate, taking into account that the
final message will *include* the reponse part.

5 years agoSpelling
Otto Moerbeek [Wed, 21 Oct 2020 14:57:33 +0000 (16:57 +0200)] 
Spelling

5 years agoAdd a comment: should we add the udr flag if !udrEnabled?
Otto Moerbeek [Wed, 21 Oct 2020 10:17:30 +0000 (12:17 +0200)] 
Add a comment: should we add the udr flag if !udrEnabled?

5 years agoPrint appliedPolicyTrigger and appliedPolicyHit
Otto Moerbeek [Wed, 21 Oct 2020 10:16:00 +0000 (12:16 +0200)] 
Print appliedPolicyTrigger and appliedPolicyHit

5 years agoHandle NOD flag in rr data
Otto Moerbeek [Wed, 21 Oct 2020 07:36:30 +0000 (09:36 +0200)] 
Handle NOD flag in rr data

5 years agoAdapt the regression test to allow absense of deviceName etc.
Otto Moerbeek [Tue, 20 Oct 2020 12:11:31 +0000 (14:11 +0200)] 
Adapt the regression test to allow absense of deviceName etc.

Checked with Wojas that this should be allowed. No use including fields that
have as value the empty string.

5 years agoSave two pieces of protbuf string in the cache to allow
Otto Moerbeek [Tue, 20 Oct 2020 09:11:49 +0000 (11:11 +0200)] 
Save two pieces of protbuf string in the cache to allow
for mod of the response object.

TODO: NOD stuff, tagging, checking of the taggedOnly flag

5 years agoThings are starting to work, but I'll need to split the cached
Otto Moerbeek [Tue, 13 Oct 2020 15:21:20 +0000 (17:21 +0200)] 
Things are starting to work, but I'll need to split the cached
protobuf strings to allow for mod of the response.

5 years agoMerge pull request #9667 from Habbie/docker-readme
Peter van Dijk [Tue, 10 Nov 2020 08:16:50 +0000 (09:16 +0100)] 
Merge pull request #9667 from Habbie/docker-readme

docker: add README

5 years agoMerge pull request #9692 from zeha/pdnsutil-keys
Peter van Dijk [Tue, 10 Nov 2020 08:11:05 +0000 (09:11 +0100)] 
Merge pull request #9692 from zeha/pdnsutil-keys

pdnsutil zone key improvements

5 years agoMerge pull request #9693 from mind04/pdns-upgrade
Peter van Dijk [Tue, 10 Nov 2020 08:05:55 +0000 (09:05 +0100)] 
Merge pull request #9693 from mind04/pdns-upgrade

Auth: make it possible to replace now supported TYPExxx records

5 years agoVersion 1.70 of protozero
Otto Moerbeek [Tue, 13 Oct 2020 13:50:19 +0000 (15:50 +0200)] 
Version 1.70 of protozero

5 years agoMerge pull request #9400 from jsoref/bind-double-slash
Peter van Dijk [Mon, 9 Nov 2020 22:16:20 +0000 (23:16 +0100)] 
Merge pull request #9400 from jsoref/bind-double-slash

BIND: avoid double //

5 years agoMerge pull request #8970 from kpfleming/clarify-tsigkey-purpose
Peter van Dijk [Mon, 9 Nov 2020 22:10:44 +0000 (23:10 +0100)] 
Merge pull request #8970 from kpfleming/clarify-tsigkey-purpose

TSIG Keys are also used for DNSUPDATE, so update API docs

5 years agoMerge pull request #9695 from zeha/spgsql-comment-typo
Peter van Dijk [Mon, 9 Nov 2020 21:37:51 +0000 (22:37 +0100)] 
Merge pull request #9695 from zeha/spgsql-comment-typo

spgsql: fix a typo of mine in a comment

5 years agospgsql: fix a typo of mine in a comment 9695/head
Chris Hofstaedtler [Mon, 9 Nov 2020 21:36:29 +0000 (22:36 +0100)] 
spgsql: fix a typo of mine in a comment

5 years agotests: update column id in awk use 9692/head
Chris Hofstaedtler [Mon, 9 Nov 2020 20:54:01 +0000 (21:54 +0100)] 
tests: update column id in awk use

5 years agoDocker: ensure caching works 9694/head
Pieter Lexis [Mon, 9 Nov 2020 19:06:18 +0000 (20:06 +0100)] 
Docker: ensure caching works

5 years agoDocker: Add config templating
Pieter Lexis [Mon, 9 Nov 2020 17:59:45 +0000 (18:59 +0100)] 
Docker: Add config templating

5 years agoMerge pull request #9588 from Habbie/circleci-docker-auth
Peter van Dijk [Mon, 9 Nov 2020 19:07:17 +0000 (20:07 +0100)] 
Merge pull request #9588 from Habbie/circleci-docker-auth

circleci: authenticate to Docker Hub

5 years agoMerge pull request #9174 from cmouse/tinydns-dup
Peter van Dijk [Mon, 9 Nov 2020 18:52:00 +0000 (19:52 +0100)] 
Merge pull request #9174 from cmouse/tinydns-dup

tinydnsbackend: Ignore duplicate SOA in getAllDomains()

5 years agoMerge pull request #9685 from Habbie/auth-counters
Peter van Dijk [Mon, 9 Nov 2020 18:44:23 +0000 (19:44 +0100)] 
Merge pull request #9685 from Habbie/auth-counters

auth: add some missing counters. Fixes #9675

5 years agopdnsutil: add published to list-keys
Chris Hofstaedtler [Mon, 9 Nov 2020 18:43:36 +0000 (19:43 +0100)] 
pdnsutil: add published to list-keys

5 years agoMerge pull request #9691 from Habbie/auth-regress-old-docs
Peter van Dijk [Mon, 9 Nov 2020 18:35:56 +0000 (19:35 +0100)] 
Merge pull request #9691 from Habbie/auth-regress-old-docs

remove outdated regression docs, fixes #7925

5 years agopdnsutil: check for domain existence in (de)activate-tsig-key
Chris Hofstaedtler [Mon, 9 Nov 2020 18:31:58 +0000 (19:31 +0100)] 
pdnsutil: check for domain existence in (de)activate-tsig-key

5 years agopdnsutil: show active flag in list-keys
Chris Hofstaedtler [Mon, 9 Nov 2020 18:24:11 +0000 (19:24 +0100)] 
pdnsutil: show active flag in list-keys

5 years agopdnsutil validate key id when (de)activating
Chris Hofstaedtler [Mon, 9 Nov 2020 18:23:18 +0000 (19:23 +0100)] 
pdnsutil validate key id when (de)activating

5 years agoExtend Algorithm field size
Chris Hofstaedtler [Mon, 9 Nov 2020 18:08:18 +0000 (19:08 +0100)] 
Extend Algorithm field size

5 years agostartup.py: stop using tabs
Pieter Lexis [Mon, 9 Nov 2020 16:35:25 +0000 (17:35 +0100)] 
startup.py: stop using tabs

5 years agodnsdist-resolve: be less verbose by default
Pieter Lexis [Mon, 9 Nov 2020 16:34:04 +0000 (17:34 +0100)] 
dnsdist-resolve: be less verbose by default

5 years agoremove outdated regression docs, fixes #7925 9691/head
Peter van Dijk [Mon, 9 Nov 2020 16:12:02 +0000 (17:12 +0100)] 
remove outdated regression docs, fixes #7925

5 years agogeoipbackend: accept custom lookup mapping 8608/head
Jeremy Clerc [Thu, 21 Nov 2019 23:57:48 +0000 (00:57 +0100)] 
geoipbackend: accept custom lookup mapping

If for example you want a per country granularity, but still want to
group by custom regions: uk, fr, be -> eu-central, pt, es -> eu-south;
you need to to use %cc and create identical country records. It means
you zones file can become huge and powerdns does not like it too much.

For a user to have a custom mapping without the need to rewrite the
GeoIP database, with this commit, he/she can specify a custom mapping,
so if we get from the GeoIP database fr, we will look in the custom
mapping and find eu-central. So we only need to create the eu-central
record and it will be used by for uk, fr and be as per our first
example.

Definition of mapping_lookup_formats or custom_mapping at the domain
level has priority, but if not defined the global config will be used
as default.

The custom lookup formats and mapping are specified in the zones file:

  ---
  mapping_lookup_formats: ['%cc-%re', '%cc']
  custom_mapping:
    'fr': 'eu-central'
    'be': 'eu-central'
    'es': 'eu-south'
    'pt': 'eu-south'
    'us-ca': 'us-west'
    'us-tx': 'us-south'
  domains:
  - domain: example.com
    services:
      www.example.com: [ '%mp.www.example.com' ]
    records:
      eu-central.www.example.com:
        - A: 1.1.1.1
      eu-south.www.example.com:
        - A: 1.1.1.2
      us-west.www.example.com:
        - A: 1.1.1.3
      us-south.www.example.com:
        - A: 1.1.1.4
  - domain: example2.com
    mapping_lookup_formats: ['%cc']

5 years agocircleci: authenticate to Docker Hub 9588/head
Peter van Dijk [Mon, 5 Oct 2020 15:51:14 +0000 (17:51 +0200)] 
circleci: authenticate to Docker Hub

5 years agoauth: add some missing counters. Fixes #9675 9685/head
Peter van Dijk [Mon, 9 Nov 2020 11:33:57 +0000 (12:33 +0100)] 
auth: add some missing counters. Fixes #9675

5 years agoMerge pull request #9639 from omoerbeek/rec-negcachetest-clock-ticks
Otto Moerbeek [Mon, 9 Nov 2020 15:43:29 +0000 (16:43 +0100)] 
Merge pull request #9639 from omoerbeek/rec-negcachetest-clock-ticks

rec: the clock can tick while the negcache test is running.