File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -616,6 +616,28 @@ int increaseSerial(const string& zone, DNSSECKeeper &dk)
616
616
cerr<<" Backend did not replace SOA record. Backend might not support this operation." <<endl;
617
617
return -1 ;
618
618
}
619
+
620
+ if (sd.db ->doesDNSSEC ()) {
621
+ NSEC3PARAMRecordContent ns3pr;
622
+ bool narrow;
623
+ bool haveNSEC3=dk.getNSEC3PARAM (zone, &ns3pr, &narrow);
624
+
625
+ if (haveNSEC3)
626
+ {
627
+ if (!narrow) {
628
+ string hashed=toBase32Hex (hashQNameWithSalt (ns3pr.d_iterations , ns3pr.d_salt , rrs[0 ].qname ));
629
+ if (g_verbose)
630
+ cerr<<" '" <<rrs[0 ].qname <<" ' -> '" << hashed <<" '" <<endl;
631
+ sd.db ->updateDNSSECOrderAndAuthAbsolute (sd.domain_id , rrs[0 ].qname , hashed, 1 );
632
+ }
633
+ else {
634
+ sd.db ->nullifyDNSSECOrderNameAndUpdateAuth (sd.domain_id , rrs[0 ].qname , 1 );
635
+ }
636
+ } else {
637
+ sd.db ->updateDNSSECOrderAndAuth (sd.domain_id , zone, rrs[0 ].qname , 1 );
638
+ }
639
+ }
640
+
619
641
cout<<" SOA serial for zone " <<zone<<" set to " <<sd.serial <<endl;
620
642
return 0 ;
621
643
}
You can’t perform that action at this time.
0 commit comments