All pastes #406514 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-03-22 14:25 UTC
rendered paste body
acl recurse-hosts {
        localhost;
        10.0.0.0/8;
        172.16.0.0/12;
        192.168.0.0/16;
        your.ip.net.work/24;
};

options {
        allow-query { recurse-hosts; };
        allow-recursion { recurse-hosts; };
};

Then in each zone you are master for:
zone "domain1.com" in {
        type master; 
        allow-query { any; };
        file "db.domain1.com";
};
zone "domain2.com" in {
        type master; 
        allow-query { any; };
        file "db.domain2.com";
};

Logging setup:

logging {
        channel logfile {
                file "/var/log/named.log";
                severity info; 
                print-time yes; 
                print-category yes; 
                print-severity yes;
        };
        category default { logfile; };
        category security { null; };
};