Changed slave zone handling from dns module.
This commit is contained in:
parent
4cb660dcaf
commit
9ab2bf1bfd
2 changed files with 12 additions and 8 deletions
|
@ -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; };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue