acl root_ip4 { 172.18.1.4/30; }; acl root_ip6 { fd00::4/126; }; acl jp_ip4 { 172.18.1.8/30; }; acl jp_ip6 { fd00::8/126; }; acl com_ip4 { 172.18.1.12/30; }; acl com_ip6 { fd00::c/126; }; acl test-co-jp_ip4 { 172.18.1.16/30; }; acl test-co-jp_ip6 { fd00::10/126; }; options { listen-on port 53 { // any; 127.0.0.1; root_ip4; jp_ip4; com_ip4; test-co-jp_ip4; }; listen-on-v6 port 53 { // any; ::1; root_ip6; jp_ip6; com_ip6; test-co-jp_ip6; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; recursion no; allow-query { any; }; allow-recursion { none; }; allow-query-cache { none; }; dnssec-enable no; dnssec-validation no; allow-transfer { none; }; allow-update { none; }; /* Path to ISC DLV key */ bindkeys-file "/etc/named.iscdlv.key"; managed-keys-directory "/var/named/dynamic"; pid-file "/run/named/named.pid"; session-keyfile "/run/named/session.key"; }; view "ROOT" { match-clients { any; }; match-destinations { root_ip4; root_ip6; }; zone "." IN { // type hint; type master; // file "named.ca"; file "root.zone"; }; include "/etc/named.rfc1912.zones"; }; view "JP" { match-clients { any; }; match-destinations { jp_ip4; jp_ip6; }; zone "jp" IN { type master; file "jp.zone"; }; include "/etc/named.rfc1912.zones"; }; view "COM" { match-clients { any; }; match-destinations { com_ip4; com_ip6; }; zone "com" IN { type master; file "com.zone"; }; include "/etc/named.rfc1912.zones"; }; view "TEST.CO.JP" { match-clients { any; }; match-destinations { test-co-jp_ip4; test-co-jp_ip6; }; zone "test.co.jp" IN { type master; file "test.co.jp.zone"; }; include "/etc/named.rfc1912.zones"; };