Merge pull request #26 from smithtrevor/stub_zones

Stub zones
This commit is contained in:
Nate Riffe 2015-03-23 18:56:56 -05:00
commit 8553131613
2 changed files with 6 additions and 4 deletions

View File

@ -1,9 +1,9 @@
$TTL 86400
@ IN SOA localhost. root.localhost. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
86400 ) ; Negative Cache TTL
60 ; Refresh
30 ; Retry
300 ; Expire
10 ) ; Negative Cache TTL
;
@ IN NS localhost.

View File

@ -14,7 +14,9 @@ zone "<%= @_domain %>" {
<%- else -%>
file "<%= @cachedir %>/<%= @name %>/<%= @_domain %>";
<%- end -%>
<%- unless @zone_type == 'stub' -%>
notify <%= @ns_notify ? 'yes' : 'no' %>;
<%- end -%>
<%- if @also_notify and @also_notify != '' -%>
also-notify {
<%- Array(@also_notify).each do |server| -%>