Username: Password:

bind9的安装指南
来源: ChinaUnix博客  作者: ChinaUnix博客   发布时间:2007-01-01 16:02:00

参考了cu上众多网友的铁子,才把bind9安装成功,发现他们都缺少了好几个符号,导致我开始一致没法安装成功,后来自己参照webmin在里面有加入了mx纪录,今天把这个过程写在这里:
0. 网卡地址192.168.1.198
  A 纪录
www.test.com.cn
192.168.1.198
      
ftp.test.com.cn
192.168.1.198
       test.com.cn 192.168.1.198
  MX纪录 test.com.cn
尤其注意:严格按照格式写,符号不能多也不能少,否则无法成功,bind的日志在/var/named/log/bindall.log中,能够看里面的提示,哪里出现了问题;
1.从
http://www.isc.org/products/BIND/
下载bind9的源文档。我下载的是9.2.5
2.将源文档bind-9.2.5.tar.gz置于/home/bind9目录下。
3.解压缩源文档bind-9.2.5.tar.gz
  # tar -xzvf bind-9.2.5.tar.gz
4.进入安装目录
  # cd bind-9.2.5
5.配置、编译
  # ./configure
  # make
6.安装
  # make install
7.生成的可执行文档位于/usr/local/sbin目录下,用到的文档名为named、rndc;
8.生成rndc控制命令的key文档
# /usr/local/sbin/rndc-confgen > etc/rndc.conf  
9.创建rndc.key文档,
  #cat rndc.conf > rndc.key
  按照rndc.key文档的提示,能够将文档的前面部分删除,留下文档后面部分中的注释部分,同时将注释符去掉即可,如下:
key "rndc-key" {                                         
             algorithm hmac-md5;                                
             secret "y9xvvfQjdWv9f/Fo7wquBg==";                 
       };                                                      
                                                               
       controls {                                               
             inet 127.0.0.1 port 953                           
                     allow { 127.0.0.1; } keys { "rndc-key"; };
       };
10. 建立/etc/name.conf文档
options {
        directory "/var/named";
        listen-on ;
        };
logging {
        channel syslog_info{
                file "/var/named/log/bindall.log"  versions 20 size 2m;
                print-category yes;
                print-time yes;
                severity notice;
                           };
category default {
                  syslog_info;
                 };
        };
zone "." IN {
            type hint;
            file "named.root";
            };
zone "localhost" IN {
                    type master;
                    file "localhost.zone";
                    allow-update { none; };
                    };
zone "0.0.127.in-addr.arpa" IN {
                               type master;
                               file "named.local";
                               allow-update { none; };
                               };


喜欢本文,那就收藏到:

    Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网
相关评论  我也要评论
还没有关于此文章的相关评论!
  • 昵称: (为空则显示guest)
  • 评论分数: ★ ★ ★★★ ★★★★ ★★★★★
  • 评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
  • 导航
    赞助商
    文章类别
    订阅