LJ Archive

Listing 2. Configuration File Example

acl zone-transfer {
    192.115.80.3;
    192.115.17.10;
};
acl local-networks {
    192.168.1.0/24;
    192.168.2.0/24;
    192.168.3.0/24;
};
options {
   directory "/usr/local/dns/database";
   allow-transfer { zone-transfer; };
   query-source address * port 53;
};
zone "localnet.sela.co.il" {
   type master;
   file "db.inside.sela.co.il";
      allow-query { local-networks; };
      allow-transfer { none; };
};
zone "labs.sela.co.il" {
   type master;
   file "db.labs.sela.co.il";
      allow-query { local-networks; };
      allow-transfer { none; };
};
zone "outside.sela.co.il" {
   type master;
   file "db.outside.sela.co.il";
      allow-transfer { zone-transfer; };
};
zone "17.115.192.in-addr.arpa" {
   type master;
   file "db-reverse";
   allow-transfer { none ; };
};
zone "0.0.127.in-addr.arpa" {
   type master;
   file "db-loopback";
      allow-transfer { none ; };
};
zone "." {
   type hint;
   file "db-cache";
};
LJ Archive