options {
query-source port 53;
directory "/var/named";
statistics-file "data/named_stats.txt";
memstatistics-file "data/named_mem_stats.txt";
dump-file "data/cache_dump.db";
notify no;
transfer-format many-answers;
max-transfer-time-in 60;
interface-interval 0;
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view "localhost_resolver" {
match-clients { localhost; };
match-destinations { localhost; };
recursion yes;
zone "." IN {
type hint;
file "named.ca";
};
// if this doesn't exist, i will give you one
include "/etc/named.rfc1912.zones";
};
view "internal" {
match-clients { localnets; };
match-destinations { localnets; };
recursion yes;
// if this doesn't exist, i will give you one
zone "." IN {
type hint;
file "named.ca";
};
zone "gnarfel.com" IN {
type hint;
file "gnargel.com.zone";
};
};
view "external" {
recursion no;
// if this doesn't exist, i will give you one
zone "." IN {
type hint;
file "named.ca";
};
zone "gnarfel.com" IN {
type hint;
file "gnargel.com.zone";
};
};