From: Otto Date: Wed, 15 Dec 2021 10:49:13 +0000 (+0100) Subject: Help, man page and a few tweaks X-Git-Tag: auth-4.7.0-alpha1~67^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=222a5af0f78921422179499f3b168c38df664d97;p=thirdparty%2Fpdns.git Help, man page and a few tweaks --- diff --git a/docs/manpages/pdnsutil.1.rst b/docs/manpages/pdnsutil.1.rst index ca086d6112..42a2332743 100644 --- a/docs/manpages/pdnsutil.1.rst +++ b/docs/manpages/pdnsutil.1.rst @@ -251,6 +251,8 @@ unset-presigned *ZONE* Disables presigned operation for *ZONE*. raw-lua-from-content *TYPE* *CONTENT* Display record contents in a form suitable for dnsdist's `SpoofRawAction`. +zonemd-verify-file *ZONE* *FILE* + Validate ZONEMD for *ZONE* read from *FILE*. DEBUGGING TOOLS --------------- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index b929b375fe..48f767a045 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1375,14 +1375,15 @@ static int zonemdVerifyFile(const DNSName& zone, const string& fname) { } catch (const std::exception& ex) { cerr << "zonemd-verify-file: " << ex.what() << endl; + return EXIT_FAILURE; } if (validationDone) { if (validationOK) { - cout << "zonemd-verify-file: Validation of ZONEMD record succeeded" << endl; + cout << "zonemd-verify-file: Verification of ZONEMD record succeeded" << endl; return EXIT_SUCCESS; } else { - cerr << "zonemd-verify-file: Validation of ZONEMD record(s) failed" << endl; + cerr << "zonemd-verify-file: Verification of ZONEMD record(s) failed" << endl; } } else { @@ -2445,6 +2446,7 @@ try cout<<"unset-publish-cds ZONE Disable sending CDS responses for ZONE"<