Use an alternate name for the '.' zone

The root zone's domain is `.` but this means something special in the
filesystem which causes an error when creating the zone file.
This commit is contained in:
Nate Riffe
2015-12-28 07:31:01 -06:00
parent c024a7fc5d
commit 34478d25da
3 changed files with 19 additions and 9 deletions
+2 -2
View File
@@ -9,9 +9,9 @@ zone "<%= @_domain %>" {
<%- else -%>
key-directory "<%= @cachedir %>/<%= @name %>";
<%- end -%>
file "<%= @cachedir %>/<%= @name %>/<%= @_domain %>.signed";
file "<%= @cachedir %>/<%= @name %>/<%= @zone_file %>.signed";
<%- elsif %w(init managed allowed).include? @zone_file_mode -%>
file "<%= @cachedir %>/<%= @name %>/<%= @_domain %>";
file "<%= @cachedir %>/<%= @name %>/<%= @zone_file %>";
<%- end -%>
<%- if %w(master slave).include? @zone_type -%>
notify <%= @ns_notify ? 'yes' : 'no' %>;