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:
svimes 2012-02-05 21:29:13 +02:00
parent da1eef4333
commit bd4cc55ce1
6 changed files with 50 additions and 45 deletions

View file

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