From: Miod Vallat Date: Mon, 11 Aug 2025 10:21:18 +0000 (+0200) Subject: Display the before/after SOA records when updating serial number. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f8f5c59342bb4d9e7690422c490651637e2e809b;p=thirdparty%2Fpdns.git Display the before/after SOA records when updating serial number. This used to be the case and then the code kept building the string but would no longer output it... Signed-off-by: Miod Vallat --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 2d06ff02c..a9aea8ef7 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1899,6 +1899,10 @@ static bool parseZoneFile(const char* tmpnam, int& errorline, std::vector& records, const PDNSColors& col, DNSRecord& update) // NOLINT(readability-identifier-length) { auto iter = std::find_if(records.begin(), records.end(), [&info](const DNSRecord& rec) { return rec.d_type == QType::SOA && rec.d_name == info.zone.operator const DNSName&(); }); @@ -1909,8 +1913,6 @@ static bool increaseZoneSerial(UtilBackend &B, DNSSECKeeper& dsk, DomainInfo& in return false; } DNSRecord oldSoaDR = *iter; - ostringstream str; - str<< col.red() << "-" << oldSoaDR.d_name << " " << oldSoaDR.d_ttl << " IN " << DNSRecordContent::NumberToType(oldSoaDR.d_type) << " " <getZoneRepresentation(true) << col.rst() <getZoneRepresentation(true) << col.rst() <getZoneRepresentation(true) << col.rst() <