forked from zentralwerk/network
bind: add root-domain in named.conf
This commit is contained in:
parent
9d85e9d39b
commit
dfdf2a290e
|
@ -1,10 +1,15 @@
|
|||
{%- set domain = pillar['bind']['root-domain'] %}
|
||||
zone "{{ domain }}" IN {
|
||||
type master;
|
||||
file "/etc/bind/{{ domain }}.zone";
|
||||
};
|
||||
|
||||
{%- for net, subnet4 in pillar['subnets-inet'].items() %}
|
||||
{%- set domain = net ~ '.' ~ pillar['bind']['root-domain'] %}
|
||||
zone "{{ domain }}" IN {
|
||||
type master;
|
||||
file "/etc/bind/{{ domain }}.zone";
|
||||
};
|
||||
|
||||
{%- endfor %}
|
||||
|
||||
{%- for domain in pillar['bind']['reverse-zones-inet'] %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user