欢迎来到天天文库
浏览记录
ID:33565230
大小:67.93 KB
页数:10页
时间:2019-02-27
《dns服务器安装配置文档》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、DNS服务器安装配置记录!1!1.环境说明说明:主机IP地址安装的程序主DNS服务器132.37.4.177采用编译安装从DNS服务器132.37.4.133Yum安装测试服务器132.37.5.1962.编译安装配置DNS主服务器2.1.安装所需软件包wgctftp://ftp.isc.Org/isc/bind9/9.7.3/bind-9.7.3.tar.gztarzxvfbind_9・7.3・tar.gzcdbind~9.7.3•/configure--prefix=/usr/local/named--enable-threadsmakemakeinstall2.2.
2、创建rndc.conf文件,用bind自带程序生成cd/usr/local/named/usr/local/named/sbin/rndc-corogen>/usr/local/named/etc/rndc.conf2.3.把rndc.conf中的key信息输出到named.conf中cdetc/tail-10rndc.confIhead-9Ised-es/#//g>named.conf24修改named.conf文件Lroot@DnsMasteretc」#morenamed.confkeyMmdc-keyn{algorithmhmac-md5;secret”GEmI3
3、jnSB+BOTeOlgIHiQA==“;};controls{inet127.0.0.1port953allow{127.0.0.1;}keys{"mdc-kcy";};};//include,7etc/rndc.keyH;aclslave_servers{132.37.4.133;};options{listen-onport53{any;};//listen-on-v6port53{::1;};directoryn/usr/local/named/etc11;//dump-file”/vai7namcd/data/cachc_dump・db";//statistic
4、s-file,7var/named/data/named_stats.txtn;//memstatistics-file,7var/named/data/named_mem_stats.txtu;allow・query{any;};allow-transfer{slave_servers;);recursionyes;dnssec-enableyes;dnssec-validationno;dnssec-lookasideauto;//rate-limit{//qps-scale5000;//};forwarders{221.7」2&68;};/*PathtoISCDLV
5、key*///bindkeys-file'7etc/named.iscdlv.keyn;//managed-keys-directory,7var/named/dynamicH;logging{channeldefault_debug{fileHdata/named.run°;severitydynamic;zone罗IN{typehint;file"namcd.ca”;};include,7usr/IocaI/named/etc/named.rfc1912.zonesH;//includeu/etc/named.root.keyH;2.5创建localhostzonem
6、kdir/usr/local/namcd/var/namcdcd/usr/local/named/var/namedvimlocalhost.zone写入$TTL86400SORIGINlocalhost.@IDINSOA@root(42;serial(d.adams)3H;refresh15M;retry1W;expiryID);minimumIDINNS@IDINA127.0.0.12.6将跟服务器的信息导入到/usr/local/named/var/named/named.ca文件中dig-tNS・>/usr/local/named/var/named/named.
7、ca2.5创建文件named.localvimnamed.local$TTL60@INSOAlocalhost.rootJocalhost.(2011060500;Serial60;Refresh60;Retry60;Expire60);MinimumINNSlocalhost.1INPTRlocalhost・2.5创建zone$TTL86400@INSOAns.woego.cn.root・woego.cn.(42;serial(d.adams)仅作为序列号而已3H;refresh服务器的更新时间15M;retry重新更新时间
此文档下载收益归作者所有