support also-notify

This commit is contained in:
david 2016-07-31 21:46:06 +02:00
parent 01eca2c3fa
commit 4ca5eca7ee
4 changed files with 12 additions and 0 deletions

View file

@ -22,6 +22,9 @@ zone "{{ key }}" {
}; };
{% else -%} {% else -%}
file "{{ file }}"; file "{{ file }}";
{%- if args['also-notify'] is defined %}
also-notify { {{ args.get('also-notify', []) | join('; ') }}; };
{%- endif %}
{% if args['type'] == "master" -%} {% if args['type'] == "master" -%}
{% if args['notify'] -%} {% if args['notify'] -%}
notify yes; notify yes;

View file

@ -38,6 +38,9 @@ zone "{{ key }}" {
{%- if args['allow-transfer'] is defined %} {%- if args['allow-transfer'] is defined %}
allow-transfer { {{ args.get('allow-transfer', []) | join('; ') }}; }; allow-transfer { {{ args.get('allow-transfer', []) | join('; ') }}; };
{%- endif %} {%- endif %}
{%- if args['also-notify'] is defined %}
also-notify { {{ args.get('also-notify', []) | join('; ') }}; };
{%- endif %}
{%- if args['type'] == "master" -%} {%- if args['type'] == "master" -%}
{% if args['notify'] %} {% if args['notify'] %}
notify yes; notify yes;

View file

@ -22,6 +22,9 @@ zone "{{ key }}" {
}; };
{% else -%} {% else -%}
file "data/{{ file }}"; file "data/{{ file }}";
{%- if args['also-notify'] is defined %}
also-notify { {{ args.get('also-notify', []) | join('; ') }}; };
{%- endif %}
{% if args['type'] == "master" -%} {% if args['type'] == "master" -%}
{% if args['notify'] -%} {% if args['notify'] -%}
notify yes; notify yes;

View file

@ -35,6 +35,9 @@ bind:
sub.domain.com: sub.domain.com:
type: master type: master
notify: False notify: False
also-notify:
- 1.1.1.1
- 2.2.2.2
1.168.192.in-addr.arpa: 1.168.192.in-addr.arpa:
type: master type: master
notify: False notify: False