acl "RootZoneIPv4" { 172.18.1.4/30; }; acl "RootZoneIPv6" { fd00::4/126; }; acl "JpZoneIPv4" { 172.18.1.8/30; }; acl "JpZoneIPv6" { fd00::8/126; }; acl "ComZoneIPv4" { 172.18.1.12/30; }; acl "ComZoneIPv6" { fd00::c/126; }; acl "TestCoJpZoneIPv4" { 172.18.1.16/30; }; acl "TestComZoneIPv4" { 172.18.1.20/30; }; options { listen-on port 53 { // any; 127.0.0.1; RootZoneIPv4; JpZoneIPv4; ComZoneIPv4; TestCoJpZoneIPv4; TestComZoneIPv4; }; listen-on-v6 port 53 { // any; ::1; RootZoneIPv6; JpZoneIPv6; ComZoneIPv6; }; 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; /* 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 { RootZoneIPv4; RootZoneIPv6; }; zone "." IN { // type hint; type master; // file "named.ca"; file "root.zone"; allow-transfer { none; }; allow-update { none; }; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; }; view "TLD-JP" { match-clients { any; }; match-destinations { JpZoneIPv4; JpZoneIPv6; }; zone "jp" IN { type master; file "jp.zone"; allow-transfer { none; }; allow-update { none; }; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; }; view "TLD-COM" { match-clients { any; }; match-destinations { ComZoneIPv4; ComZoneIPv6; }; zone "com" IN { type master; file "com.zone"; allow-transfer { none; }; allow-update { none; }; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; }; view "2LD-TEST.CO.JP" { match-clients { any; }; match-destinations { TestCoJpZoneIPv4; }; zone "test.co.jp" IN { type master; file "test.co.jp.zone"; allow-transfer { none; }; allow-update { none; }; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; }; view "2LD-TEST.COM" { match-clients { any; }; match-destinations { TestComZoneIPv4; }; zone "test.com" IN { type master; file "test.com.zone"; allow-transfer { none; }; allow-update { none; }; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; };