All pastes #26825 Raw Edit

Anonymous

public text v1 · immutable
#26825 ·published 2005-10-27 16:34 UTC
rendered paste body
options {
        directory "/var/named";
        /*
         * 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;
};

// 
// a caching only nameserver config
// 





view "internal" {
        match-clients { localnets; localhost; };
        recursion yes;


        zone "." IN {
                type hint;
                file "data/named.ca";
        };

        zone "localhost" IN {
                type master;
                file "data/localhost.zone";
                allow-update { none; };
        };

        zone "0.0.127.in-addr.arpa" IN {
                type master;
                file "data/named.local";
                allow-update { none; };
        };
        
        zone "0.168.192.in-addr.arpa" {
                type master;
                file "data/0.168.192.zone";
                allow-transfer { any; };
        };
        
        zone "domain.com" {
                type master;
                file "data/domain.com.zone";
                allow-transfer { any; };
        };
};
        




view "external " {
        match-clients { any; };
        recursion no;

        zone "domain.com" {
                type master;
                file "data/domain.com.external";
                allow-transfer { none; };
        };
};