localhost zone
diff --git a/files/localhost.zone b/files/localhost.zone
new file mode 100644
index 0000000..1cae98d
--- /dev/null
+++ b/files/localhost.zone
@@ -0,0 +1,12 @@
+$TTL 86400
+$ORIGIN localhost.
+@ 1D IN SOA @ root (
+ 42 ; serial (d. adams)
+ 3H ; refresh
+ 15M ; retry
+ 1W ; expiry
+ 1D ) ; minimum
+
+ 1D IN NS @
+ 1D IN A 127.0.0.1
+
diff --git a/map.jinja b/map.jinja
index ff9678b..2d12668 100644
--- a/map.jinja
+++ b/map.jinja
@@ -9,7 +9,7 @@
'default_zones_config': '/etc/bind/named.conf.default-zones',
'named_dir': '/var/cache/bind/zones',
'rndc_key': '/etc/rndc.key',
- 'user': 'root',
+ 'user': 'bind',
'group': 'bind'
},
'RedHat': {
diff --git a/server/zone.sls b/server/zone.sls
index e69de29..43885e9 100644
--- a/server/zone.sls
+++ b/server/zone.sls
@@ -0,0 +1,4 @@
+{%- from "bind/map.jinja" import server with context %}
+{%- if server.enabled %}
+
+{%- endif %}
\ No newline at end of file