From: Pieter Lexis Date: Mon, 27 Nov 2017 12:24:51 +0000 (+0100) Subject: Remove deprecated SOA-EDIT values X-Git-Tag: auth-4.1.0~10^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f81291fdfbd8bd7a824d1735092ede0f9f640bae;p=pdns Remove deprecated SOA-EDIT values --- diff --git a/docs/dnssec/operational.rst b/docs/dnssec/operational.rst index 100e284c0..a0687bcfc 100644 --- a/docs/dnssec/operational.rst +++ b/docs/dnssec/operational.rst @@ -150,6 +150,9 @@ January 2016. INCEPTION (not recommended) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. deprecated:: 4.1.0 + Removed in this release + Sets the SOA serial to the last inception time in YYYYMMDD01 format. Uses localtime to find the day for inception time. @@ -158,19 +161,18 @@ Uses localtime to find the day for inception time. changes to the zone will get visible on slaves only on the following inception day. -.. deprecated:: 4.1.0 - INCEPTION-WEEK (not recommended) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +.. deprecated:: 4.1.0 + Removed in this release + Sets the SOA serial to the number of weeks since the epoch, which is the last inception time in weeks. .. warning:: Same problem as INCEPTION. -.. deprecated:: 4.1.0 - EPOCH ^^^^^ diff --git a/pdns/serialtweaker.cc b/pdns/serialtweaker.cc index f55b5b688..fa7a0fd69 100644 --- a/pdns/serialtweaker.cc +++ b/pdns/serialtweaker.cc @@ -63,12 +63,7 @@ bool editSOARecord(DNSZoneRecord& rr, const string& kind) { uint32_t calculateEditSOA(const DNSZoneRecord& rr, const string& kind) { auto src = getRR(rr.dr); - if(pdns_iequals(kind,"INCEPTION")) { - L<d_st.serial + 2); /* "00" and "01" are reserved for inception increasing, so increment sd.serial by two */ } } - else if(pdns_iequals(kind,"INCEPTION-WEEK")) { - L<d_st.serial + (inception / (7*86400))); } else if(pdns_iequals(kind,"EPOCH")) { - L<