Cleanup for DNS master zone config file.

This commit is contained in:
Timo Mkinen 2012-03-21 15:48:56 +02:00
parent b6646161de
commit c472f5250a

View file

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