(1)将listen-onport53{127.0.0.1;};和allow-query{localhost;};这两行中括号内的值全部修改为any
.zone(要和主配置文件[/etc/named.rfc.zones]里面定义的zone文件名一致)
vi1.168.192.zone(要和主配置[/etc/named.rfc.zones]文件里面定义的zone文件名一致)
[root@RHEL6named]#named-checkconf/etc/named.conf[root@RHEL6named]#/var/named//IN:/MX'(outofzone)hasnoaddressesrecords(AorAAAA)/IN:loadedserial0OK
在启动DNS时出现Generating/etc/rndc.key:卡在这里了[root@RedHatnamed]#/etc/init.d/pingnamed:[OK]Generating/etc/rndc.key:^C[root@redhatnamed]#
解决方法:[root@redhatnamed]#rndc-confgen-r/dev/urandom-awrotekeyfile"/etc/rndc.key"[root@redhatnamed]#/etc/init.d/pingnamed:[OK]Startingnamed:[OK]