From 8fd4cace3e27cf934e795c8cd8152ee724f94cdc Mon Sep 17 00:00:00 2001 From: Vitkor Velchev Date: Thu, 20 Oct 2016 09:01:11 -0400 Subject: [PATCH] Add support for "NONE" SOA-EDIT kind Setting the "SOA-EDIT" value for a zone to "NONE" causes an error: 'SOA-EDIT type 'NONE' for zone ZONENAME is unknown.' --- pdns/serialtweaker.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pdns/serialtweaker.cc b/pdns/serialtweaker.cc index 850071315..1dc3cfa06 100644 --- a/pdns/serialtweaker.cc +++ b/pdns/serialtweaker.cc @@ -98,7 +98,11 @@ uint32_t calculateEditSOA(SOAData sd, const string& kind) { uint32_t inception = getStartOfWeek(); if (sd.serial < inception) return inception; - } else if(!kind.empty()) { + } + else if(pdns_iequals(kind,"NONE")) { + return sd.serial; + } + else if(!kind.empty()) { L<