Setup for allow-query and allow-transfer
diff --git a/bind/files/named.conf.local b/bind/files/named.conf.local
index ed9a238..b9017f8 100644
--- a/bind/files/named.conf.local
+++ b/bind/files/named.conf.local
@@ -6,8 +6,6 @@
type {{ zone.get('type', 'master') }};
file "{{ server.zones_dir }}/db.{{ name }}";
- {%- if zone.get('type', 'master') != 'master' %}
- notify {{ 'yes' if zone.get('notify', False) else 'no' }};
{%- if zone.masters is defined %}
masters {
{%- for master in zone.masters %}
@@ -15,7 +13,17 @@
{%- endfor %}
};
{%- endif %}
- {%- endif %}
+ notify {{ 'yes' if zone.get('notify', False) else 'no' }};
+ allow-query {
+ {%- for query in zone.get('query', ['any']) %}
+ {{ query }};
+ {%- endfor %}
+ };
+ allow-transfer {
+ {%- for transfer in zone.get('transfer', ['none']) %}
+ {{ transfer }};
+ {%- endfor %}
+ };
};
{%- endfor %}