]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3529. [func] Named now listens on both IPv4 and IPv6 interfaces
authorMark Andrews <marka@isc.org>
Wed, 20 Mar 2013 23:16:12 +0000 (10:16 +1100)
committerMark Andrews <marka@isc.org>
Wed, 20 Mar 2013 23:16:12 +0000 (10:16 +1100)
                        by default.  Named previously only listened on IPv4
                        interfaces by default unless named was running in
                        IPv6 only mode.  [RT #32945]

CHANGES
README
bin/named/config.c
bin/named/server.c
doc/arm/Bv9ARM-book.xml

diff --git a/CHANGES b/CHANGES
index 431b65bc20b4821a170fd7b040f0dabf73876678..34e8325f3b3b9ac26ddc1a84a20d96e9d79d37b3 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,8 @@
+3529.  [func]          Named now listens on both IPv4 and IPv6 interfaces
+                       by default.  Named previously only listened on IPv4
+                       interfaces by default unless named was running in
+                       IPv6 only mode.  [RT #32945]
+
 3528.  [func]          New "dnssec-coverage" command scans the timing
                        metadata for a set of DNSSEC keys and reports if a
                        lapse in signing coverage has been scheduled
diff --git a/README b/README
index b0a32f2a258f1f555e6c8b468995a49feb0751cc..b1519bfab5c3666a5b699ea40b991352062991da 100644 (file)
--- a/README
+++ b/README
@@ -51,6 +51,10 @@ BIND 9
         For up-to-date release notes and errata, see
         http://www.isc.org/software/bind9/releasenotes
 
+BIND 9.10.0
+
+       Named now listens on both IPv4 and IPv6 interfaces by default.
+
 BIND 9.9.0
 
        BIND 9.9.0 includes a number of changes from BIND 9.8 and earlier
index dcde6747ee5896c49dba9fb6b59e64add2cf079f..bd1df7540891aa45c69c78407d81987233af9cbe 100644 (file)
@@ -71,7 +71,7 @@ options {\n\
        host-statistics no;\n\
        interface-interval 60;\n\
        listen-on {any;};\n\
-       listen-on-v6 {none;};\n\
+       listen-on-v6 {any;};\n\
        match-mapped-addresses no;\n\
        max-rsa-exponent-size 0; /* no limit */\n\
        memstatistics-file \"named.memstats\";\n\
index 3fc676a113f362dc78a88659149b391c60590079..84ac1b8900ee181ddb2d8b2048cfb096cc14e68b 100644 (file)
@@ -5300,13 +5300,11 @@ load_configuration(const char *filename, ns_server_t *server,
                                                       ns_g_aclconfctx,
                                                       ns_g_mctx, &listenon);
                } else if (!ns_g_lwresdonly) {
-                       isc_boolean_t enable;
                        /*
                         * Not specified, use default.
                         */
-                       enable = ISC_TF(isc_net_probeipv4() != ISC_R_SUCCESS);
                        CHECK(ns_listenlist_default(ns_g_mctx, listen_port,
-                                                   enable, &listenon));
+                                                   ISC_TRUE, &listenon));
                }
                if (listenon != NULL) {
                        ns_interfacemgr_setlistenon6(server->interfacemgr,
index 3cd31c056ac8790a40fe8b634f1285a11568cef0..df4c02db3bb76e7a63c93ff8c3e5b01a12cedcd2 100644 (file)
@@ -7719,8 +7719,8 @@ listen-on port 1234 { !1.2.3.4; 1.2/16; };
           <para>
             The <command>listen-on-v6</command> option is used to
             specify the interfaces and the ports on which the server will
-            listen
-            for incoming queries sent using IPv6.
+            listen for incoming queries sent using IPv6.  If not specified,
+            the server will listen on port 53 on all IPv6 interfaces.
           </para>
 
           <para>
@@ -7769,13 +7769,6 @@ listen-on-v6 port 1234 { !2001:db8::/32; any; };
 <programlisting>listen-on-v6 { none; };
 </programlisting>
 
-          <para>
-            If no <command>listen-on-v6</command> option is
-            specified, the server will not listen on any IPv6 address
-           unless <command>-6</command> is specified when <command>named</command> is
-           invoked.  If <command>-6</command> is specified then
-           <command>named</command> will listen on port 53 on all IPv6 interfaces by default.
-          </para>
         </sect3>
 
         <sect3 id="query_address">