Add allow-transfer statement which disallows zone transfer by default.

This commit is contained in:
Florian Bittner 2015-04-02 18:11:01 +02:00
parent 6f4292c3cf
commit 47e0fc62d3
2 changed files with 8 additions and 0 deletions

View file

@ -25,6 +25,11 @@ zone "{{ key }}" {
{%- endfor %}
};
{%- endif %}
allow-transfer {
{% for remote in args.get('allow-transfer', {}) %}
{{ remote }};
{% endfor %}
};
{% if args['type'] == "master" -%}
{% if args['notify'] -%}
notify yes;

View file

@ -25,6 +25,9 @@ bind:
1.168.192.in-addr.arpa:
type: master
notify: False
allow-transfer:
- 1.1.1.1
- 2.2.2.2
dynamic.domain.com:
type: master
allow-update: "key core_dhcp"