首页 新闻 会员 周边

Linux下配置DNS服务器,报错“has no address records (A or AAAA)”,怎么解决,求大师指导

0
悬赏园豆:60 [待解决问题]
我搞不懂这段报错,怎么解决,您会吗?
May 16 04:47:57 localhost named: test.zone:8: NS record '192.168.9.159' appears to be an address
May 16 04:47:57 localhost named: zone test.com/IN: NS '192.168.9.159.test.com' has no address records (A or AAAA)
May 16 04:47:57 localhost named: zone test.com/IN: not loaded due to errors.
May 16 04:47:57 localhost named: _default/test.com/IN: bad zone
May 16 04:47:57 localhost named: zone 9.168.192.in-addr.arpa/IN: NS 'dns.test.com.9.168.192.in-addr.arpa' has no address records (A or AAAA)
May 16 04:47:57 localhost named: zone 9.168.192.in-addr.arpa/IN: not loaded due to errors.
May 16 04:47:57 localhost named: _default/9.168.192.in-addr.arpa/IN: bad zone
May 16 04:47:57 localhost named: zone localhost.localdomain/IN: loaded serial 0
May 16 04:47:57 localhost named: zone localhost/IN: loaded serial 0
May 16 04:47:57 localhost named: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
May 16 04:47:57 localhost named: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
May 16 04:47:57 localhost named: zone 0.in-addr.arpa/IN: loaded serial 0 
 
----------------
原帖由 Shell_2015 于 2015-5-16 22:38 发表 
has no address records?
你的DNS相关配置文件可否贴上来呢?
------
嗯,好的,马上。
rpm -qa|grep bind
,可见安装了如下rpm包,而配置文件,依次罗列其下,谢谢您了,热心人。


-----

gedit /etc/named.conf


//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
//    listen-on port 53 {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; };
    recursion yes;

    dnssec-enable yes;
    dnssec-validation yes;
    dnssec-lookaside auto;

    /* Path to ISC DLV key */
    bindkeys-file "/etc/named.iscdlv.key";

    managed-keys-directory "/var/named/dynamic";
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
    type hint;
    file "named.ca";
};
zone "test.com" IN {
    type master;
    file "test.zone";
    allow-update{none;};
};

//zone "test.com" IN {
//    type master;
//    file "test.com.zone";
//};

zone "9.168.192.in-addr.arpa" IN {
    type master;
    file "9.168.192.arpa";
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

-------------------------------------------
gedit /var/named/test.com.zone

$TTL 1D
test.com. IN SOA dns.test.com.    fed.test.com. (
                    0    ; serial
                    1D    ; refresh
                    1H    ; retry
                    1W    ; expire
                    3H )    ; minimum
test.com. IN NS    dns.test.com.
dns.test.com. IN A    192.168.9.159
www.test.com. IN A    192.168.9.156
bbs.test.com. IN A    192.168.9.156
ftp.test.com. IN A    192.168.9.157
test.com. IN MX    10 mail.test.com

----------------
gedit /var/named/9.168.192.arpa

$TTL 1D
@ IN SOA dns.test.com. admin.test.com. (
                    0    ; serial
                    1D    ; refresh
                    1H    ; retry
                    1W    ; expire
                    3H )    ; minimum
    IN NS dns.test.com
159 IN PTR dns.test.com
156 IN PTR www.test.com
157 IN PTR ftp.test.com
平平淡淡才是真的主页 平平淡淡才是真 | 初学一级 | 园豆:142
提问于:2015-05-16 18:04
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册