|
这是我的RNDC.KEY
# Use with the following in named.conf, adjusting the allow list as needed:
key "rndc-key" {
algorithm hmac-md5;
secret "cRrZrT6Y4SiM96wKJc9MUA==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
# End of named.conf
这是我的RNDC.CONF
# Start of rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "d+9EGWNww+yZli6amQnRFw==";
};
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
根据书上无KEY文件时的提示,我用 rndc-confgen后再用rndc status 就出现了
rndc: connection to remote host closed
This may indicate that the remote server is using an older version of
the command protocol, this host is not authorized to connect,
or the key is invalid.
还有NAMED一定要用KILL才能关闭了 ,唉 |
|