All pastes #953391 Raw Edit

Mine

public text v1 · immutable
#953391 ·published 2008-03-23 01:14 UTC
rendered paste body
//include "/etc/rndc.key";

acl "internal-net" { 192.168.1.0/24; 192.168.2.0/24; 127.0.0.1; };

controls {
        inet 127.0.0.1 allow { any; }
//      keys { rndckey; };
;
};

logging {
    channel "named_log" {
        // send most BIND logs to a dedicated log file
        file "/var/log/dns_named.log" versions 10 size 4m;
        severity dynamic;
        print-category yes;
        print-severity yes;
        print-time yes;
    };

    channel "query_log" {
        // query logs go to a separate file
        file "/var/log/dns_query.log" versions 10 size 4m;
        severity debug;
        print-severity yes;
        print-time yes;
    };

    category default { named_log; };
    category queries { query_log; };
};

options {
        directory "/var/named";
        dump-file "/var/named/data/cache_dump.db";
        zone-statistics yes;
        statistics-file "/var/named/data/named_stats.txt";
        recursion yes;
        notify no;
        forward only;
        forwarders { 63.67.120.13; 63.67.120.14; 63.67.120.15; };
        listen-on { "internal-net"; };
        allow-query { "internal-net"; };
        allow-transfer { 192.168.1.254; };
        also-notify {192.168.1.254;};
        interface-interval 0;
};

view "internal" {

        match-clients { "internal-net"; };

        zone "." IN {
                type hint;
                file "zone.root";
        };

        zone "intranetshield.com" IN {
                type master;
                file "zone.is";
                allow-update { none; };
                notify yes;
                also-notify { 192.168.1.254; };
        };

        zone "168.192.in-addr.arpa" IN {
                type master;
                file "zone.168.192";
                allow-update { none; };
                notify yes;
                also-notify { 192.168.1.254; };
        };

        zone "0.0.127.in-addr.arpa" IN {
                type master;
                notify no;
                file "zone.0.0.127";
                allow-update { none; };
        };
};

view "external" chaos {

        match-clients { any; };

        recursion no;

        zone "bind" {
                type master;
                notify no;
                file "named.bind";
        };
};