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