[Pdns-users] Slaving Opennic zones using bind-backend
Peter van Dijk
peter.van.dijk at netherlabs.nl
Fri May 11 13:25:14 UTC 2012
Hello Oliver,
On May 11, 2012, at 14:26 , Oliver Kent wrote:
> When I restarted PowerDNS, everything works as before, except none of the OpenNic zones are being slaved properly. Here is the log: https://pastee.org/e9s94. The problem seems to be "Unable to feed record during incoming AXFR of '': out-of-zone data 'ac' during AXFR of zone" but I have no idea what that means.
>
> If somebody could offer an explanation, I would be grateful.
The logic inside bindbackend that makes sure that incoming records are inside the domain being slaved does not correctly support the root zone.
Can you try this patch?
--- pdns/misc.cc (revision 2617)
+++ pdns/misc.cc (working copy)
@@ -104,6 +104,9 @@
/** strips a domain suffix from a domain, returns true if it stripped */
bool stripDomainSuffix(string *qname, const string &domain)
{
+ if(!domain.size())
+ return true;
+
if(!endsOn(*qname, domain))
return false;
Kind regards,
--
Peter van Dijk
Netherlabs Computer Consulting BV - http://www.netherlabs.nl/
More information about the Pdns-users
mailing list