[Pdns-users] MongoDB Backend merged Re: Mongo DB and PowerDNS part 3: Now with DNSSEC

fredrik danerklint fredan-pdns at fredan.org
Sun May 29 13:34:01 UTC 2011


> So, please, be so kind as to answer one more question: When PDNS queries
> backends for updated serials, does it provide them with a list of the
> 'notified_serial's (as per your explanation in a previous post of
> yours), that is, a list of all serials which it has previously used in
> notifications

Yes. Everytime PowerDNS asks a backend it will get back a list of domains that 
has a different notified_serial than the serial for the domain.

It's the seventh linefrom bottom in the file private.cc that has the "logic" 
for including a domain to that list.

Until Bert has applied the patch that I sent him, you need to apply the 
following to get masterfunctionallity to work with MongoDB backend:

Index: private.cc
===================================================================
--- private.cc  (revision 2199)
+++ private.cc  (arbetskopia)
@@ -28,6 +28,7 @@
            
        di->id = mongo_r->getIntField("domain_id");
        di->last_check = mongo_r->getIntField("last_check");
+       di->notified_serial = mongo_r->getIntField("notified_serial");
 
        if (soadata == NULL) 
            for( bson::bo::iterator i(mongo_r->getObjectField("masters")); 
i.more(); ) {


-- 
//fredan



More information about the Pdns-users mailing list