diff --git a/bind/files/debian/named.conf.local b/bind/files/debian/named.conf.local index ba58855..bdc3cee 100644 --- a/bind/files/debian/named.conf.local +++ b/bind/files/debian/named.conf.local @@ -25,6 +25,11 @@ zone "{{ key }}" { {%- endfor %} }; {%- endif %} + allow-transfer { + {% for remote in args.get('allow-transfer', {}) %} + {{ remote }}; + {% endfor %} + }; {% if args['type'] == "master" -%} {% if args['notify'] -%} notify yes; diff --git a/pillar.example b/pillar.example index 2d322db..0e7e7b6 100644 --- a/pillar.example +++ b/pillar.example @@ -25,6 +25,9 @@ bind: 1.168.192.in-addr.arpa: type: master notify: False + allow-transfer: + - 1.1.1.1 + - 2.2.2.2 dynamic.domain.com: type: master allow-update: "key core_dhcp"