initial commit
This commit is contained in:
commit
536df4f7dd
5 changed files with 653 additions and 0 deletions
28
templates/bindbackend.conf.j2
Normal file
28
templates/bindbackend.conf.j2
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
options {
|
||||
directory "/etc/powerdns/zones/";
|
||||
};
|
||||
|
||||
{% for z in dnsserver.zonemeta %}
|
||||
zone "{{ z }}" IN {
|
||||
type {{ dnsserver.zonemeta[z].type }};
|
||||
file "/etc/powerdns/zones/db.{{z}}";
|
||||
{%if 'masters' in dnsserver.zonemeta[z] %}
|
||||
masters {
|
||||
{{ dnsserver.zonemeta[z]['masters']|join('; ') }};
|
||||
};
|
||||
{% endif %}
|
||||
allow-query {
|
||||
{{ dnsserver.zonemeta[z]['allow-query']|default(['any'])|join('; ') }};
|
||||
};
|
||||
allow-update {
|
||||
{{ dnsserver.zonemeta[z]['allow-update']|default(['none'])|join('; ') }};
|
||||
};
|
||||
allow-transfer {
|
||||
{{ dnsserver.zonemeta[z]['allow-transfer']|default(['none'])|join('; ') }};
|
||||
};
|
||||
{%if 'notify' in dnsserver.zonemeta[z] %}
|
||||
notify {{ "yes" if dnsserver.zonemeta[z].notify else "no" }};
|
||||
{% endif %}
|
||||
};
|
||||
|
||||
{% endfor %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue