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:
@@ -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 %>";
|
||||
|
||||
Reference in New Issue
Block a user