[Pdns-users] Slaving Opennic zones using bind-backend
Oliver Kent
admin at peerx.co
Fri May 11 15:23:39 UTC 2012
Peter
Thanks for the quick reply. I added the patch so it appears like this:
/** 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;
if(toLower(*qname)==toLower(domain))
*qname="@";
else {
if((*qname)[qname->size()-domain.size()-1]!='.')
return false;
qname->resize(qname->size()-domain.size()-1);
}
return true;
}
Still no joy :(
Oli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20120511/a97e1a27/attachment-0001.html>
More information about the Pdns-users
mailing list