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