DNS module fixes for CentOS, OpenBSD and Fedora.
This commit is contained in:
parent
fa542a2bfd
commit
eab2dc4626
4 changed files with 126 additions and 73 deletions
|
@ -23,5 +23,5 @@ $ORIGIN <%= zone %>.
|
|||
<% end -%>
|
||||
<% end -%>
|
||||
|
||||
$INCLUDE /etc/bind/db.<%= zone %>-dynamic
|
||||
$INCLUDE /etc/bind/db.<%= zone %>-static
|
||||
$INCLUDE <%= zonedir %>/db.<%= zone %>-dynamic
|
||||
$INCLUDE <%= zonedir %>/db.<%= zone %>-static
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
zone "<%= zone %>" {
|
||||
type master;
|
||||
file "/etc/bind/db.<%= zone %>";
|
||||
file "<%= zonedir %>/db.<%= zone %>";
|
||||
<% if not slaves.empty? -%>
|
||||
allow-transfer {
|
||||
<% slaves.each do |slave| -%>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
zone "<%= zone %>" {
|
||||
type slave;
|
||||
file "/var/cache/bind/db.<%= zone %>";
|
||||
file "<%= zonedir %>/db.<%= zone %>";
|
||||
masters {
|
||||
<% master.each do |m| -%>
|
||||
<%= m['ipaddr'] %>;
|
||||
<%= m %>;
|
||||
<% end -%>
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue