检查:
[root@]# named-checkzone linuxidc.com /var/named/linuxidc.com.zone
zone linuxidc.com/IN: loaded serial 42
OK
[root@]# named-checkzone linuxidc.com /var/named/1.1.1.zone
zone linuxidc.com/IN: loaded serial 1997022700
OK
如出错查看日志
[root@]# tail /var/log/messages | grep named
测试:
[root@]# nslookup ftp.linuxidc.com
Server: 1.1.1.10
Address: 1.1.1.10#53
Name: ftp.linuxidc.com
Address: 1.1.1.10
[root@]# nslookup localhost
Server: 1.1.1.10
Address: 1.1.1.10#53
Name: localhost
Address: 127.0.0.1
测试成功!!大功告成!!