需求
1、创建一个主 DNS 反向区域服务器 2、创建正向区域记录中对应的反向指针记录
环境情况
1. 操作系统:red hat as 4.0 2. 服务器软件包: bind-9.2.4-2.i386.rpm bind-libs-9.2.4-2.i386.rpm bind-devel-9.2.4-2.i386.rpm bind-utils-9.2.4-2.i386.rpm bind-chroot-9.2.4-2.i386.rpm caching-nameserver-7.3-3.noarch.rpm
//安装DNS服务包,一定要按此顺序安装哈..
[root@localhost root]# rpm -ivh --force ftp://192.168.1.7/rpms/bind-9* Retrieving ftp://192.168.1.7/rpms/bind-9.2.4-2.i386.rpm warning: /var/tmp/rpm-xfer.UuC948: V3 DSA signature: NOKEY, key ID db42a60e Preparing... ########################################### [100%] 1:bind ########################################### [100%] [root@localhost root]# rpm -ivh --force ftp://192.168.1.7/rpms/bind-l* Retrieving ftp://192.168.1.7/rpms/bind-libs-9.2.4-2.i386.rpm warning: /var/tmp/rpm-xfer.6IfInr: V3 DSA signature: NOKEY, key ID db42a60e Preparing... ########################################### [100%] 1:bind-libs ########################################### [100%] [root@localhost root]# rpm -ivh --force ftp://192.168.1.7/rpms/bind-d* Retrieving ftp://192.168.1.7/rpms/bind-devel-9.2.4-2.i386.rpm warning: /var/tmp/rpm-xfer.DkKbw0: V3 DSA signature: NOKEY, key ID db42a60e Preparing... ########################################### [100%] 1:bind-devel ########################################### [100%] [root@localhost root]# rpm -ivh --force ftp://192.168.1.7/rpms/bind-u* Retrieving ftp://192.168.1.7/rpms/bind-utils-9.2.4-2.i386.rpm warning: /var/tmp/rpm-xfer.G38cQ4: V3 DSA signature: NOKEY, key ID db42a60e Preparing... ########################################### [100%] 1:bind-utils ########################################### [100%] [root@localhost root]# rpm -ivh --force ftp://192.168.1.7/rpms/bind-c* Retrieving ftp://192.168.1.7/rpms/bind-chroot-9.2.4-2.i386.rpm warning: /var/tmp/rpm-xfer.TAdJe4: V3 DSA signature: NOKEY, key ID db42a60e Preparing... ########################################### [100%] 1:bind-chroot ########################################### [100%] error: %post(bind-chroot-9.2.4-2) scriptlet failed, exit status 1 [root@localhost root]# rpm -ivh --force ftp://192.168.1.7/rpms/caching-n* Retrieving ftp://192.168.1.7/rpms/caching-nameserver-7.3-3.noarch.rpm warning: /var/tmp/rpm-xfer.8mWcJF: V3 DSA signature: NOKEY, key ID db42a60e Preparing... ########################################### [100%] 1:caching-nameserver warning: /etc/named.conf saved as /etc/named.conf.rpmsave ########################################### [100%]
//修改主配置文件
[root@localhost root]# vi /etc/named.conf }; zone "0.0.127.in-addr.arpa" IN { type master; file "named.local"; allow-update { none; }; }; zone "1.168.192.in-addr.arpa" IN { #加入的部分... type master; file "rev.flyshitou.com"; allow-update { none; }; };
//在/var/named目录下创建区域数据库文件rev.flyshitou.com,并加入相应记录..
[root@localhost named]# vi rev.flyshitou.com 86400 ) ; Minimum IN NS dns.flyshitou.com. 2 IN PTR www.flyshitou.com. 3 IN PTR www.flyshitou.com. 6 IN PTR ftp.flyshitou.com. 9 IN PTR mail.flyshitou.com. 78 IN PTR dns.flyshitou.com. ~
//启动DNS服务器,并测试启动是否成功..
[root@localhost named]# service named start 启动named£º [ 确定 ] [root@localhost named]# netstat -antp|grep :53 tcp 0 0 192.168.1.78:53 0.0.0.0:* LISTEN 1974/ tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1974/
ps:此帖绝对是本人原创... 转载时.. 请注明: 转至http://blog.csdn.net/Kipen/ 作者:flyshitou(石の頭丶) 请尊重他人的劳动果实.. 谢谢.. --by flyshitou (石の頭丶)