From: Vitkor Velchev Date: Thu, 20 Oct 2016 13:01:11 +0000 (-0400) Subject: Add support for "NONE" SOA-EDIT kind X-Git-Tag: auth-4.0.4-rc1~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fd4cace3e27cf934e795c8cd8152ee724f94cdc;p=thirdparty%2Fpdns.git 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.' --- diff --git a/pdns/serialtweaker.cc b/pdns/serialtweaker.cc index 850071315c..1dc3cfa062 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<