]> granicus.if.org Git - pdns/commitdiff
Keep ENT's auth=1
authorRuben d'Arco <cyclops@prof-x.net>
Thu, 16 May 2013 20:49:51 +0000 (22:49 +0200)
committermind04 <mind04@monshouwer.org>
Fri, 12 Jul 2013 15:26:19 +0000 (17:26 +0200)
pdns/rfc2136handler.cc
regression-tests/1dyndns-update-delegate-in-between/description
regression-tests/1dyndns-update-delete-parent-delegate/description

index 5fd1f28028be19ef637228f4f7e60ae2952c8e32..562348403f7b6b6f38a51c2d9b33619625f695aa 100644 (file)
@@ -379,7 +379,7 @@ uint16_t PacketHandler::performUpdate(const string &msgPrefix, const DNSRecord *
 
 
     if (recordsToDelete.size()) {
-      // If we remove an NS which is not at apex of the zone, we need to make everthing below it auth=true as those now are not delegated anymore.
+      // We're removing a delegate, so we need to reset ordername/auth for some records.
       if (rrType == QType::NS && rrLabel != di->zone) {
         vector<string> belowOldDelegate, nsRecs, updateAuthFlag;
         di->backend->listSubZone(rrLabel, di->id);
@@ -476,7 +476,7 @@ uint16_t PacketHandler::performUpdate(const string &msgPrefix, const DNSRecord *
         string hashed;
         if(! *narrow) 
           hashed=toLower(toBase32Hex(hashQNameWithSalt(ns3pr->d_iterations, ns3pr->d_salt, *i)));
-        di->backend->updateDNSSECOrderAndAuthAbsolute(di->id, *i, hashed, false);
+        di->backend->updateDNSSECOrderAndAuthAbsolute(di->id, *i, hashed, true);
       }
     }
   }
index 96df3a2e9d738ee02b0838760058193373818f6a..e7b732fc962cf51e0e308f3f0892b0ea2d826f31 100644 (file)
@@ -1,3 +1,2 @@
-For DNSSEC, PowerDNS uses the Auth and Ordername fields in the database. This tests adds an (delegate) NS and A record
-to the test.dyndns zone, it also deletes these records. The test is rather big because it should cover
-all the scenario's.  This thus validates the correction of these records, known as rectify-zone and cache.
+This tests adds a delegate between two records. The test validates that re have our ordernames correct when we insert a delegate between two others.
+It also validates that our cache is correctly purged (when we are selective about it).
\ No newline at end of file
index bfc22f81f03f9adb61b2f7290e60b85613154f51..6e3cfc6ddd60e38f7cebcac4d1e7a86fdeea7fd0 100644 (file)
@@ -1 +1 @@
-This test performs a simple add and delete of an A-record using RFC2136.
+This test adds 2 delegates below each other and deletes the top delegate.
\ No newline at end of file