diff --git a/bind/files/arch/named.conf.local b/bind/files/arch/named.conf.local index bddbd10..610b468 100644 --- a/bind/files/arch/named.conf.local +++ b/bind/files/arch/named.conf.local @@ -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; diff --git a/bind/files/debian/named.conf.local b/bind/files/debian/named.conf.local index 968af55..5f6ff5a 100644 --- a/bind/files/debian/named.conf.local +++ b/bind/files/debian/named.conf.local @@ -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; diff --git a/bind/files/redhat/named.conf.local b/bind/files/redhat/named.conf.local index 52e8cad..f4a7128 100644 --- a/bind/files/redhat/named.conf.local +++ b/bind/files/redhat/named.conf.local @@ -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; diff --git a/pillar.example b/pillar.example index 23a41ea..f3984ff 100644 --- a/pillar.example +++ b/pillar.example @@ -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