日期:2011-06-18 22:52:00 来源:本站整理
CentOS系统DNS安装及配置[服务器安全]
本文“CentOS系统DNS安装及配置[服务器安全]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:
一:安装软件
yum -y install bind bind-chroot bind-libs bind-utils caching-nameserver
二:配置
cd /var/named/chroot/etc/
cp -p named.caching-nameserver.conf named.conf
options{
directory "/var/named/";
};
zone "test.com" IN{
type master;
file "test.com.zone";
};
zone "linux.com" IN{
type master;
file "linux.com.zone";
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "192.168.1.zone";
allow-update { none; };
};
cd /var/named/chroot/var/named/
cp -p localdomain.zone test.com.zone
cp -p localdomain.zone linux.com.zone
cp -p named.local 192.168.1.zone
#test.com.zone
$TTL 86400
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS @
IN A 127.0.0.1
IN AAAA ::1
wwwtest IN A 192.168.1.122
dnstest IN A 192.168.1.133
mytest3 IN A 192.168.1.144
#linux.com.zone
$TTL 86400
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS @
IN A 127.0.0.1
IN AAAA ::1
wwwtest IN A 192.168.1.123
dnstest IN A 192.168.1.134
mytest3 IN A 192.168.1.145
#192.168.1.zone
$TTL 86400
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS @
IN A 127.0.0.1
IN AAAA ::1
192.168.1.123 IN A wwwtest
192.168.1.134 IN A dnstest
192.168.1.145 IN A mytest3
二:重新启动named服务
service named restart
以上是“CentOS系统DNS安装及配置[服务器安全]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:本文地址: | 与您的QQ/BBS好友分享! |
评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)
查看完整评论