]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] [rt37069] update NTA limit to a week
authorEvan Hunt <each@isc.org>
Thu, 4 Sep 2014 02:00:03 +0000 (19:00 -0700)
committerEvan Hunt <each@isc.org>
Thu, 4 Sep 2014 02:00:03 +0000 (19:00 -0700)
3940. [func] "rndc nta" now allows negative trust anchors to be
set for up to one week. [RT #37069]

CHANGES
bin/named/server.c
bin/rndc/rndc.docbook
bin/tests/system/rndc/tests.sh
doc/arm/Bv9ARM-book.xml

diff --git a/CHANGES b/CHANGES
index 43ed8c519957b36c68c27f55004959910adbae9d..a8f9db11e7492e36a9b4f3704b404fcd7ff11c96 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+3940.  [func]          "rndc nta" now allows negative trust anchors to be
+                       set for up to one week. [RT #37069]
+
 3939.  [func]          Improve UPDATE forwarding performance by allowing TCP
                        connections to be shared. [RT #37039]
 
index 22cdd68f65100f5c7cf2fa5efe78b68c3f4a54b0..c1b06e377120441f50f5a387085975615953b4ef 100644 (file)
@@ -9921,8 +9921,8 @@ ns_server_nta(ns_server_t *server, char *args, isc_buffer_t *text) {
                                CHECK(result);
                        }
 
-                       if (ntattl > 86400) {
-                               msg = "NTA lifetime cannot exceed one day";
+                       if (ntattl > 604800) {
+                               msg = "NTA lifetime cannot exceed one week";
                                CHECK(ISC_R_RANGE);
                        }
 
index b26f765ff4a6a4683511fd15a8faf8ebefc2e6bf..daf299ed775e3430a26a29cdd93995f3f494db44 100644 (file)
             <option>lifetime</option>.  The default lifetime is
             configured in <file>named.conf</file> via the
             <option>nta-lifetime</option>, and defaults to
-            one hour.  The lifetime cannot exceed one day.
+            one hour.  The lifetime cannot exceed one week.
           </para>
           <para>
             A negative trust anchor selectively disables
index 8a22990eb34a0b2b802ab57a4b9ff71125eecd63..8cc8992c1490553eb4c662e80728fdf16fb8293b 100644 (file)
@@ -378,5 +378,11 @@ grep "query: foo9876.bind CH TXT" ns4/named.run > /dev/null && ret=1
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`
 
+echo "I:testing rndc nta time limits"
+ret=0
+$RNDC -s 10.53.0.4 -p 9956 -c ns4/key6.conf nta -l 2h nta1.example 2>&1 | grep "Negative trust anchor added" > /dev/null || ret=1
+$RNDC -s 10.53.0.4 -p 9956 -c ns4/key6.conf nta -l 1d nta2.example 2>&1 | grep "Negative trust anchor added" > /dev/null || ret=1
+$RNDC -s 10.53.0.4 -p 9956 -c ns4/key6.conf nta -l 1w nta3.example 2>&1 | grep "Negative trust anchor added" > /dev/null || ret=1
+$RNDC -s 10.53.0.4 -p 9956 -c ns4/key6.conf nta -l 8d nta4.example 2>&1 | grep "NTA lifetime cannot exceed one week" > /dev/null || ret=1
 echo "I:exit status: $status"
 exit $status
index 906c890ecad14926becd8bcb67830d3c67a5db89..a76c19673cf3ad47c7c5c614a740bbc7ab1b8929 100644 (file)
@@ -5737,7 +5737,7 @@ options {
                  For convenience, TTL-style time unit suffixes can be
                  used to specify the NTA lifetime in seconds, minutes
                  or hours.  <option>nta-lifetime</option> defaults to
-                 one hour.  It cannot exceed one day.
+                 one hour.  It cannot exceed one week.
                </para>
            </listitem>
          </varlistentry>