Bind: Example named.conf file
by rajesh[ Edit ] 2012-05-10 14:07:50
include "/etc/rndc.key";
controls {
inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; };
};
options {
directory "/var/named"; // the default
pid-file "/var/run/named/named.pid";
dump-file "data/cache_dump.db";
statistics-file "data/named_stats.txt";
allow-transfer {"none";};
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view "localhost_resolver" {
match-clients { 127.0.0.0/24; };
match-destinations { localhost; };
recursion yes;
zone "." IN {
type hint;
file "/var/named/named.ca";
};
include "/var/named/named.rfc1912.zones";
};
view "internal" {
match-clients { localnets; };
match-destinations { localnets; };
recursion yes;
zone "." IN {
type hint;
file "/var/named/named.ca";
};
zone "ns1.sitename.com" {
type master;
file "/var/named/ns1.sitename.com.db";
};
zone "sitename.com" {
type master;
file "/var/named/sitename.com.db";
};
};
view "external" {
recursion no;
zone "." IN {
type hint;
file "/var/named/named.ca";
};
zone "ns1.sitename.com" {
type master;
file "/var/named/ns1.sitename.db";
};
zone "sitename.com" {
type master;
file "/var/named/sitename.com.db";
};
};