2013年4月2日星期二

There is one software, that install once and used forever Bind9

# Install
yum install bind bind-chroot bind-libs bind-utils

# Check if the named.conf is ok
named-checkconf -t /var/named/chroot /etc/named.conf

# Check if the zone file is ok
named-checkzone nixcraft.com /var/named/zone.nixcraft.com

# A problem

# 因为 ns1 在同一个zone里面有 CNAME 和 A 两条记录
[root@a named.bak20130315.asd]# named-checkzone test.com named.test.com
dns_master_load: named.test.com:32: ns1.test.com: CNAME and other data
zone test.com/IN: loading from master file named.test.com failed: CNAME and other data
zone test.com/IN: not loaded due to errors.
// At this probem resolv time, I used half and half part and part cut resolution, first, you cut one part from the file , and see if the named can work ok, if ok , then the error must in the cut part, else in the file, and at last, you can identify the error location.

没有评论:

发表评论