在linux系統下安裝DNS域名解析服務
步驟如下:
1>查看掛在鏡像位置

2>查看光盤是否掛載

3>查看需要掛在的位置

4>進行掛載
[root@localhost mnt]# mount /dev/sr0 /mnt

5>進入掛載的文件夾進行安裝

使用rpm命令過濾已bind開頭的軟件

安裝以bind開頭的軟件

過濾以bind開頭的軟件

注:默認已安裝bind-utils和bind-libs,所以只需要安裝bind和bind-chroot。
6>配置DNS的地址

7>修改主配置文件

配置正向查找區域

配置反向查找區域

8>修改區域解析文件
[root@localhost /]# cd /var/named[root@localhost named]# ls -lh總用量 40Kdrwxr-x---. 6 root named 4.0K 3月 17 14:17 chrootdrwxrwx---. 2 named named 4.0K 4月 1415:11 datadrwxrwx---. 2 named named 4.0K 4月 1415:37 dynamic-rw-r-----. 1 root named 1.9K 2月 18 2008 named.ca-rw-r-----. 1 root named 152 12月 15 2009 named.empty-rw-r-----. 1 root named 152 6月 212007 named.localhost-rw-r-----. 1 root named 168 12月 15 2009 named.loopbackdrwxrwx---. 2 named named 4.0K 8月 142013 slaves [root@localhost named]# cp -p named.localhostbenet.com.zone[root@localhost named]# cp -p named.localback benet.com.none 注:-p是指保持原來的屬性。


9>啟動named服務
[root@localhost named]# service named start啟動 named:named:正在運行 [確定] 可以啟動,說明可以運行DNS服務。
使用nslookup驗證解析(也可使用host進行解析):


本文出自 “小阿瑞的博客” 博客,請務必保留此出處http://980926.blog.51cto.com/11458310/1771233