summaryrefslogtreecommitdiffstats
path: root/util/docker-compose/roles/cobbler/templates/named.template.j2
diff options
context:
space:
mode:
Diffstat (limited to 'util/docker-compose/roles/cobbler/templates/named.template.j2')
-rwxr-xr-xutil/docker-compose/roles/cobbler/templates/named.template.j231
1 files changed, 31 insertions, 0 deletions
diff --git a/util/docker-compose/roles/cobbler/templates/named.template.j2 b/util/docker-compose/roles/cobbler/templates/named.template.j2
new file mode 100755
index 00000000..0cf76225
--- /dev/null
+++ b/util/docker-compose/roles/cobbler/templates/named.template.j2
@@ -0,0 +1,31 @@
+options {
+ listen-on port 53 { {{ host_ip }}; };
+ directory "/var/named";
+ dump-file "/var/named/data/cache_dump.db";
+ statistics-file "/var/named/data/named_stats.txt";
+ memstatistics-file "/var/named/data/named_mem_stats.txt";
+ allow-query { 127.0.0.0/8; {{ install_subnet }}/{{ install_prefix }}; };
+ recursion yes;
+};
+
+logging {
+ channel default_debug {
+ file "data/named.run";
+ severity dynamic;
+ };
+};
+
+#for $zone in $forward_zones
+zone "${zone}." {
+ type master;
+ file "$zone";
+};
+
+#end for
+#for $zone, $arpa in $reverse_zones
+zone "${arpa}." {
+ type master;
+ file "$zone";
+};
+
+#end for