network/salt/bind/net-domain.zone

26 lines
626 B
Dns
Raw Normal View History

2017-01-13 03:57:09 +01:00
$ORIGIN {{ domain }}.
$TTL 10M
2018-06-23 02:04:35 +02:00
@ IN SOA {{ pillar['bind']['master-ns'][ctx] }}. astro.spaceboyz.net. (
2017-01-13 03:57:09 +01:00
{{ pillar['bind']['serial'] }} ; serial
1H ; refresh
1M ; retry
2H ; expire
5M ; minimum
)
2018-06-26 22:46:35 +02:00
{%- for ns in pillar['bind']['public-ns'][ctx] %}
2017-01-13 03:57:09 +01:00
IN NS {{ ns }}.
{%- endfor %}
{%- if pillar['hosts-inet'].get(net) %}
{%- for name, a in pillar['hosts-inet'][net].items() %}
{{ name }} IN A {{ a }}
{%- endfor %}
{%- endif %}
{%- if pillar['hosts-inet6'][ctx].get(net) %}
2018-06-23 02:22:31 +02:00
{%- for name, aaaa in pillar['hosts-inet6'][ctx][net].items() %}
2017-01-13 03:57:09 +01:00
{{ name }} IN AAAA {{ aaaa }}
{%- endfor %}
{%- endif %}