aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/bind/templates/named_base.conf32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/bind/templates/named_base.conf b/modules/bind/templates/named_base.conf
index c066f16a..941cf196 100644
--- a/modules/bind/templates/named_base.conf
+++ b/modules/bind/templates/named_base.conf
@@ -32,7 +32,9 @@ options {
version "";
directory "/var/named";
dump-file "/var/tmp/named_dump.db";
+<% if scope.function_versioncmp([lsbdistrelease, '3']) < 0 -%>
pid-file "/var/run/named.pid";
+<% end -%>
statistics-file "/var/tmp/named.stats";
zone-statistics yes;
// datasize 256M;
@@ -101,37 +103,67 @@ zone "." IN {
zone "localdomain" IN {
type master;
+<% if scope.function_versioncmp([lsbdistrelease, '3']) >= 0 -%>
+ file "named.localhost";
+<% else -%>
file "master/localdomain.zone";
+<% end -%>
allow-update { none; };
};
zone "localhost" IN {
type master;
+<% if scope.function_versioncmp([lsbdistrelease, '3']) >= 0 -%>
+ file "named.localhost";
+<% else -%>
file "master/localhost.zone";
+<% end -%>
allow-update { none; };
};
+<% if scope.function_versioncmp([lsbdistrelease, '3']) >= 0 -%>
+zone "1.0.0.127.in-addr.arpa" IN {
+<% else -%>
zone "0.0.127.in-addr.arpa" IN {
+<% end -%>
type master;
+<% if scope.function_versioncmp([lsbdistrelease, '3']) >= 0 -%>
+ file "named.loopback";
+<% else -%>
file "reverse/named.local";
+<% end -%>
allow-update { none; };
};
+<% if scope.function_versioncmp([lsbdistrelease, '3']) >= 0 -%>
+zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
+<% else -%>
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
+<% end -%>
type master;
+<% if scope.function_versioncmp([lsbdistrelease, '3']) >= 0 -%>
+ file "named.loopback";
+<% else -%>
file "reverse/named.ip6.local";
+<% end -%>
allow-update { none; };
};
+<% if scope.function_versioncmp([lsbdistrelease, '3']) < 0 -%>
zone "255.in-addr.arpa" IN {
type master;
file "reverse/named.broadcast";
allow-update { none; };
};
+<% end -%>
zone "0.in-addr.arpa" IN {
type master;
+<% if scope.function_versioncmp([lsbdistrelease, '3']) >= 0 -%>
+ file "named.empty";
+<% else -%>
file "reverse/named.zero";
+<% end -%>
allow-update { none; };
};