From 6236ad716778d9506d734b9c88962bdcbb01a673 Mon Sep 17 00:00:00 2001 From: Tom Ford Date: Wed, 29 Jun 2016 16:31:32 +0100 Subject: [PATCH] Allow 'explicit' zone notification Allow the 'explicit' value of a zones notify config to be set as well as yes/no. --- templates/zone.conf.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/zone.conf.erb b/templates/zone.conf.erb index aabeea2..ea63830 100644 --- a/templates/zone.conf.erb +++ b/templates/zone.conf.erb @@ -14,7 +14,11 @@ zone "<%= @_domain %>" { file "<%= @cachedir %>/<%= @name %>/<%= @zone_file %>"; <%- end -%> <%- if %w(master slave).include? @zone_type -%> + <%- if (@ns_notify == 'explicit') -%> + notify explicit; + <%- else -%> notify <%= @ns_notify ? 'yes' : 'no' %>; + <%- end -%> <%- end -%> <%- if @also_notify and @also_notify != '' -%> also-notify {