From: Ruben d'Arco Date: Fri, 10 May 2013 06:15:03 +0000 (+0200) Subject: Set correct auth flag for adding APEX NS X-Git-Tag: rec-3.6.0-rc1~556^2~3^2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f48c79151885e0bc20c6919ddd6b29219c3c7c9d;p=thirdparty%2Fpdns.git Set correct auth flag for adding APEX NS We did not set auth correctly, because of that, we started seeing that as a delegate being added. --- diff --git a/pdns/rfc2136handler.cc b/pdns/rfc2136handler.cc index e3b9fd875e..02bf313916 100755 --- a/pdns/rfc2136handler.cc +++ b/pdns/rfc2136handler.cc @@ -218,7 +218,7 @@ uint16_t PacketHandler::performUpdate(const string &msgPrefix, const DNSRecord * delnonterm.insert(rrLabel); // always remove any ENT's in the place where we're going to add a record. DNSResourceRecord newRec(*rr); newRec.domain_id = di->id; - newRec.auth = (rrType.getCode() != QType::NS); + newRec.auth = (rrLabel == di->zone || rrType.getCode() != QType::NS); di->backend->feedRecord(newRec); changedRecords++;