Added support for master and slave zones.
This commit is contained in:
parent
655a0aaf0e
commit
21ffc24acf
4 changed files with 36 additions and 12 deletions
11
dns/templates/zone.master.erb
Normal file
11
dns/templates/zone.master.erb
Normal file
|
@ -0,0 +1,11 @@
|
|||
zone "<%= zone %>" {
|
||||
type master;
|
||||
file "/etc/bind/db.<%= zone %>";
|
||||
<% if has_variable?('slaves') -%>
|
||||
allow-transfer {
|
||||
<% slaves.each do |slave| -%>
|
||||
<%= slave['ipaddr'] %>;
|
||||
<% end -%>
|
||||
};
|
||||
<% end -%>
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue