Ryan Haggerty cf14e4
//
Ryan Haggerty cf14e4
// named.conf for Red Hat caching-nameserver 
Ryan Haggerty cf14e4
//
Ryan Haggerty cf14e4
Ryan Haggerty cf14e4
options {
Ryan Haggerty cf14e4
	directory "/var/named";
Ryan Haggerty cf14e4
	dump-file "/var/named/data/cache_dump.db";
Ryan Haggerty cf14e4
        statistics-file "/var/named/data/named_stats.txt";
Ryan Haggerty cf14e4
	/*
Ryan Haggerty cf14e4
	 * If there is a firewall between you and nameservers you want
Ryan Haggerty cf14e4
	 * to talk to, you might need to uncomment the query-source
Ryan Haggerty cf14e4
	 * directive below.  Previous versions of BIND always asked
Ryan Haggerty cf14e4
	 * questions using port 53, but BIND 8.1 uses an unprivileged
Ryan Haggerty cf14e4
	 * port by default.
Ryan Haggerty cf14e4
	 */
Ryan Haggerty cf14e4
	 // query-source address * port 53;
Ryan Haggerty cf14e4
};
Ryan Haggerty cf14e4
Ryan Haggerty cf14e4
// 
Ryan Haggerty cf14e4
// a caching only nameserver config
Ryan Haggerty cf14e4
// 
Ryan Haggerty cf14e4
controls {
Ryan Haggerty cf14e4
	inet 127.0.0.1 allow { localhost; } keys { rndckey; };
Ryan Haggerty cf14e4
};
Ryan Haggerty cf14e4
Ryan Haggerty cf14e4
zone "." IN {
Ryan Haggerty cf14e4
	type hint;
Ryan Haggerty cf14e4
	file "named.ca";
Ryan Haggerty cf14e4
};
Ryan Haggerty cf14e4
Ryan Haggerty cf14e4
zone "example.org" {
Ryan Haggerty cf14e4
        type master;
Ryan Haggerty cf14e4
        file "named.example.org";
Ryan Haggerty cf14e4
};
Ryan Haggerty cf14e4
Ryan Haggerty cf14e4
zone "localdomain" IN {
Ryan Haggerty cf14e4
	type master;
Ryan Haggerty cf14e4
	file "localdomain.zone";
Ryan Haggerty cf14e4
	allow-update { none; };
Ryan Haggerty cf14e4
};
Ryan Haggerty cf14e4
Ryan Haggerty cf14e4
zone "localhost" IN {
Ryan Haggerty cf14e4
	type master;
Ryan Haggerty cf14e4
	file "localhost.zone";
Ryan Haggerty cf14e4
	allow-update { none; };
Ryan Haggerty cf14e4
};
Ryan Haggerty cf14e4
Ryan Haggerty cf14e4
zone "0.0.127.in-addr.arpa" IN {
Ryan Haggerty cf14e4
	type master;
Ryan Haggerty cf14e4
	file "named.local";
Ryan Haggerty cf14e4
	allow-update { none; };
Ryan Haggerty cf14e4
};
Ryan Haggerty cf14e4
Ryan Haggerty cf14e4
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
Ryan Haggerty cf14e4
        type master;
Ryan Haggerty cf14e4
	file "named.ip6.local";
Ryan Haggerty cf14e4
	allow-update { none; };
Ryan Haggerty cf14e4
};
Ryan Haggerty cf14e4
Ryan Haggerty cf14e4
zone "255.in-addr.arpa" IN {
Ryan Haggerty cf14e4
	type master;
Ryan Haggerty cf14e4
	file "named.broadcast";
Ryan Haggerty cf14e4
	allow-update { none; };
Ryan Haggerty cf14e4
};
Ryan Haggerty cf14e4
Ryan Haggerty cf14e4
zone "0.in-addr.arpa" IN {
Ryan Haggerty cf14e4
	type master;
Ryan Haggerty cf14e4
	file "named.zero";
Ryan Haggerty cf14e4
	allow-update { none; };
Ryan Haggerty cf14e4
};
Ryan Haggerty cf14e4
Ryan Haggerty cf14e4
include "/etc/rndc.key";