Generate an rndc key, let BIND rest on defaults

In the absence of any 'controls' configuration, BIND uses the rndc.key file
containing a key named rndc-key for rndc by default. In this mode, there is
also no need for any explicit settings in rndc.conf.
This commit is contained in:
Nate Riffe
2015-01-18 10:31:12 -06:00
parent 9b1cbacee0
commit 01cb48191e
3 changed files with 11 additions and 14 deletions
-7
View File
@@ -2,13 +2,6 @@
include "<%= @confdir %>/acls.conf";
include "<%= @confdir %>/keys.conf";
include "<%= @confdir %>/views.conf";
<%- if @rndc -%>
include "<%= @confdir %>/rndc.key";
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc-key; };
};
<%- end -%>
options {
directory "<%= @cachedir %>";