// // named.conf // // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS // server as a caching only nameserver (as a localhost DNS resolver only). // // See /usr/share/doc/bind*/sample/ for example named configuration files. // options { # listen-on port 53 { 127.0.0.1; }; # listen-on-v6 port 53 { ::1; }; listen-on port 53 { any; }; listen-on-v6 port 53 { any; }; 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"; # allow-query { localhost; }; allow-query { 68.99.70.44; 178.62.125.29; 192.241.205.38; 128.199.194.211; 104.236.6.58; localhost; }; /* - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion. - If you are building a RECURSIVE (caching) DNS server, you need to enable recursion. - If your recursive DNS server has a public IP address, you MUST enable access control to limit queries to your legitimate users. Failing to do so will cause your server to become part of large scale DNS amplification attacks. Implementing BCP38 within your network would greatly reduce such attack surface */ recursion yes; /* 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"; }; logging { channel default_debug { file "data/named.run"; severity dynamic; }; }; zone "." IN { type hint; file "named.ca"; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; key rndc-key { algorithm hmac-md5; secret "TihXehz6EY21znQlYCZhwg=="; }; controls { inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { rndc-key; }; }; server 68.99.70.45 { keys { rndc-key; }; }; trusted-keys { }; acl "trusted" { 68.99.70.0/32; 178.62.125.29; 128.199.194.211; 127.0.0.1/32; localhost; localnets; ::1/128; }; acl "outside" { !68.99.70.45; !68.99.70.44; !178.62.125.29; !128.199.194.211; !127.0.0.1/32; !::1/128; any; }; zone "jerryfine.com" { type slave; allow-query { any; }; allow-recursion { any; }; masterfile-format text; masters { 68.99.70.45; }; file "/var/named/slaves/jerryfine.com.hosts"; }; zone "grimesnow.com" { type slave; allow-query { any; }; masterfile-format text; masters { 68.99.70.45; }; file "/var/named/slaves/grimesnow.com.hosts"; }; # Truncated # about 300 more domains follow...