2019-01-12 16:09:07 +00:00
|
|
|
include "/etc/bind/rndc.key";
|
|
|
|
|
|
|
|
controls {
|
2019-09-12 07:39:58 +00:00
|
|
|
inet 127.0.0.1 port 953
|
|
|
|
allow { 127.0.0.1; } keys { "rndc-key"; };
|
2019-01-12 16:09:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
options {
|
2019-09-12 07:39:58 +00:00
|
|
|
directory "/var/bind";
|
|
|
|
|
|
|
|
// Configure the IPs to listen on here.
|
|
|
|
listen-on { any; };
|
|
|
|
listen-on-v6 { none; };
|
|
|
|
|
|
|
|
// Specify a list of IPs/masks to allow zone transfers to here.
|
|
|
|
//
|
|
|
|
// You can override this on a per-zone basis by specifying this inside a zone
|
|
|
|
// block.
|
|
|
|
//
|
|
|
|
// Warning: Removing this block will cause BIND to revert to its default
|
|
|
|
// behaviour of allowing zone transfers to any host (!).
|
|
|
|
allow-transfer {
|
|
|
|
none;
|
|
|
|
};
|
|
|
|
|
|
|
|
// If you have problems and are behind a firewall:
|
|
|
|
//query-source address * port 53;
|
|
|
|
|
|
|
|
pid-file "/var/run/named/named.pid";
|
|
|
|
|
|
|
|
allow-recursion { none; };
|
|
|
|
recursion no;
|
2019-09-12 11:13:35 +00:00
|
|
|
|
|
|
|
lame-ttl 60;
|
2019-09-12 13:15:59 +00:00
|
|
|
notify master-only; // No notifications within slaves
|
2019-09-12 13:27:25 +00:00
|
|
|
allow-notify { 159.69.27.184; };
|
2019-01-12 16:09:07 +00:00
|
|
|
};
|
|
|
|
{% for zone in zones %}
|
|
|
|
zone "{{ zone }}" IN {
|
2019-09-12 07:39:58 +00:00
|
|
|
type slave;
|
|
|
|
file "/src/zones/db.{{ zone }}.repl";
|
|
|
|
masters port 1053 { 10.231.0.34; };
|
|
|
|
allow-query { any; };
|
2019-01-12 16:09:07 +00:00
|
|
|
};
|
|
|
|
{% endfor %}
|
|
|
|
|