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

15 lines
497 B
Plaintext
Raw Normal View History

2021-02-23 18:37:52 +00:00
$TTL 86400
2023-05-14 11:31:30 +00:00
$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
2021-02-23 18:37:52 +00:00
)
2023-05-14 11:31:30 +00:00
@ IN NS dns.{{ network.network_name }}.
2021-02-23 18:37:52 +00:00
{% for host in network.hosts %}
2023-05-14 11:31:30 +00:00
{{ host.ip }} IN PTR {{ host.name }}.{{ network.network_name }}.
2021-02-23 18:37:52 +00:00
{% endfor %}