Cleanup for DNS master zone config file.
This commit is contained in:
parent
b6646161de
commit
c472f5250a
1 changed files with 12 additions and 6 deletions
|
@ -1,14 +1,20 @@
|
||||||
zone "<%= zone %>" {
|
zone "<%= zone %>" {
|
||||||
type master;
|
type master;
|
||||||
<% if zone.match(/\//) %>
|
<% if zone.match(/\//) -%>
|
||||||
file "<%= zonedir %>/db.<%= zone.sub(/\//, '-') %>";
|
file "<%= zonedir %>/db.<%= zone.sub(/\//, '-') %>";
|
||||||
<% else %>
|
<% else -%>
|
||||||
file "<%= zonedir %>/db.<%= zone %>";
|
file "<%= zonedir %>/db.<%= zone %>";
|
||||||
<% end -%>
|
<% end -%>
|
||||||
allow-transfer {
|
allow-transfer {
|
||||||
<% slaves.each_pair do |k, v| -%>
|
<% if slaves != [] -%>
|
||||||
|
<% slaves.each_pair do |k, v| -%>
|
||||||
<%= v['ip'] %>;
|
<%= v['ip'] %>;
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
<% else -%>
|
||||||
|
none;
|
||||||
|
<% end -%>
|
||||||
|
};
|
||||||
|
allow-update {
|
||||||
|
none;
|
||||||
};
|
};
|
||||||
allow-update { none; };
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue