在RedHat Linux 9.0下配置DNS服务器Bind 9.2.6(4)
时间:2025-04-19
时间:2025-04-19
在RedHat Linux 9.0下配置DNS服务器Bind 9.2.6
;; WHEN: Tue Oct 10 10:16:47 2006 ;; MSG SIZE rcvd: 436
配置rndc
# rndc-confgen >/etc/bind/rndc.conf # cat -n /etc/bind/rndc.conf
1 # Start of rndc.conf 2 key "rndc-key" { 3 algorithm hmac-md5;
4 secret "6wVd+yM4v80YJuIdp0o+vg=="; 5 }; 6
7 options {
8 default-key "rndc-key"; 9 default-server 127.0.0.1; 10 default-port 953; 11 };
12 # End of rndc.conf 13
14 # Use with the following in named.conf, adjusting the allow list as needed: 15 # key "rndc-key" { 16 # algorithm hmac-md5;
17 # secret "6wVd+yM4v80YJuIdp0o+vg=="; 18 # }; 19 #
20 # controls {
21 # inet 127.0.0.1 port 953
22 # allow { 127.0.0.1; } keys { "rndc-key"; }; 23 # };
24 # End of named.conf
将rndc中的部分记录导入到/etc/bind/named.conf文件中,并修改/etc/bind/named.conf,将导入的配置前面的注释去掉。
# tail +13 /etc/bind/rndc.conf>>/etc/bind/named.conf # cat /etc/bind/named.conf
options {
directory "/var/bind"; };
zone "." { type hint; file "named.ca";
下一篇:中图版八年级地理下册教案