Skip to content

Instantly share code, notes, and snippets.

@YannRobert
Created July 3, 2015 13:05
Show Gist options
  • Save YannRobert/ef8f19b0bc1e7418ec74 to your computer and use it in GitHub Desktop.
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)
//
// 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