show an example zone file for bind9 after adding a new domain

This commit is contained in:
Thomas Waldmann 2014-05-25 17:39:55 +02:00
parent 93b54ab479
commit 19fe0e94a5

View File

@ -49,6 +49,35 @@ zone {{ object.domain }} {
};
</pre>
</div>
</div>
<div class="well">
<h3>How to setup the initial zone file?</h3>
<pre>
$ORIGIN .
$TTL 3600 ; 1 hour
; note: please fix SOA, NS, A, AAAA, MX as needed:
{{ object.domain }} IN SOA ns1.{{ object.domain }}. root.{{ object.domain }}. (
2013123101 ; serial
7200 ; refresh (2 hours)
1800 ; retry (30 minutes)
604800 ; expire (1 week)
60 ; minimum (1 minute)
)
NS ns1.{{ object.domain }}.
NS ns2.{{ object.domain }}.
A 1.2.3.4
AAAA ::
MX 10 mail.{{ object.domain }}.
$ORIGIN {{ object.domain }}.
$TTL 3600 ; 1 hour
; note: the www, ipv4, ipv6 host entries are ONLY needed if you run the
; nsupdate.info service on these hosts. if you just want to add another
; domain that can be updated from an existing nsupdate.info service, you
; won't need these host records:
www A 1.2.3.4
AAAA ::1
ipv4 A 1.2.3.4
ipv6 AAAA ::1
</pre>
</div>
</div>
{% endblock %}