]> granicus.if.org Git - pdns/commitdiff
Set correct auth flag for adding APEX NS
authorRuben d'Arco <cyclops@prof-x.net>
Fri, 10 May 2013 06:15:03 +0000 (08:15 +0200)
committermind04 <mind04@monshouwer.org>
Fri, 12 Jul 2013 15:26:19 +0000 (17:26 +0200)
We did not set auth correctly, because of that, we started seeing that as a delegate being added.

pdns/rfc2136handler.cc

index e3b9fd875e3ca597d927a9f06ff1b919b68254e5..02bf313916e619f22146145d87715e9a3fe38bf3 100755 (executable)
@@ -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++;