]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
pdnsutil edit-zone: Emit the updated SOA serial 14900/head
authorUwe Kleine-König <uwe@kleine-koenig.org>
Thu, 28 Nov 2024 08:28:03 +0000 (09:28 +0100)
committerUwe Kleine-König <uwe@kleine-koenig.org>
Thu, 28 Nov 2024 08:28:03 +0000 (09:28 +0100)
After a change to a zone pdnsutil offers to increase the serial. Similar
to `pdnsutil increase-serial` inform the user about the actual value of
the new serial if the increase was agreed to.

pdns/pdnsutil.cc

index 7b30167cb76a8a166ce8abd4f7285c83aabb5472..90d309d4166f6ac3da8856d7aa7b09423e8bcdcb 100644 (file)
@@ -1338,6 +1338,7 @@ static int editZone(const DNSName &zone, const PDNSColors& col) {
 
             changed[{dr.d_name, dr.d_type}]+=str.str();
             grouped[{dr.d_name, dr.d_type}].at(0) = dr;
+            cout<<endl<<"SOA serial for zone "<<zone<<" set to "<<sd.serial;
           }
           break;
         case 'q':