a2a915
From 9fea3896c84d027271c2315af098dad319a444da Mon Sep 17 00:00:00 2001
a2a915
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
a2a915
Date: Mon, 21 Jan 2019 19:23:10 +0100
a2a915
Subject: [PATCH 2/5] Turn off listening on IPv6 by default
a2a915
a2a915
To maintain behaviour of BIND 9.9, turn off listening on IPv6 by
a2a915
default. To enable listening like upstream defaults, include
a2a915
listen-on-v6 { any; }; in options.
a2a915
---
a2a915
 bin/named/config.c      | 2 +-
a2a915
 doc/arm/Bv9ARM-book.xml | 2 +-
a2a915
 2 files changed, 2 insertions(+), 2 deletions(-)
a2a915
a2a915
diff --git a/bin/named/config.c b/bin/named/config.c
a2a915
index 7d97029..1d7aaa1 100644
a2a915
--- a/bin/named/config.c
a2a915
+++ b/bin/named/config.c
a2a915
@@ -77,7 +77,7 @@ options {\n\
a2a915
 	interface-interval 60;\n\
a2a915
 #	keep-response-order {none;};\n\
a2a915
 	listen-on {any;};\n\
a2a915
-	listen-on-v6 {any;};\n\
a2a915
+	listen-on-v6 {none;};\n\
a2a915
 #	lock-file \"" NS_LOCALSTATEDIR "/run/named/named.lock\";\n\
a2a915
 	match-mapped-addresses no;\n\
a2a915
 	max-rsa-exponent-size 0; /* no limit */\n\
a2a915
diff --git a/doc/arm/Bv9ARM-book.xml b/doc/arm/Bv9ARM-book.xml
a2a915
index a5d9e2e..5e7d015 100644
a2a915
--- a/doc/arm/Bv9ARM-book.xml
a2a915
+++ b/doc/arm/Bv9ARM-book.xml
a2a915
@@ -7473,7 +7473,7 @@ listen-on port 1234 { !1.2.3.4; 1.2/16; };
a2a915
 	    The <command>listen-on-v6</command> option is used to
a2a915
 	    specify the interfaces and the ports on which the server will
a2a915
 	    listen for incoming queries sent using IPv6.  If not specified,
a2a915
-	    the server will listen on port 53 on all IPv6 interfaces.
a2a915
+	    the server will not listen on port 53 on any IPv6 interfaces.
a2a915
 	  </para>
a2a915
 
a2a915
 	  <para>
a2a915
-- 
a2a915
2.20.1
a2a915