]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
pdnsutil showZone: report zone ID in verbose mode
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 19 Jun 2025 18:23:22 +0000 (20:23 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 19 Jun 2025 18:23:22 +0000 (20:23 +0200)
pdns/pdnsutil.cc

index 4365e53e11698b1abcc5b85bed453208e99a14ab..091007d8cf71d11d7724c729439c77ff9a748db2 100644 (file)
@@ -2253,7 +2253,11 @@ static bool showZone(DNSSECKeeper& dnsseckeeper, const ZoneName& zone, bool expo
       cout<<"This zone is owned by "<<di.account<<endl;
   }
   if (!exportDS) {
-    cout<<"This is a "<<DomainInfo::getKindString(di.kind)<<" zone"<<endl;
+    cout << "This is a " << DomainInfo::getKindString(di.kind) << " zone";
+    if (g_verbose) {
+      cout << " (" << di.id << ")";
+    }
+    cout << endl;
     auto variant = di.zone.getVariant();
     if (!variant.empty()) {
       cout<<"Variant: " << variant << endl;