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

17 lines
427 B
Plaintext
Raw Normal View History

2020-11-29 00:12:15 +00:00
$TTL 86400
$ORIGIN {{ network.network_name }}.
@ IN SOA {{ network.network_name }}. dns.{{ network.network_name }}. (
{{ serial }};
604800;
86400;
2419200;
86400;
)
2021-02-23 18:37:52 +00:00
@ IN NS dns.{{ network.network_name }}.
2020-11-29 00:12:15 +00:00
2022-08-01 21:55:16 +00:00
DNS IN A {{ network.dns }}
2020-11-29 00:12:15 +00:00
{% for host in network.hosts %}
{{ host.name }} IN A {{ network.network_prefix }}.{{ host.ip }}
{% endfor %}