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 -%}
file "{{ file }}";
{%- if args['also-notify'] is defined %}
also-notify { {{ args.get('also-notify', []) | join('; ') }}; };
{%- endif %}
{% if args['type'] == "master" -%}
{% if args['notify'] -%}
notify yes;

View file

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

View file

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

View file

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