首 页 教育新闻课件中心论文中心教学教案试题中心语文专题综合下载技术教程公务员  
设为首页
加入收藏
联系我们
您当前的位置:中国教育资源网 -> 技术教程 -> 网络相关 -> 服务器 -> 域名服务器 -> 技术内容 退出登录 用户管理

Linux环境下bind9.2.3域名服务器的安装域名服务器教程

论文作者:佚名  论文来源:不详  论文发布时间:2006-6-19 17:57:29  论文发布人:chjchjchj

减小字体 增大字体

              摘要:Linux环境下bind9.2.3域名服务器的安装
这是我在Linux环境下bind9.2.3域名服务器的安装过程
参考了CU上一些贴子
主要测试通过的环境有RH8,RH9,RH as3,RH as3up3,Suse

1.从http://www.isc.org/products/BIND/bind9.html下载bind9的源文件。目前版本为9 .23,源文件为bind-9.2.3.tar.gz。
2.将源文件bind-9.2.3.tar.gz置于/usr/local/src目录下。
3.解压缩源文件bind-9.2.3.tar.gz
  # tar -xzvf bind-9.2.3.tar.gz -C /usr/local/src
4.进入安装目录
  # cd bind-9.2.3
5.配置、编译
  # ./configure
  # make
6.安装
  # make install
7.生成的可执行文件位于/usr/local/sbin目录下。最重要的可执行文件为named和rndc。
8.创建链接
  # ln -s /usr/local/sbin/rndc /usr/sbin/rndc
  # ln -s /usr/local/sbin/named /usr/sbin/named
9.创建rndc.conf配置文件。
  # /usr/local/sbin/rndc-confgen > /etc/rndc.conf
  # cat /etc/rndc.conf
  输出为:
       # Start of rndc.conf
       key "rndc-key" {
              algorithm hmac-md5;
              secret "y9xvvfQjdWv9f/Fo7wquBg==";
       };
       
       options {
              default-key "rndc-key";
              default-server 127.0.0.1;
              default-port 953;
       };
       # End of rndc.conf
      
       # Use with the following in named.conf, adjusting the allow list as needed:
       # 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"; };
       # };
       # End of named.conf
10.创建rndc.key文件。将rndc.conf文件中注释部分拷贝生成如下文件:
   # vi /etc/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"; };
       };
   检查rndc是否正常工作:
   #/usr/local/sbin/named -g
 Jan 11 11:56:45.075 starting BIND 9.2.3 -g
 Jan 11 11:56:45.076 using 1 CPU
 Jan 11 11:56:45.079 loading configuration from '/etc/named.conf'
 ......
   #/usr/local/sbin/rndc status
11.创建named.conf配置文件。
   # vi /etc/named.conf
       // generated by named-bootconf.pl                           

       options {
       directory "/var/named";
       /*
       * If there is a firewall between you and nameservers you want
       * to talk to, you might need to uncomment the query-source
       * directive below.  Previous versions of BIND always asked  
       * questions using port 53, but BIND 8.1 uses an unprivileged
       * port by default.
       */
       // query-source address * port 53;
       };

       //
       // a caching only nameserver config
       //
       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; };
       };

       zone "domain1.net" IN {    //新加domain1.net的域
              type master;
              file "domain1.net.zone";
              allow-update { none; };
       };

       zone "252.177.61.in-addr.arpa" IN {  //新加域的反向解析
              type master;
              file "named.61.177.252";
              allow-update { none; };
       };

       include "/etc/rndc.key";
12.创建/var/named目录
   # mkdir /var/named
   # cd /var/named
13.匿名登录到ftp站点FTP.RS.INTERNIC.NET,获取/domain目录下的named.root文件和named.ca文件,将该文件置于/var/named目录下。
14.创建localhost.zone文件
   # vi /var/named/localhost.zone

[] [返回上一页] [打 印] [收 藏]  
 ∷相关技术评论  (评论内容只代表网友观点,与本站立场无关!) [查看发表评论...]
 
 中国教育资源网免费技术教程下载中心-站内广告 站内广告 中国教育资源网免费技术教程下载中心-站内广告 
 中国教育资源网站内搜索 站内搜索 中国教育资源网站内搜索 
 

   
 中国教育资源网免费技术教程下载中心-栏目导航 栏目导航 中国教育资源网免费技术教程下载中心-栏目导航 
· Windows 9XMEXP · Windows NT20002003
· LinuxBSD · 系统综合
· IISApache · 硬件技术
· Web服务器 · FTP服务器
· 邮件服务器 · 域名服务器
· Windows服务器 · 代理服务器
· 服务器综合
 
中国教育资源网免费技术教程下载中心-相关教程  相关技术 中国教育资源网免费技术教程下载中心-相关教程
· 手把手教你装Linux系
· [组图] Linux最新版本抢鲜体
· Linux与Windows硬盘
· 找回Linux超级用户r
· [图文] 实现Linux与windows
· Linux与Windows谁更
· [组图] 怎样让你的Linux使用
· 让你的Linux用起来跟
· Win XP和 RedHat Li
· 如何在Linux环境模拟
 中国教育资源网免费技术教程下载中心-本月热门教程 本月热门 中国教育资源网免费技术教程下载中心-本月热门教程 
 
 中国教育资源网免费技术教程下载中心-本日热门论文 本日热门 中国教育资源网免费技术教程下载中心-本日热门论文 
 
关于本站 - 网站帮助 - 免费课件 - 美容 - 绿色软件 - 软件下载 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 网站留言
浙ICP备06010405号 Email:cnkjz@163.com 技术支持:名流设计
版权所有 Copyright© 2002-2004 名流