From: Miod Vallat Date: Thu, 11 Sep 2025 07:39:43 +0000 (+0200) Subject: Update pdnsutil syntax in error/warning messages. X-Git-Tag: rec-5.4.0-alpha1~291^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53b329e89d893cf07e32d1b593f03ba7cc5a3916;p=thirdparty%2Fpdns.git Update pdnsutil syntax in error/warning messages. Signed-off-by: Miod Vallat --- diff --git a/pdns/dnsrecords.hh b/pdns/dnsrecords.hh index da1c8cb8d7..3025b42fac 100644 --- a/pdns/dnsrecords.hh +++ b/pdns/dnsrecords.hh @@ -1264,7 +1264,7 @@ RNAME##RecordContent::RNAME##RecordContent(const string& zoneData) xfrPacket(rtr); \ } \ catch(RecordTextException& rte) { \ - throw MOADNSException("Parsing record content (try 'pdnsutil check-zone'): "+string(rte.what())); \ + throw MOADNSException("Parsing record content (try 'pdnsutil zone check'): "+string(rte.what())); \ } \ } \ \ diff --git a/pdns/packethandler.cc b/pdns/packethandler.cc index 44463e5636..dc188eb904 100644 --- a/pdns/packethandler.cc +++ b/pdns/packethandler.cc @@ -1984,9 +1984,9 @@ bool PacketHandler::opcodeQueryInner2(DNSPacket& pkt, queryState &state, bool re } // check whether this could be fixed easily // if (*(rrset.back().dr.d_name.rbegin()) == '.') { - // g_log<getBits() < 1) { - cout<<" " <" <& cmds, const std::string_view synopsi DNSSECKeeper dk; //NOLINT(readability-identifier-length) - // pdnsutil secure-zone $zone + // pdnsutil zone secure $zone if(!dk.isSecuredZone(zone)) { dk.startTransaction(zone); bool success = secureZone(dk, zone); @@ -4452,7 +4452,7 @@ static int setSignalingZone(vector& cmds, const std::string_view synopsi } } - // pdnsutil set-nsec3 $zone "1 0 0 -" narrow + // pdnsutil zone set-nsec3 $zone "1 0 0 -" narrow try { if (!dk.setNSEC3PARAM(zone, NSEC3PARAMRecordContent("1 0 0 -"), true)) { cerr<<"Cannot set NSEC3 param for " << zone << endl; @@ -4464,13 +4464,13 @@ static int setSignalingZone(vector& cmds, const std::string_view synopsi return 1; } - // pdnsutil rectify-zone $zone + // pdnsutil zone rectify $zone if(!rectifyZone(dk, zone)) { cerr<<"Cannot rectify zone " << zone << endl; return 1; } - // pdnsutil set-meta $zone SIGNALING-ZONE 1 + // pdnsutil metadata set $zone SIGNALING-ZONE 1 if(addOrSetMeta(zone, "SIGNALING-ZONE", {"1"}, true) != 0) { cerr<<"Cannot set meta for zone " << zone << endl; return 1; @@ -5485,7 +5485,7 @@ static int viewAddZone(vector& cmds, const std::string_view synopsis) DomainInfo info; if (!B.getDomainInfo(zone, info)) { cout << "Zone '" << zone << "' does not exist yet."<< endl; - cout << "Consider creating it with 'pdnsutil create-zone " << zone << "'" << endl; + cout << "Consider creating it with 'pdnsutil zone create " << zone << "'" << endl; } } return 0;