From: Remi Gacogne Date: Tue, 7 Jul 2020 12:36:23 +0000 (+0200) Subject: auth: Document that two backends might have the same name/types X-Git-Tag: rec-4.4.0-beta1~47^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F9159%2Fhead;p=thirdparty%2Fpdns.git auth: Document that two backends might have the same name/types As long as they are somehow kept in sync.. --- diff --git a/docs/appendices/backend-writers-guide.rst b/docs/appendices/backend-writers-guide.rst index d3a846fdca..002ef194dc 100644 --- a/docs/appendices/backend-writers-guide.rst +++ b/docs/appendices/backend-writers-guide.rst @@ -246,6 +246,10 @@ and such. This limitation comes from the fact that PowerDNS uses ``ANY`` queries to fetch all types from the backend in one go and that it assumes that once one backend has returned records the other ones do not need to be called. + It is also possible to have two backends providing records for the same name + and types, for example if the first one does not support DNSSEC and the second + does, but that requires some mechanism outside of PowerDNS to keep records in + sync between the two backends. The first part of the code contains the actual logic and should be pretty straightforward. The second part is a boilerplate 'factory' class