Am 14.09.2011 11:41, schrieb Klaus Darilion: > Hi Peter! > > I patched PowerDNS to add a "next_check" timestamp to domains tables. I > extended the DomainInfo class with "refresh" attribute, which will be > set by the backend when querying the SOA. > > It works fine, except on successful transfers with changes of the > refresh value (as I use the old refresh value, not the new one which was > received during the zone transfer). > > I think it would be most efficient if I parse the incoming SOA to get > the new "refresh" value. E.g. like: > > if(i->qtype.getCode() == QType::NS && !pdns_iequals(i->qname, domain)) > nsset.insert(i->qname); > if(i->qtype.getCode() != QType::RRSIG) > qnames.insert(i->qname); > + if(i->qtype.getCode() != QType::SOA) > + di.refresh = GETREFRESHFROMSOA(i->content); > > > Is there somewhere a function to parse the refresh value from the > received SOA?
Seems like fillSOAData() is the key :-) _______________________________________________ Pdns-users mailing list [email protected] http://mailman.powerdns.com/mailman/listinfo/pdns-users
