From 015f7174cc49743e17d11c299187945fea0eb7a2 Mon Sep 17 00:00:00 2001 From: Trevor Smith Date: Thu, 19 Mar 2015 13:39:04 -0400 Subject: [PATCH] add logic to prevent the notify option being included in the zone file for stub zones --- templates/zone.conf.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/zone.conf.erb b/templates/zone.conf.erb index 207bf68..9c44b41 100644 --- a/templates/zone.conf.erb +++ b/templates/zone.conf.erb @@ -14,6 +14,7 @@ zone "<%= @_domain %>" { <%- else -%> file "<%= @cachedir %>/<%= @name %>/<%= @_domain %>"; <%- end -%> +<%- unless @zone_type == 'stub' -%> notify <%= @ns_notify ? 'yes' : 'no' %>; <%- if @also_notify and @also_notify != '' -%> also-notify {