Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fumiyas
Created December 9, 2011 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fumiyas/1451718 to your computer and use it in GitHub Desktop.
Save fumiyas/1451718 to your computer and use it in GitHub Desktop.
Initial "options" clause in /etc/named.caching-nameserver.conf from CentOS 5
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";
// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;
allow-query { localhost; };
allow-query-cache { localhost; };
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment