Skip to content

Commit 8553131

Browse files
committed
Merge pull request thias#26 from smithtrevor/stub_zones
Stub zones
2 parents 84bf840 + f786420 commit 8553131

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

files/db.empty

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
$TTL 86400
22
@ IN SOA localhost. root.localhost. (
33
1 ; Serial
4-
604800 ; Refresh
5-
86400 ; Retry
6-
2419200 ; Expire
7-
86400 ) ; Negative Cache TTL
4+
60 ; Refresh
5+
30 ; Retry
6+
300 ; Expire
7+
10 ) ; Negative Cache TTL
88
;
99
@ IN NS localhost.

templates/zone.conf.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ zone "<%= @_domain %>" {
1414
<%- else -%>
1515
file "<%= @cachedir %>/<%= @name %>/<%= @_domain %>";
1616
<%- end -%>
17+
<%- unless @zone_type == 'stub' -%>
1718
notify <%= @ns_notify ? 'yes' : 'no' %>;
19+
<%- end -%>
1820
<%- if @also_notify and @also_notify != '' -%>
1921
also-notify {
2022
<%- Array(@also_notify).each do |server| -%>

0 commit comments

Comments
 (0)