cleanup
diff --git a/files/named.conf.options b/files/named.conf.options
index 80ee0a3..a503699 100644
--- a/files/named.conf.options
+++ b/files/named.conf.options
@@ -1,21 +1,21 @@
+{%- from "bind/map.jinja" import server with context %}
options {
- directory "/var/cache/bind";
+ directory "/var/cache/bind";
+ // If there is a firewall between you and nameservers you want
+ // to talk to, you may need to fix the firewall to allow multiple
+ // ports to talk. See http://www.kb.cert.org/vuls/id/800113
- // If there is a firewall between you and nameservers you want
- // to talk to, you may need to fix the firewall to allow multiple
- // ports to talk. See http://www.kb.cert.org/vuls/id/800113
+ // If your ISP provided one or more IP addresses for stable
+ // nameservers, you probably want to use them as forwarders.
+ // Uncomment the following block, and insert the addresses replacing
+ // the all-0's placeholder.
- // If your ISP provided one or more IP addresses for stable
- // nameservers, you probably want to use them as forwarders.
- // Uncomment the following block, and insert the addresses replacing
- // the all-0's placeholder.
+ // forwarders {
+ // 0.0.0.0;
+ // };
- // forwarders {
- // 0.0.0.0;
- // };
-
- auth-nxdomain no; # conform to RFC1035
- {% if salt['pillar.get']('bind:config:ipv6', 'False') %}
- listen-on-v6 { {{ salt['pillar.get']('bind:config:ipv6_listen', 'any') }}; };
- {% endif %}
+ auth-nxdomain no; # conform to RFC1035
+ {%- if server.get('ipv6_enabled', 'False') %}
+ listen-on-v6 { {{ server.get('ipv6_listen', 'any') }}; };
+ {%- endif %}
};
\ No newline at end of file