FreeBSD: disable default_zones when views are used

This commit is contained in:
Alexander Weidinger 2017-01-12 14:56:27 +01:00
parent 5074b60db6
commit fdf20d5632
2 changed files with 3 additions and 1 deletions

View file

@ -84,6 +84,7 @@ options {
{%- endfor %}
};
{%- if salt['pillar.get']('bind:config:default_zones', False) and not salt['pillar.get']('bind:configured_views', False) %}
// If you enable a local name server, don't forget to enter 127.0.0.1
// first in your /etc/resolv.conf so this server will be queried.
// Also, make sure to enable it in /etc/rc.conf.
@ -374,6 +375,7 @@ zone "1.168.192.in-addr.arpa" {
};
};
*/
{% endif %}
include "{{ map.local_config }}";
{%- if 'keys' in salt['pillar.get']('bind') %}

View file

@ -29,7 +29,7 @@ bind:
# (ipv4: 4, ipv6: 6). Omitting this reverts to
# binds default of both.
# Debian based systems
# Debian and FreeBSD based systems
default_zones: True # If set to True, the default-zones configuration
# will be enabled. Defaults to False.