在官方說明文件的第三章中的Tools for use with the name server daemon
有提到rndc這個指令~
The remote name daemon control
(rndc) program allows the
system
administrator to control the operation of a name server.
也就是允許遠端控制DNS Server 啦~
那要如何實作…總不可能讓隨便任何一台主機都能控制DNS Server吧…
來看吧…~基本上這個也不難
@DNS Server(OpenSuSE11.1 32Bits 192.168.148.129)
#cat /etc/rndc.key
#rndc-confgen -a
重新產生rndc.key…前後可用cat指令觀察內容變化~
#cat /etc/rndc.key
key "rndc-key" {
algorithm hmac-md5;
secret "dhvS0tzh2QhK0GpWouix2A==";
};
#rndc-confgen > /etc/rndc.conf
產生/etc/rndc.conf 檔案
#cat /etc/rndc.key >> /etc/rndc.conf
將rndc.key的內容附加到rndc.conf後面…根據rndc.conf內容的註解~有一些地方要修改~





