From 0e517856b8db239fc2ae29ff4d5f007b5d1d0441 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Tue, 15 Oct 2024 14:21:45 -0700 Subject: Remove conditionals for releases older than Mageia 6 This eliminates a bunch of conditionals, simplifying the configuration. We no longer have any servers running on a release older than this. --- modules/bind/templates/named_base.conf | 39 ---------------------------------- 1 file changed, 39 deletions(-) (limited to 'modules/bind/templates/named_base.conf') diff --git a/modules/bind/templates/named_base.conf b/modules/bind/templates/named_base.conf index 941cf196..5adba9f3 100644 --- a/modules/bind/templates/named_base.conf +++ b/modules/bind/templates/named_base.conf @@ -32,9 +32,6 @@ 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; @@ -103,67 +100,31 @@ 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; }; }; -- cgit v1.2.1