ansible/roles/network/templates/etc/bind/db.reverse.j2

15 lines
497 B
Django/Jinja

$TTL 86400
$ORIGIN {{ network.network_reverse }}.IN-ADDR.ARPA.
@ IN SOA {{ network.network_name }}. dns.{{ network.network_name }}. (
{{ serial }} ; serial number
604800 ; refresh
86400 ; update retry
2419200 ; expiry
86400 ; Negative caching TTL
)
@ IN NS dns.{{ network.network_name }}.
{% for host in network.hosts %}
{{ host.ip }} IN PTR {{ host.name }}.{{ network.network_name }}.
{% endfor %}