Configuring and Managing MPE/iX Internet Services (MPE/iX 6.0)

156 Appendix B
BIND 8 Configuration File
zone “stub.demo.zone” {
type stub; // stub zones are like slave zones,
// except that only the NS records
// are transferred.
file “stub.demo.zone”;
masters {
1.2.3.4; // where to zone transfer from
5.6.7.8;
};
check-names warn;
allow-update { none; };
allow-transfer { any; };
allow-query { any; };
max-transfer-time-in 120; // if not set, global option is used.
};
zone “.” {
type hint; // used to be specified w/ “cache”
file “cache.db”;
};
acl can_query { !1.2.3/24; any; }; // network 1.2.3.0 mask 255.255.255.0
// is disallowed; rest are OK
acl can_axfr { 1.2.3.4; can_query; }; // host 1.2.3.4 and any host allowed
// by can_query are OK
zone “non-default-acl.demo.zone” {
type master;
file “foo”;
allow-query { can_query; };
allow-transfer { can_axfr; };
allow-update {
1.2.3.4;
5.6.7.8;servers.
};
};
key sample_key { // for TSIG; supported by parser
algorithm hmac-md5; // but not yet implemented in the
secret “your secret here”; // rest of the server
};
key key2 {
algorithm hmac-md5;
secret “ereh terces rouy”;
};
server 1.2.3.4 {
bogus no; // if yes, we won’t query or listen
// to this server
transfer-format one-answer; // set transfer format for this
// server (see the description of
// ‘transfer-format’ above)
// if not specified, the global option
// will be used
transfers 0; // not implemented
keys { sample_key; key2; }; // for TSIG; supported by the parser
// but not yet implemented in the
// rest of the server
};
logging {
/*
* All log output goes to one or more “channels”; you can make as
* many of them as you want.
*/