Setting the "SOA-EDIT" value for a zone to "NONE" causes an error:
'SOA-EDIT type 'NONE' for zone ZONENAME is unknown.'
uint32_t inception = getStartOfWeek();
if (old_serial < inception)
return inception;
- } else if(!kind.empty()) {
+ }
+ else if(pdns_iequals(kind,"NONE")) {
+ // do nothing to serial. needed because a metadata of "" will use the default-soa-edit setting instead.
+ }
+ else if(!kind.empty()) {
g_log<<Logger::Warning<<"SOA-EDIT type '"<<kind<<"' for zone "<<zonename<<" is unknown."<<endl;
}
return old_serial;