在RedHat Linux 9.0下配置DNS服务器Bind 9.2.6(5)
时间:2025-04-19
时间:2025-04-19
在RedHat Linux 9.0下配置DNS服务器Bind 9.2.6
};
key "rndc-key" { algorithm hmac-md5;
secret "6wVd+yM4v80YJuIdp0o+vg=="; };
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; }; };
检查并重新启动named服务,查看日志文件并检查rndc访问状态 # ps -axu|grep named # killall named # ps -axu|grep named # named
# ps -axu|grep named # tail /var/log/messages # rndc status number of zones: 2 debug level: 0 xfers running: 0 xfers deferred: 0
soa queries in progress: 0 query logging is OFF server is up and running
修改/etc/resolv.conf,并使用host命令测试
# echo "nameserver 127.0.0.1" >/etc/resolv.conf # host www.blueberry.tw
www.blueberry.tw has address 222.73.5.135
配置localhost的正向区域
修改/etc/bind/named.conf,插入如下内容 zone "localhost" { type master; file "db.local"; };
配置 /var/bind/db.local
下一篇:中图版八年级地理下册教案