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