vim /etc/named.rfc1912.zone
zone "benet.com" IN {
type master;#类型为主区域
file "benet.com.zone";
allow-transfer {
192.168.80.11;};#允许"从服务器"下载正向区域数据,这里添"从服务器"的IP地址};
zone "80.168.192.in-addr.arpa" IN {
type master;
file "benet.com.zone. local"
allow-transfer ( 192.168.80.11;);};
(二)修改从域名服务器的主配置文件
yum install -y bind
vim /etc/named.conf
options {
listen-on port 53 {
192.168.80.11;};#监听53端口, ip地址使用提供服务的本地IP即可,也可用any代表所有# listen-on-v6 port 53 {::1; };
directory "/var/named";
dump-file "/var/named/data/cache dump.db";
statistics-file "/var/named/data/named stats.txt";
memstatistics-file "/var/named/data/named mem stats.txt";
allow-query {
any;};#充许使用本DNS解析服务的网段,也可用any代表所有..