六、检查配置文件以及正反向区域文件是否错误
# named-checkconf
# named-checkzone "88181.com" /var/named/88181.com
# named-checkzone "13.16.172.in-addr.arpa" /var/named/172.16.13.zone
七、重启或重读dns服务器
# service named restart|reload
在从服务器上的配置:(安装bind97,删除原有的bind软件包)
一、创建主配置文件,并编辑
options {
directory "/var/named";
allow-recursion { 172.16.0.0/16; };
};
zone "." {
type hint;
file "named.ca";
};
zone "localhost" {
type master;
file "named.localhost";
allow-transfer { none; };
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.loopback";
masters { 172.16.13.1; };
allow-transfer { 172.16.13.2; };
};
zone "88181.com" {
type slave; # 文件类型为从区域:slave
file "slaves/88181.com.zone"; # 区域数据文件在/var/named/slaves下
masters { 172.16.13.1; }; # 指定主服务器
allow-transfer { 172.16.13.2; };
};
zone "13.16.172.in-addr.arpa" {
type slave;
file "slaves/172.16.13.zone";
masters { 172.16.13.1; };
allow-transfer { 172.16.13.2; };
};
修改其权限及属组,关闭SElinux。检查主配置文件是否有语法错误。