From: Miod Vallat Date: Wed, 20 Aug 2025 13:24:26 +0000 (+0200) Subject: Sort output for "zone list" and "rrset add" as done everywhere else. X-Git-Tag: rec-5.4.0-alpha1~313^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55282a6e9b860dddb9a4c6186edf385e5a2050f4;p=thirdparty%2Fpdns.git Sort output for "zone list" and "rrset add" as done everywhere else. Signed-off-by: Miod Vallat --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 8479ce2f8e..32d2cfaa96 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1757,28 +1757,21 @@ static int listZone(const ZoneName &zone) { return EXIT_FAILURE; } - di.backend->list(zone, di.id); + std::vector records; DNSResourceRecord rr; - cout<<"$ORIGIN ."<list(zone, di.id); while(di.backend->get(rr)) { - if(rr.qtype.getCode() != 0) { - switch (rr.qtype.getCode()) { - case QType::ALIAS: - case QType::CNAME: - case QType::MX: - case QType::NS: - case QType::SRV: - if (!rr.content.empty() && rr.content[rr.content.size()-1] != '.') { - rr.content.append(1, '.'); - } - break; - } - - cout<& cmds) { // need to be explicit to bypass the ueberbackend cache! di.backend->lookup(rr.qtype, name, di.id); cout<<"New rrset:"< finalrrs; while(di.backend->get(rr)) { - cout<commitTransaction(); return EXIT_SUCCESS;