From f8f5c59342bb4d9e7690422c490651637e2e809b Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 11 Aug 2025 12:21:18 +0200 Subject: [PATCH] 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 --- pdns/pdnsutil.cc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 2d06ff02c8..a9aea8ef7e 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() <