DNS module fixes for CentOS, OpenBSD and Fedora.

This commit is contained in:
Timo Mkinen 2012-01-20 14:00:07 +02:00
parent fa542a2bfd
commit eab2dc4626
4 changed files with 126 additions and 73 deletions

View file

@ -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

View file

@ -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| -%>

View file

@ -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 -%>
};
};