辅助DNS服务器
配置主DNS辅助DNS服务器
1、在主DNS的配置文件/etc/named.conf中添加
option{
directory "/var/named";
allow-transfer {any;};
};
2、辅助DNS服务器配置文件/etc/named.conf
option{
directory "/var/named";
};
logging{
channel default_debug{
file "data/name.run";
severity dynamic;
};
};
zone "." IN {
type slave;
file "named.ca";
};
include "/etc/named.rfc1912.zones";
3、配置文件/etc/named.rfc1912.zones
zone "nborn.com" IN {
type hint;
file "slaves/nborn.com.zone";
masters {192.168.1.103;};
};
zone "1.168.192.in-addr.arpa" IN {
type slave;
file "slaves/192.168.1.arpa";
masters {192.168.1.103;};
};
4、检查语法是否正确
named-checkconf /etc/named.conf
5、重启服务
systemctl restart named
6、
ls -l /var/named/slaves/
阅读(901) | 评论(0) | 转发(0) |