summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Server/Hostbase/templates/zone.tmpl37
1 files changed, 17 insertions, 20 deletions
diff --git a/src/lib/Server/Hostbase/templates/zone.tmpl b/src/lib/Server/Hostbase/templates/zone.tmpl
index be4171f6f..142d4dd77 100644
--- a/src/lib/Server/Hostbase/templates/zone.tmpl
+++ b/src/lib/Server/Hostbase/templates/zone.tmpl
@@ -1,22 +1,19 @@
-\$ORIGIN .
-\$TTL $zone[8]
-${zone[1]}. IN SOA $zone[4]. $zone[3]. (
- $zone[2] ; serial
- $zone[7] ; refresh interval
- $zone[6] ; retry interval
- $zone[5] ; expire interval
- $zone[8] ; min ttl
- )
+$ORIGIN .
+$TTL {{ zone.8 }}
+{{ zone.1 }}. IN SOA {{ zone.4 }}. {{ zone.3 }}. (
+ {{ zone.2 }} ; serial
+ {{ zone.7 }} ; refresh interval
+ {{ zone.6 }} ; retry interval
+ {{ zone.5 }} ; expire interval
+ {{ zone.8 }} ; min ttl
+ )
- #for $ns in $nameservers
- NS $ns[0]
- #end for
- #for $a in $addresses
- A $a[0]
- #end for
- #for $mx in $mxs
- MX $mx[0] $mx[1]
- #end for
+ {% for ns in nameservers %}
+ NS {{ ns.0 }}{% endfor %}
+ {% for a in addresses %}
+ A {{ a.0 }}{% endfor %}
+ {% for mx in mxs %}
+ MX {{ mx.0 }} {{ mx.1 }}{% endfor %}
-\$ORIGIN ${zone[1]}.
-localhost A 127.0.0.1
+$ORIGIN {{ zone.1 }}.
+localhost A 127.0.0.1