All pastes #237264 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-11-04 13:06 UTC
rendered paste body
options {
        directory "/var/named";
        dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
         // query-source address * port 53;
version "Bananas With Cheese";
allow-transfer {"none";};
// allow-recursion {192.168.1.0/24;};
recursion no;
};

//
//
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
        type hint;
        file "named.ca";
};
zone "lanserver.no" IN {
        type master;
        file "lanserver.no.zone";
        also-notify {192.168.1.3;};
        allow-transfer {192.168.1.3;};
};
zone "localdomain" IN {
        type master;
        file "localdomain.zone";
        allow-update { none; };
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};
// reverse map for class C 192.168.1.0
zone "1.168.192.IN-ADDR.ARPA" in{
        type master;
        file "192.168.1.rev";
};
zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.local";
        allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
        type master;
        file "named.ip6.local";
        allow-update { none; };
};

zone "255.in-addr.arpa" IN {
        type master;
        file "named.broadcast";
        allow-update { none; };
};

zone "0.in-addr.arpa" IN {
        type master;
        file "named.zero";
        allow-update { none; };
};

include "/etc/rndc.key";

Contents of 
lanserver.no.zone

$TTL    86400 ; 24 hours could have been written as 24h or 1d
$ORIGIN lanserver.no.
@       1D      IN              SOA ns1.lanserver.no.   root.lanserver.no. (
                                        50 ; serial
                                        3H ; refresh
                                        15 ; retry
                                        1w ; expire
                                        3h ; minimum
                                        )
                IN      NS      ns1.lanserver.no.
                IN      NS      ns2.lanserver.no.
ns1             IN      A       192.168.1.2
ns2             IN      A       192.168.1.3
oldbox          IN      CNAME   ns2


Contents of 192.168.1.rev
$TTL    86400 ; 24 hours could have been written as 24h or 1d
$ORIGIN 1.168.192.IN-ADDR.ARPA.
@  1D  IN        SOA ns1.lanserver.no.  root.lanserver.no. (
                                50 ; serial
                                3H ; refresh
                                15 ; retry
                                1w ; expire
                                3h ; minimum
                                )
2       IN      PTR     ns1.lanserver.no.
3       IN      PTR     ns2.lanserver.no.