Skip to content

Commit e3bf427

Browse files
authored
Merge pull request #99 from nadvornik/forwarders
Optionally include generated forwarders.conf
2 parents 6e8652d + 5039e09 commit e3bf427

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

bind/files/suse/named.conf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ options {
9191

9292
notify no;
9393

94-
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";
94+
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";
95+
96+
# include the forwarders.conf file generated by netconfig(8)
97+
{%- if salt['pillar.get']('bind:config:include_forwarders', False) %}
98+
include "/etc/named.d/forwarders.conf";
99+
{% endif %}
95100

96101
{#- Allow inclusion of arbitrary statements #}
97102
{%- for statement, value in salt['pillar.get']('bind:config:options', map.get('options', {})).items() -%}

pillar.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@ bind:
206206

207207
# End Debian based systems features
208208

209+
# on SUSE include the forwarders.conf file generated by netconfig(8)
210+
bind:
211+
config:
212+
include_forwarders: True
213+
214+
209215

210216
### Keys, Zones, ACLs and Views ###
211217
bind:

0 commit comments

Comments
 (0)