Created
July 3, 2015 13:05
-
-
Save YannRobert/ef8f19b0bc1e7418ec74 to your computer and use it in GitHub Desktop.
named.conf for a forwarding only naming server (to be used as the nameserver by localhost, in order to cache queries)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// named.conf | |
// | |
options { | |
listen-on port 53 { 127.0.0.1; }; | |
listen-on-v6 port 53 { ::1; }; | |
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; }; | |
recursion yes; | |
forwarders { | |
8.8.8.8; | |
8.8.4.4; | |
}; | |
forward only; | |
dnssec-validation auto; | |
auth-nxdomain no; # conform to RFC1035 | |
pid-file "/run/named/named.pid"; | |
}; | |
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"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment