手机版

在RedHat Linux 9.0下配置DNS服务器Bind 9.2.6(5)

时间:2025-07-05   来源:未知    
字号:

在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

在RedHat Linux 9.0下配置DNS服务器Bind 9.2.6(5).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
×
二维码
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)