// **************************************************************************
// This is the primary configuration file for the BIND DNS server named.

// bind configuration is now splitted into several files, thus making
// easier to modify aspects of it.

// If you are just adding zones, please do that in /etc/bind/named.conf.local
// **************************************************************************

// Load global bind options. Needs full path since directory is not definet yet. 
include "/etc/bind/named.conf.options";

// Include key support to enable domain transfers
// The key must be the same among servers
include "rndc.key";

controls {
        inet 127.0.0.1 allow { localhost; } keys { rndc-key; };
};

// Load logging info
include "named.conf.logging";


// prime the server with knowledge of the root servers
// Authoritative only DNS, comment out this one, and uncomment 
// recursion and fetch-glue entries in named.conf.options
zone "." {
        type hint;
        file "root.hint";
};


// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
// Recursive only DNS servers, comment out all the lines below

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";
};

// Uncoment the next lines for ipv6 support
//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 "db.ip6";
//        allow-update { none; };
//};

// Local domains are defined on named.conf.local
include "named.conf.local";
