Initial commit for bind, templates for named.conf.* and zones and zone creation.

This commit is contained in:
Jussi 2012-01-13 17:21:24 +02:00 committed by Timo Mkinen
parent 37e39c5c19
commit 0f21d12012
4 changed files with 119 additions and 2 deletions

18
dns/templates/db.erb Normal file
View file

@ -0,0 +1,18 @@
;
; BIND data file for <%= zone %>
;
;
$TTL 86400
@ IN SOA ns1.<%= zone %>. root.<%= zone %>. (
<%= Time.now.to_i %> ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
86400 ) ; Negative Cache TTL
;
@ IN NS ns1.<%= zone %>.
ns1 IN A <%= ipaddr %>
$INCLUDE /etc/bind/db.<%= zone %>-dynamic
$INCLUDE /etc/bind/db.<%= zone %>-static