View Single Post
  #7  
Old 30th July 2006, 20:31
tetsuo44 tetsuo44 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

here is a samble of my named.conf

Code:
view "internal-in" in {
        // Our internal (trusted) view. We permit the internal networks
        // to freely access this view. We perform recursion for our
        // internal hosts, and retrieve data from the cache for them.

        match-clients { trusted; };
        recursion yes;
        additional-from-auth yes;
        additional-from-cache yes;
        allow-query {
                any;
        };

        allow-transfer {
                any;
        };

        // prime the server with knowledge of the root servers
        zone "." {
                type hint;
                file "db.root";
        };

        // be authoritative for the localhost forward and reverse zones, and for
        // broadcast zones as per RFC 1912

        zone "localhost" {
                type master;
                file "db.local";
        };

        zone "127.in-addr.arpa" {
                type master;
                file "db.127";
        };

        zone "0.in-addr.arpa" {
                type master;
                file "db.0";
        };

        zone "255.in-addr.arpa" {
                type master;
                file "db.255";
        };

        zone "XX.191.88.in-addr.arpa" {
                type master;
                file "pri.XX.191.88.in-addr.arpa";
        };
        zone "XX.191.88.in-addr.arpa" {
                type master;
                file "pri.XX.191.88.in-addr.arpa";
        };


        zone "sd-XXXX.dedibox.fr" {
                type master;
                file "pri.sd-XXXX.dedibox.fr";
                allow-query { any; };
        };
        zone "sd-XXXX.dedibox.fr" {
                type master;
                file "pri.sd-XXXX.dedibox.fr";
                allow-query { any; };
        };


};

view "external-in" in {
        // Our external (untrusted) view. We permit any client to access
        // portions of this view. We do not perform recursion or cache
        // access for hosts using this view.

        match-clients { any; };
        recursion no;
        additional-from-auth no;
        additional-from-cache no;
        // Link in our zones
        // prime the server with knowledge of the root servers
        zone "." {
                type hint;
                file "db.root";
        };

        // be authoritative for the localhost forward and reverse zones, and for
        // broadcast zones as per RFC 1912

        zone "XX.191.88.in-addr.arpa" {
                type master;
                file "pri.XX.191.88.in-addr.arpa";
        };
        zone "XX.191.88.in-addr.arpa" {
                type master;
                file "pri.XX.191.88.in-addr.arpa";
        };


        zone "sd-XXXX.dedibox.fr" {
                type master;
                file "pri.sd-XXXX.dedibox.fr";
                allow-query { any; };
        };
        zone "sd-XXXX.dedibox.fr" {
                type master;
                file "pri.sd-XXXX.dedibox.fr";
                allow-query { any; };
        };


};
Reply With Quote