Merge pull request #27 from daschatten/master

Add allow-transfer statement which disallows zone transfer by default.
This commit is contained in:
Nitin Madhok 2015-04-02 12:31:47 -04:00
commit 3b9cd418cb
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"