Код: Выделить всё
options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 { none; };
directory "/etc/namedb/working";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
memstatistics-file "/var/stats/named_mem_stats.txt";
allow-query { localhost; };
recursion no;
};
logging {
channel default_debug {
file "data/named.log";
severity dynamic;
};
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc-key; };
};
key "rndc-key" {
algorithm hmac-md5;
secret "8GeVmOnm9z2YYeeTN94YWg==";
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost.localdomain" IN {
type master;
file "master/localhost-forward.db";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "master/localhost-forward.db";
allow-update { none; };
};
zone "1.0.0.127.in-addr.arpa" IN {
type master;
file "master/localhost-reverse.db";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "master/empty.db";
allow-update { none; };
};
zone "domain.tld" IN {
type master;
file "domain.tld";
allow-update { none; };
};
Код: Выделить всё
$TTL 86400
@ IN SOA ns.domain.tld. admin.domain.tld. (
2013100602 ; serial
86400 ; refresh
7200 ; retry
8640000 ; expire
86400 ) ; minimum
IN NS ns.domain.tld.
IN MX 10 mail.domain.tld.
IN A 91.205.51.XXX
ns IN A 91.205.51.XXX
mail IN A 91.205.51.XXX
ftp IN CNAME domain.tld.
www IN CNAME domain.tld.