diff --git a/bind/files/suse/named.conf b/bind/files/suse/named.conf index 73bdebd..fc0094b 100644 --- a/bind/files/suse/named.conf +++ b/bind/files/suse/named.conf @@ -91,7 +91,12 @@ options { notify no; - disable-empty-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"; + disable-empty-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"; + + # include the forwarders.conf file generated by netconfig(8) + {%- if salt['pillar.get']('bind:config:include_forwarders', False) %} + include "/etc/named.d/forwarders.conf"; + {% endif %} {#- Allow inclusion of arbitrary statements #} {%- for statement, value in salt['pillar.get']('bind:config:options', map.get('options', {})).items() -%} diff --git a/pillar.example b/pillar.example index 7e47245..9a8f149 100644 --- a/pillar.example +++ b/pillar.example @@ -206,6 +206,12 @@ bind: # End Debian based systems features +# on SUSE include the forwarders.conf file generated by netconfig(8) +bind: + config: + include_forwarders: True + + ### Keys, Zones, ACLs and Views ### bind: