From 1bdc8d617ad3d41d42f3b49b9aa61e0455721c0f Mon Sep 17 00:00:00 2001 From: Ruben d'Arco Date: Sat, 14 Apr 2018 05:14:32 +0100 Subject: [PATCH] Add question for to increase-soa after non SOA edit First stab at 3814. Simple implementation that does simple SOA change detection. Should work for most people who just want to let increase-serial do the work. Logic to increase serial is not centralized and it does not detect if the SERIAL has changed in the SOA. It just looks for a change of the SOA record in general. --- pdns/pdnsutil.cc | 46 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index fe4705aa0..fee27ce47 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -919,10 +919,50 @@ int editZone(DNSSECKeeper& dk, const DNSName &zone) { str<<"\033[0;32m+"<< d.d_name <<" "<getZoneRepresentation(true)<<"\033[0m"< 0) + if (changed.size() > 0) { + if (changed.find({zone, QType::SOA}) == changed.end()) { + cout<getZoneRepresentation(true)<<"\033[0m"<getZoneRepresentation(true)<<"\033[0m"<