From e400c2ea20db57ebf2d9fdaad4c140dd7c76f91c Mon Sep 17 00:00:00 2001 From: Neo_Chen Date: Tue, 21 Jan 2020 13:36:32 +0800 Subject: [PATCH] Bind9 configuration --- named.conf | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/named.conf b/named.conf index 8187a13..e273bc4 100644 --- a/named.conf +++ b/named.conf @@ -6,14 +6,21 @@ options { // Uncomment these to enable IPv6 connections support // IPv4 will still work: - // listen-on-v6 { any; }; + #listen-on-v6 { any; }; // Add this for no IPv4: - // listen-on { none; }; + listen-on { any; }; - allow-recursion { 127.0.0.1; }; + allow-recursion { 127.0.0.1; 10.127.0.0/16; }; allow-transfer { none; }; + allow-query { any; }; allow-update { none; }; + forwarders { + 1.1.1.1; + 8.8.4.4; + }; + + forward only; version none; hostname none; server-id none; @@ -38,21 +45,6 @@ zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" file "localhost.ip6.zone"; }; -zone "255.in-addr.arpa" IN { - type master; - file "empty.zone"; -}; - -zone "0.in-addr.arpa" IN { - type master; - file "empty.zone"; -}; - -zone "." IN { - type hint; - file "root.hint"; -}; - zone "NeoNetwork.unix" IN { type forward; forward only; @@ -64,7 +56,6 @@ zone "127.10.in-addr.arpa" IN { forward only; forwarders { 10.127.1.1; }; }; - //zone "example.org" IN { // type slave; // file "example.zone";