network/salt/bind/root-domain.zone

20 lines
449 B
Dns

$ORIGIN {{ domain }}
$TTL 10M
@ IN SOA {{ pillar['bind']['master-ns'] }}. astro.spaceboyz.net. (
{{ pillar['bind']['serial'] }} ; serial
1H ; refresh
1M ; retry
2H ; expire
5M ; minimum
)
{%- for ns in pillar['bind']['public-ns'] %}
IN NS {{ ns }}.
{%- endfor %}
{%- for net, hosts in pillar['hosts-inet'].items() %}
{%- for ns in pillar['bind']['public-ns'] %}
{{ net }} IN NS {{ ns }}.
{%- endfor %}
{%- endfor %}