Changed slave zone handling from dns module.

This commit is contained in:
Timo Mkinen 2012-03-22 12:27:10 +02:00
parent 4cb660dcaf
commit 9ab2bf1bfd
2 changed files with 12 additions and 8 deletions

View file

@ -1,12 +1,10 @@
zone "<%= zone %>" {
type slave;
<% if zone.match(/\//) %>
<% if zone.match(/\//) %>
file "<%= zonedir %>/db.<%= zone.sub(/\//, '-') %>";
<% else %>
<% else -%>
file "<%= zonedir %>/db.<%= zone %>";
<% end -%>
<% master.each_pair do |k, v| -%>
masters { <%= v['ip'] %>; };
<% end -%>
<% end -%>
masters { <%= master %>; };
allow-transfer { none; };
};