Initial commit for bind, templates for named.conf.* and zones and zone creation.
This commit is contained in:
parent
37e39c5c19
commit
0f21d12012
4 changed files with 119 additions and 2 deletions
18
dns/templates/db.erb
Normal file
18
dns/templates/db.erb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue