a2a915
//
a2a915
// named.conf
a2a915
//
a2a915
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
a2a915
// server as a caching only nameserver (as a localhost DNS resolver only).
a2a915
//
a2a915
// See /usr/share/doc/bind*/sample/ for example named configuration files.
a2a915
//
a2a915
// See the BIND Administrator's Reference Manual (ARM) for details about the
a2a915
// configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html
a2a915
a2a915
options {
a2a915
	listen-on port 53 { 127.0.0.1; };
a2a915
	listen-on-v6 port 53 { ::1; };
a2a915
	directory 	"/var/named";
a2a915
	dump-file 	"/var/named/data/cache_dump.db";
a2a915
	statistics-file "/var/named/data/named_stats.txt";
a2a915
	memstatistics-file "/var/named/data/named_mem_stats.txt";
a2a915
	recursing-file  "/var/named/data/named.recursing";
a2a915
	secroots-file   "/var/named/data/named.secroots";
a2a915
	allow-query     { localhost; };
a2a915
a2a915
	/* 
a2a915
	 - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
a2a915
	 - If you are building a RECURSIVE (caching) DNS server, you need to enable 
a2a915
	   recursion. 
a2a915
	 - If your recursive DNS server has a public IP address, you MUST enable access 
a2a915
	   control to limit queries to your legitimate users. Failing to do so will
a2a915
	   cause your server to become part of large scale DNS amplification 
a2a915
	   attacks. Implementing BCP38 within your network would greatly
a2a915
	   reduce such attack surface 
a2a915
	*/
a2a915
	recursion yes;
a2a915
a2a915
	dnssec-enable yes;
a2a915
	dnssec-validation yes;
a2a915
a2a915
	/* Path to ISC DLV key */
a2a915
	bindkeys-file "/etc/named.root.key";
a2a915
a2a915
	managed-keys-directory "/var/named/dynamic";
a2a915
a2a915
	pid-file "/run/named/named.pid";
a2a915
	session-keyfile "/run/named/session.key";
a2a915
};
a2a915
a2a915
logging {
a2a915
        channel default_debug {
a2a915
                file "data/named.run";
a2a915
                severity dynamic;
a2a915
        };
a2a915
};
a2a915
a2a915
zone "." IN {
a2a915
	type hint;
a2a915
	file "named.ca";
a2a915
};
a2a915
a2a915
include "/etc/named.rfc1912.zones";
a2a915
include "/etc/named.root.key";
a2a915