]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2336. [func] If "named -6" is specified then listen on all IPv6
authorMark Andrews <marka@isc.org>
Mon, 18 Feb 2008 04:43:47 +0000 (04:43 +0000)
committerMark Andrews <marka@isc.org>
Mon, 18 Feb 2008 04:43:47 +0000 (04:43 +0000)
                        interfaces if there are not listen-on-v6 clauses in
                        named.conf.  [RT #17581]

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

diff --git a/CHANGES b/CHANGES
index a740d04ef1d2cec75dbe691cf8357f9d4928d615..be60117fb0309028c1abb44e986e6a6a5e9c6b05 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+2336.  [func]          If "named -6" is specified then listen on all IPv6
+                       interfaces if there are not listen-on-v6 clauses in
+                       named.conf.  [RT #17581]
+
 2335.  [port]          sunos:  libbind and *printf() support for long long. 
                        [RT #17513]
 
index b1466f1e7f5f227c162962824f7c28d796f8d7ad..0a0ec984afc514b8a3f2dfa61eb6e307e1020892 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: server.c,v 1.501 2008/01/24 02:00:44 jinmei Exp $ */
+/* $Id: server.c,v 1.502 2008/02/18 04:43:47 marka Exp $ */
 
 /*! \file */
 
@@ -3105,11 +3105,13 @@ load_configuration(const char *filename, ns_server_t *server,
                                                          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,
-                                                   ISC_FALSE, &listenon));
+                                                   enable, &listenon));
                }
                if (listenon != NULL) {
                        ns_interfacemgr_setlistenon6(server->interfacemgr,
index d22516363e08436cb1ce39238d8b1fba3ed87a5a..08fa847b9992c6ee0e6966cf4d6b819510ca8fed 100644 (file)
@@ -18,7 +18,7 @@
  - PERFORMANCE OF THIS SOFTWARE.
 -->
 
-<!-- File: $Id: Bv9ARM-book.xml,v 1.344 2008/01/18 01:59:07 jinmei Exp $ -->
+<!-- File: $Id: Bv9ARM-book.xml,v 1.345 2008/02/18 04:43:47 marka Exp $ -->
 <book xmlns:xi="http://www.w3.org/2001/XInclude">
   <title>BIND 9 Administrator Reference Manual</title>
 
@@ -6169,7 +6169,7 @@ listen-on port 1234 { !1.2.3.4; 1.2/16; };
 
           <para>
             If no <command>listen-on</command> is specified, the
-            server will listen on port 53 on all interfaces.
+            server will listen on port 53 on all IPv4 interfaces.
           </para>
 
           <para>
@@ -6227,8 +6227,10 @@ listen-on-v6 port 1234 { !2001:db8::/32; any; };
 
           <para>
             If no <command>listen-on-v6</command> option is
-            specified,
-            the server will not listen on any IPv6 address.
+            specified, the server will not listen on any IPv6 address
+           unless <command>-6</command> is specified when named is
+           invoked.  If <command>-6</command> is specified then
+           named will listen on port 53 on all IPv6 interfaces by default.
           </para>
         </sect3>