Clone shirenn's configuration
This commit is contained in:
21
roles/bind/templates/db.j2
Normal file
21
roles/bind/templates/db.j2
Normal file
@@ -0,0 +1,21 @@
|
||||
$TTL 3600
|
||||
@ IN SOA dns {{ item.administrator }}. (
|
||||
{{ '%Y%m%d%H' | strftime }} ;Serial
|
||||
3600 ;Refresh
|
||||
1800 ;Retry
|
||||
3600000 ;Expire
|
||||
172800 ;Minimum
|
||||
)
|
||||
|
||||
{{ item.name }}. IN NS dns
|
||||
{{ item.name }}. IN NS slave
|
||||
{{ item.name }}. IN A {{ item.ipv4 }}
|
||||
{{ item.name }}. IN AAAA {{ item.ipv6 }}
|
||||
|
||||
dns IN A {{ item.ipv4 }}
|
||||
dns IN AAAA {{ item.ipv6 }}
|
||||
slave IN A {{ item.slave }}
|
||||
|
||||
{% for alias in item.aliases %}
|
||||
{{ alias }} IN CNAME @
|
||||
{% endfor %}
|
Reference in New Issue
Block a user