rendered paste bodybsdVM# vi named.conf
logging {
channel systemlog {
file "log/named.log";
severity debug;
print-time yes;
};
channel audit_log {
file "log/security.log";
severity debug;
print-time yes;
};
channel xfer_log {
file "log/xfer.log";
severity debug;
print-time yes;
};
category default { systemlog; };
category security { audit_log; systemlog; };
category config { systemlog; };
category xfer-in { xfer_log; };
category xfer-out { xfer_log; };
category notify { audit_log; };
category update { audit_log; };
category queries { audit_log; };
category lame-servers { audit_log; };
};
options {
directory "/etc/namedb";
pid-file "/var/run/named.pid";
allow-transfer { 123.123.123.123; };
// Only allow trusted hosts to freely lookup any host
// allow-query { trusted; };
};
controls {
inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { dnsadmin; };
};
key "dnsadmin" {
algorithm hmac-md5;
secret "9y3Th6UdZe/ORfa6Wi2YemA09PU93Qw5oiattatiTKY";
};
zone "." {
type hint;
file "named.root";
};
zone "localhost" {
type master;
file "localhost.zone";
};
zone "1.0.0.127.in-addr.arpa" {
type master;
file "127.0.0.1.zone";