Linux下DNS服务器搭建详解(8)
来源:未知 责任编辑:责任编辑 发表时间:2014-01-25 11:37 点击:次
IN NS ns2.a.org.
72 IN PTR ns1.a.org.
71 IN PTR ns2.a.org.
73 IN PTR www.a.org.
74 IN PTR ftp.a.org.
从DNS服务器配置
1.安装bind包
yum install bind
2.复制named.conf、localhost.zone和named.local到本地对应目录
scp 192.168.0.72:/etc/named.conf /etc/named.conf
scp 192.168.0.72:/var/bind/localhost.zone /var/bind/localhost.zone
scp 192.168.0.72:/var/bind/named.local /var/bind/named.local
3.修改主配置文件/etc/named.conf
options {
directory "/var/named";
};
zone “.” IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
};
zone "a.org." IN {
type slave; #声明从服务器
file "slaves/a.org.zone"; #同步文件保存路径
masters { 192.168.0.72; }; #主服务器ip
};
zone "168.192.in-addr.arpa" IN {
type slave;
相关新闻>>
- 发表评论
-
- 最新评论 更多>>