Some more work on the dns module. The only thing not working for some reason is the zone.slae.erb for an unknown reason.
This commit is contained in:
parent
da1eef4333
commit
bd4cc55ce1
6 changed files with 50 additions and 45 deletions
|
@ -1,12 +1,14 @@
|
|||
zone "<%= zone %>" {
|
||||
type master;
|
||||
file "<%= zonedir %>/db.<%= zone %>";
|
||||
<% if not slaves.empty? -%>
|
||||
allow-transfer {
|
||||
<% slaves.each do |slave| -%>
|
||||
<%= slave %>;
|
||||
<% end -%>
|
||||
};
|
||||
allow-update { none;};
|
||||
type master;
|
||||
<% if zone.match(/\//) %>
|
||||
file "<%= zonedir %>/db.<%= zone.sub(/\//, '-') %>";
|
||||
<% else %>
|
||||
file "<%= zonedir %>/db.<%= zone %>";
|
||||
<% end -%>
|
||||
allow-transfer {
|
||||
<% slaves.each_pair do |k, v| -%>
|
||||
<%= v['ip'] %>;
|
||||
<% end -%>
|
||||
};
|
||||
allow-update { none; };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue