2022年Linux环境下bind..域名服务器的安装 .pdf





《2022年Linux环境下bind..域名服务器的安装 .pdf》由会员分享,可在线阅读,更多相关《2022年Linux环境下bind..域名服务器的安装 .pdf(7页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、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.ta
2、r.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/r
3、ndc.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 y9
4、xvvfQjdWv9f/Fo7wquBg=;名师资料总结-精品资料欢迎下载-名师精心整理-第 1 页,共 7 页 -#;#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 95
5、3 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-b
6、ootconf.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-so
7、urce address*port 53;/a caching only nameserver config /名师资料总结-精品资料欢迎下载-名师精心整理-第 2 页,共 7 页 -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 IN /新加 的域 type master;fil
8、e .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.创建 localhos
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022年Linux环境下bind.域名服务器的安装 2022 Linux 环境 bind 域名 服务器 安装

限制150内