[Pdns-users] IXFR with EDIT-SOA, ALLOW-AXFR-FROM in bind-hybrid mode

Christof Meerwald cmeerw at cmeerw.org
Thu Oct 16 20:31:55 UTC 2014


On Thu, Oct 16, 2014 at 10:42:34AM +0200, Christof Meerwald wrote:
> Another thing I noticed is that in bind-hybrid mode the
> ALLOW-AXFR-FROM for a zone handled by the bind backend doesn't appear
> to be read from the database (because I think it only tries to get
> that information from the bind backend, but doesn't fall back to the
> database backend).

Applying the following change seems to fix that:

Index: pdns/tcpreceiver.cc
===================================================================
--- pdns/tcpreceiver.cc	(revision 6176)
+++ pdns/tcpreceiver.cc	(working copy)
@@ -428,7 +428,7 @@
     // cerr<<"got backend and SOA"<<endl;
     DNSBackend *B=sd.db;
     vector<string> acl;
-    B->getDomainMetadata(q->qdomain, "ALLOW-AXFR-FROM", acl);
+    s_P->getBackend()->getDomainMetadata(q->qdomain, "ALLOW-AXFR-FROM", acl);
     for (vector<string>::const_iterator i = acl.begin(); i != acl.end(); ++i) {
       // cerr<<"matching against "<<*i<<endl;
       if(pdns_iequals(*i, "AUTO-NS")) {


Christof

-- 

http://cmeerw.org                              sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org                   xmpp:cmeerw at cmeerw.org




More information about the Pdns-users mailing list