File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,12 @@ zone "{{ key }}" {
46
46
inline-signing yes;
47
47
{% - endif %}
48
48
{% - if args ['allow-update' ] is defined %}
49
- allow-update { {{ args['allow-update'] }}; };
49
+ {% - if args ['allow-update' ] is string %}
50
+ {% - set allow_update = [args ['allow-update' ]] %}
51
+ {% - else %}
52
+ {% - set allow_update = args ['allow-update' ] %}
53
+ {% - endif %}
54
+ allow-update { {{ allow_update | join('; ') }}; };
50
55
{% - endif %}
51
56
{% - if args .update_policy is defined %}
52
57
update-policy {
Original file line number Diff line number Diff line change @@ -261,7 +261,9 @@ bind:
261
261
262
262
dynamic.domain.com : # Our ddns zone
263
263
type : master # As above
264
- allow-update : " key core_dhcp" # Who we allow updates from (refers to above key)
264
+ allow-update :
265
+ - " key core_dhcp" # Who we allow updates, could be a string or an array
266
+ - " key other_dhcp"
265
267
notify : true # Notify NS RRs of changes
266
268
267
269
sub.anotherdomain.com : # Another domain zone
You can’t perform that action at this time.
0 commit comments