]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add documentation for min-{ncache,cache}-ttl
authorOndřej Surý <ondrej@sury.org>
Wed, 7 Nov 2018 19:10:52 +0000 (02:10 +0700)
committerOndřej Surý <ondrej@sury.org>
Wed, 14 Nov 2018 17:24:53 +0000 (18:24 +0100)
bin/named/named.conf.docbook
doc/arm/Bv9ARM-book.xml
doc/misc/options

index 01dc81be6c9aa2ea168cb77dfffbce443fb5983d..d6aebe76fb4ce1e951a21e6a05ad87a650610241 100644 (file)
@@ -337,6 +337,8 @@ options {
        memstatistics <replaceable>boolean</replaceable>;
        memstatistics-file <replaceable>quoted_string</replaceable>;
        message-compression <replaceable>boolean</replaceable>;
+       min-cache-ttl <replaceable>ttlval</replaceable>;
+       min-ncache-ttl <replaceable>ttlval</replaceable>;
        min-refresh-time <replaceable>integer</replaceable>;
        min-retry-time <replaceable>integer</replaceable>;
        minimal-any <replaceable>boolean</replaceable>;
index 6d50a37cdbca4374388085d390248646709cea53..d03dfa1434de966e6dc0c367228d3e8d1d5e8480 100644 (file)
@@ -4311,6 +4311,8 @@ badresp:1,adberr:0,findfail:0,valfail:0]
                  <command>max-ncache-ttl</command>,
                  <command>max-stale-ttl</command>,
                  <command>max-cache-size</command>, and
+                 <command>min-cache-ttl</command>,
+                 <command>min-ncache-ttl</command>,
                  <command>zero-no-soa-ttl</command>.
                </para>
 
@@ -8995,6 +8997,38 @@ avoid-v6-udp-ports { 40000; range 50000 60000; };
              </listitem>
            </varlistentry>
 
+           <varlistentry>
+             <term><command>min-ncache-ttl</command></term>
+             <listitem>
+               <para>
+                 To reduce network traffic and increase performance, the server
+                 stores negative answers. <command>min-ncache-ttl</command> is
+                 used to set a minimum retention time for these answers in the
+                 server in seconds.  For convenience, TTL-style time unit
+                 suffixes may be used to specify the value.  The default
+                 <command>min-ncache-ttl</command> is <literal>0</literal>
+                 seconds.  <command>min-ncache-ttl</command> cannot exceed 90
+                 seconds and will be truncated to 90 seconds if set to a
+                 greater value.
+               </para>
+             </listitem>
+           </varlistentry>
+
+           <varlistentry>
+             <term><command>min-cache-ttl</command></term>
+             <listitem>
+               <para>
+                 Sets the minimum time for which the server will cache ordinary
+                 (positive) answers in seconds. For convenience, TTL-style time
+                 unit suffixes may be used to specify the value. The default
+                 <command>min-cache-ttl</command> is <literal>0</literal>
+                 seconds. <command>min-cache-ttl</command> cannot exceed 90
+                 seconds and will be truncated to 90 seconds if set to a
+                 greater value.
+               </para>
+             </listitem>
+           </varlistentry>
+
            <varlistentry>
              <term><command>max-ncache-ttl</command></term>
              <listitem>
index 441cda28df017781609f994980fd01b6db554e89..02d05afdb527effdc3d076c1abad407e609ca5ba 100644 (file)
@@ -89,9 +89,9 @@ options {
         bindkeys-file <quoted_string>;
         blackhole { <address_match_element>; ... };
         cache-file <quoted_string>;
-        catalog-zones { zone <quoted_string> [ default-masters [ port
-            <integer> ] [ dscp <integer> ] { ( <masters> | <ipv4_address> [
-            port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key
+        catalog-zones { zone <string> [ default-masters [ port <integer> ]
+            [ dscp <integer> ] { ( <masters> | <ipv4_address> [ port
+            <integer> ] | <ipv6_address> [ port <integer> ] ) [ key
             <string> ]; ... } ] [ zone-directory <quoted_string> ] [
             in-memory <boolean> ] [ min-update-interval <ttlval> ]; ... };
         check-dup-records ( fail | warn | ignore );
@@ -183,7 +183,7 @@ options {
         fstrm-set-output-queue-model ( mpsc | spsc );
         fstrm-set-output-queue-size <integer>;
         fstrm-set-reopen-interval <ttlval>;
-        geoip-directory ( <quoted_string> | none );
+        geoip-directory ( <quoted_string> | none ); // not configured
         geoip-use-ecs <boolean>; // obsolete
         glue-cache <boolean>;
         has-old-clients <boolean>; // obsolete
@@ -234,6 +234,8 @@ options {
         memstatistics <boolean>;
         memstatistics-file <quoted_string>;
         message-compression <boolean>;
+        min-cache-ttl <ttlval>;
+        min-ncache-ttl <ttlval>;
         min-refresh-time <integer>;
         min-retry-time <integer>;
         min-roots <integer>; // not implemented
@@ -305,18 +307,17 @@ options {
         resolver-retry-interval <integer>;
         response-padding { <address_match_element>; ... } block-size
             <integer>;
-        response-policy { zone <quoted_string> [ log <boolean> ] [
-            max-policy-ttl <ttlval> ] [ min-update-interval <ttlval> ] [
-            policy ( cname | disabled | drop | given | no-op | nodata |
-            nxdomain | passthru | tcp-only <quoted_string> ) ] [
-            recursive-only <boolean> ] [ nsip-enable <boolean> ] [
-            nsdname-enable <boolean> ]; ... } [ break-dnssec <boolean> ] [
-            max-policy-ttl <ttlval> ] [ min-update-interval <ttlval> ] [
-            min-ns-dots <integer> ] [ nsip-wait-recurse <boolean> ] [
-            qname-wait-recurse <boolean> ] [ recursive-only <boolean> ] [
-            nsip-enable <boolean> ] [ nsdname-enable <boolean> ] [
-            dnsrps-enable <boolean> ] [ dnsrps-options { <unspecified-text>
-            } ];
+        response-policy { zone <string> [ log <boolean> ] [ max-policy-ttl
+            <ttlval> ] [ min-update-interval <ttlval> ] [ policy ( cname |
+            disabled | drop | given | no-op | nodata | nxdomain | passthru
+            | tcp-only <quoted_string> ) ] [ recursive-only <boolean> ] [
+            nsip-enable <boolean> ] [ nsdname-enable <boolean> ]; ... } [
+            break-dnssec <boolean> ] [ max-policy-ttl <ttlval> ] [
+            min-update-interval <ttlval> ] [ min-ns-dots <integer> ] [
+            nsip-wait-recurse <boolean> ] [ qname-wait-recurse <boolean> ]
+            [ recursive-only <boolean> ] [ nsip-enable <boolean> ] [
+            nsdname-enable <boolean> ] [ dnsrps-enable <boolean> ] [
+            dnsrps-options { <unspecified-text> } ];
         rfc2308-type1 <boolean>; // not yet implemented
         root-delegation-only [ exclude { <string>; ... } ];
         root-key-sentinel <boolean>;
@@ -457,9 +458,9 @@ view <string> [ <class> ] {
         auth-nxdomain <boolean>; // default changed
         auto-dnssec ( allow | maintain | off );
         cache-file <quoted_string>;
-        catalog-zones { zone <quoted_string> [ default-masters [ port
-            <integer> ] [ dscp <integer> ] { ( <masters> | <ipv4_address> [
-            port <integer> ] | <ipv6_address> [ port <integer> ] ) [ key
+        catalog-zones { zone <string> [ default-masters [ port <integer> ]
+            [ dscp <integer> ] { ( <masters> | <ipv4_address> [ port
+            <integer> ] | <ipv6_address> [ port <integer> ] ) [ key
             <string> ]; ... } ] [ zone-directory <quoted_string> ] [
             in-memory <boolean> ] [ min-update-interval <ttlval> ]; ... };
         check-dup-records ( fail | warn | ignore );
@@ -574,6 +575,8 @@ view <string> [ <class> ] {
         max-udp-size <integer>;
         max-zone-ttl ( unlimited | <ttlval> );
         message-compression <boolean>;
+        min-cache-ttl <ttlval>;
+        min-ncache-ttl <ttlval>;
         min-refresh-time <integer>;
         min-retry-time <integer>;
         min-roots <integer>; // not implemented
@@ -635,18 +638,17 @@ view <string> [ <class> ] {
         resolver-retry-interval <integer>;
         response-padding { <address_match_element>; ... } block-size
             <integer>;
-        response-policy { zone <quoted_string> [ log <boolean> ] [
-            max-policy-ttl <ttlval> ] [ min-update-interval <ttlval> ] [
-            policy ( cname | disabled | drop | given | no-op | nodata |
-            nxdomain | passthru | tcp-only <quoted_string> ) ] [
-            recursive-only <boolean> ] [ nsip-enable <boolean> ] [
-            nsdname-enable <boolean> ]; ... } [ break-dnssec <boolean> ] [
-            max-policy-ttl <ttlval> ] [ min-update-interval <ttlval> ] [
-            min-ns-dots <integer> ] [ nsip-wait-recurse <boolean> ] [
-            qname-wait-recurse <boolean> ] [ recursive-only <boolean> ] [
-            nsip-enable <boolean> ] [ nsdname-enable <boolean> ] [
-            dnsrps-enable <boolean> ] [ dnsrps-options { <unspecified-text>
-            } ];
+        response-policy { zone <string> [ log <boolean> ] [ max-policy-ttl
+            <ttlval> ] [ min-update-interval <ttlval> ] [ policy ( cname |
+            disabled | drop | given | no-op | nodata | nxdomain | passthru
+            | tcp-only <quoted_string> ) ] [ recursive-only <boolean> ] [
+            nsip-enable <boolean> ] [ nsdname-enable <boolean> ]; ... } [
+            break-dnssec <boolean> ] [ max-policy-ttl <ttlval> ] [
+            min-update-interval <ttlval> ] [ min-ns-dots <integer> ] [
+            nsip-wait-recurse <boolean> ] [ qname-wait-recurse <boolean> ]
+            [ recursive-only <boolean> ] [ nsip-enable <boolean> ] [
+            nsdname-enable <boolean> ] [ dnsrps-enable <boolean> ] [
+            dnsrps-options { <unspecified-text> } ];
         rfc2308-type1 <boolean>; // not yet implemented
         root-delegation-only [ exclude { <string>; ... } ];
         root-key-sentinel <boolean>;