免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1676 | 回复: 6

[DNS] 求教本地DNS服务器无法解析外部 域名 [复制链接]

论坛徽章:
0
发表于 2014-03-26 13:36 |显示全部楼层
参考坛子里的文章搭建了一个本地DNS服务器,本地域名可以解析到,外部域名(如www.baidu.com)解析不出来,求教是哪里配置问题?
[root@oas-scen ~]# ping oas.test.com
PING oas.test.com (192.168.99.119) 56(84) bytes of data.
64 bytes from oas-scen (192.168.99.119): icmp_seq=1 ttl=64 time=0.013 ms
64 bytes from oas-scen (192.168.99.119): icmp_seq=2 ttl=64 time=0.027 ms
64 bytes from oas-scen (192.168.99.119): icmp_seq=3 ttl=64 time=0.026 ms

--- oas.test.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.013/0.022/0.027/0.006 ms
[root@oas-scen ~]# ping www.baidu.com
ping: unknown host www.baidu.com


我的named.conf配置如下:
[root@oas-scen etc]# cat named.conf
//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named( DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
options {
        listen-on port 53 { any; };
        listen-on-v6 port 53 { ::1; };
        directory         "/var/named";
        pid-file          "named.pid";
        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";

        // Those options should be used carefully because they disable port
        // randomization
        // query-source    port 53;        
        // query-source-v6 port 53;

        allow-query     { any; };
};
logging {
        channel default_debug {
                file "/var/log/dns_logs";
                severity dynamic;
        };
};
view localhost_resolver {
        match-clients            { any; };
        match-destinations { any; };
        recursion yes;
        include "/etc/named.rfc1912.zones";
};

named.rfc1912.zones 配置如下:


[root@oas-scen etc]# cat named.rfc1912.zones
zone "." IN {
        type hint;
        file "named.root";
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.local";
        allow-update { none; };
};

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

zone "101.168.192.in-addr.arpa" IN {
        type master;
        file "oas.local";
        allow-update { none; };
};
zone "99.168.192.in-addr.arpa" IN {
        type master;
        file "oas.local2";
        allow-update { none; };
};

论坛徽章:
26
CU十二周年纪念徽章
日期:2013-10-24 15:41:34技术图书徽章
日期:2014-07-11 16:27:52辰龙
日期:2014-09-04 13:40:43白羊座
日期:2014-09-09 12:51:55双子座
日期:2014-09-26 11:00:042014年中国系统架构师大会
日期:2014-10-14 15:59:00子鼠
日期:2014-10-23 16:48:23巨蟹座
日期:2014-10-27 08:21:10申猴
日期:2014-12-08 10:16:282015年辞旧岁徽章
日期:2015-03-03 16:54:15NBA常规赛纪念章
日期:2015-05-04 22:32:03IT运维版块每日发帖之星
日期:2016-01-29 06:20:00
发表于 2014-03-26 13:57 |显示全部楼层
1、要能上网
2、要看防火墙有没有开通UDP 53口
3、看一下/var/log/message中有没有关于named的日志

论坛徽章:
0
发表于 2014-03-27 12:52 |显示全部楼层
能上网。奇怪它为什么没有向根域服务器递归到别的DNS服务器查询正确的域名返回给我?

在/etc/resolv.conf里加上nameserver 8.8.8.8 就能够解析出来,所以防火墙应该是通的。


/var/log/messages 和dns日志/var/log/dns_log 里都是空的(我清理过)没有新的日志产生。

论坛徽章:
0
发表于 2014-03-28 10:14 |显示全部楼层
求高手解惑!

论坛徽章:
0
发表于 2014-03-28 11:00 |显示全部楼层
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2b1ec3127d50(www.baidu.com/A'): finddone
fctx 0x2b1ec312c900(b.root-servers.net/A'): finddone
fctx 0x2b1ec312da80(b.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab36590(g.root-servers.net/A'): finddone
fctx 0x2aaaaab330d0(e.root-servers.net/AAAA'): doshutdown
fctx 0x2aaaaab330d0(e.root-servers.net/AAAA'): stopeverything
fctx 0x2aaaaab330d0(e.root-servers.net/AAAA'): cancelqueries
fctx 0x2aaaaab2fc30(d.root-servers.net/A'): finddone
fctx 0x2b1ec312a5e0(a.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2b1ec312b760(a.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab37710(g.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab30db0(d.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab31f50(e.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab388b0(h.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab3d0d0(i.root-servers.net/A'): finddone
fctx 0x2aaaaab39a30(h.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab330d0(e.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab3e250(i.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab3f3f0(j.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2b1ec312ec20(c.root-servers.net/A'): finddone
fctx 0x2aaaaab41710(k.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab2ea90(c.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab34270(f.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab40570(j.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab353f0(f.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab42890(k.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fetch 0x2aaaaab416f0 (fctx 0x2aaaaab41710(k.root-servers.net/A)): destroyfetch
fctx 0x2aaaaab41710(k.root-servers.net/A'): shutdown
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab44a30(l.root-servers.net/A'): finddone
fctx 0x2aaaaab45bb0(l.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab47d50(m.root-servers.net/A'): finddone
fctx 0x2aaaaab48ed0(m.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab41710(k.root-servers.net/A'): doshutdown
fctx 0x2aaaaab41710(k.root-servers.net/A'): stopeverything
fctx 0x2aaaaab41710(k.root-servers.net/A'): cancelqueries
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fetch 0x2aaaaab42870 (fctx 0x2aaaaab42890(k.root-servers.net/AAAA)): destroyfetch
fctx 0x2aaaaab42890(k.root-servers.net/AAAA'): shutdown
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab42890(k.root-servers.net/AAAA'): doshutdown
fctx 0x2b1ec3127d50(www.baidu.com/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab42890(k.root-servers.net/AAAA'): stopeverything
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fetch 0x2b1ec312ec00 (fctx 0x2b1ec312ec20(c.root-servers.net/A)): destroyfetch
fctx 0x2b1ec312ec20(c.root-servers.net/A'): shutdown
fctx 0x2aaaaab2fc30(d.root-servers.net/A'): finddone
fctx 0x2b1ec312a5e0(a.root-servers.net/A'): finddone
fctx 0x2b1ec312b760(a.root-servers.net/AAAA'): finddone
fctx 0x2b1ec312c900(b.root-servers.net/A'): finddone
fctx 0x2b1ec312da80(b.root-servers.net/AAAA'): finddone
fctx 0x2b1ec312ec20(c.root-servers.net/A'): finddone
fctx 0x2aaaaab2ea90(c.root-servers.net/AAAA'): finddone
fctx 0x2b1ec312ec20(c.root-servers.net/A'): doshutdown
fctx 0x2b1ec312ec20(c.root-servers.net/A'): stopeverything
fctx 0x2b1ec312ec20(c.root-servers.net/A'): cancelqueries
fctx 0x2aaaaab36590(g.root-servers.net/A'): finddone
fctx 0x2aaaaab30db0(d.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab31f50(e.root-servers.net/A'): finddone
fctx 0x2aaaaab330d0(e.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab37710(g.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab42890(k.root-servers.net/AAAA'): cancelqueries
fctx 0x2aaaaab41710(k.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab42890(k.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab34270(f.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab3d0d0(i.root-servers.net/A'): finddone
fctx 0x2aaaaab44a30(l.root-servers.net/A'): finddone
fctx 0x2aaaaab45bb0(l.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab353f0(f.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab47d50(m.root-servers.net/A'): finddone
fctx 0x2aaaaab48ed0(m.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab3e250(i.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab388b0(h.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab39a30(h.root-servers.net/AAAA'): finddone
fetch 0x2aaaaab2ea70 (fctx 0x2aaaaab2ea90(c.root-servers.net/AAAA)): destroyfetch
fctx 0x2aaaaab2ea90(c.root-servers.net/AAAA'): shutdown
fctx 0x2aaaaab3f3f0(j.root-servers.net/A'): finddone
fctx 0x2aaaaab2ea90(c.root-servers.net/AAAA'): doshutdown
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab40570(j.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2b1ec312a5e0(a.root-servers.net/A'): finddone
fctx 0x2aaaaab2ea90(c.root-servers.net/AAAA'): stopeverything
fctx 0x2b1ec3127d50(www.baidu.com/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab2ea90(c.root-servers.net/AAAA'): cancelqueries
fctx 0x2aaaaab2fc30(d.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2b1ec312c900(b.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab36590(g.root-servers.net/A'): finddone
fctx 0x2b1ec312da80(b.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab30db0(d.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab37710(g.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab31f50(e.root-servers.net/A'): finddone
fctx 0x2b1ec312b760(a.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab388b0(h.root-servers.net/A'): finddone
fctx 0x2b1ec312ec20(c.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab3d0d0(i.root-servers.net/A'): finddone
fctx 0x2aaaaab330d0(e.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab39a30(h.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab2ea90(c.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab3e250(i.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab3f3f0(j.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab34270(f.root-servers.net/A'): finddone
fctx 0x2aaaaab40570(j.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab41710(k.root-servers.net/A'): finddone
fctx 0x2aaaaab353f0(f.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab42890(k.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab44a30(l.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab45bb0(l.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab47d50(m.root-servers.net/A'): finddone
fctx 0x2aaaaab48ed0(m.root-servers.net/AAAA'): finddone
fetch 0x2aaaaab44a10 (fctx 0x2aaaaab44a30(l.root-servers.net/A)): destroyfetch
fctx 0x2aaaaab44a30(l.root-servers.net/A'): shutdown
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab44a30(l.root-servers.net/A'): doshutdown
fctx 0x2aaaaab44a30(l.root-servers.net/A'): stopeverything
fctx 0x2aaaaab44a30(l.root-servers.net/A'): cancelqueries
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fetch 0x2aaaaab34250 (fctx 0x2aaaaab34270(f.root-servers.net/A)): destroyfetch
fctx 0x2aaaaab34270(f.root-servers.net/A'): shutdown
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fetch 0x2aaaaab45b90 (fctx 0x2aaaaab45bb0(l.root-servers.net/AAAA)): destroyfetch
fctx 0x2aaaaab45bb0(l.root-servers.net/AAAA'): shutdown
fctx 0x2aaaaab34270(f.root-servers.net/A'): doshutdown
fctx 0x2aaaaab34270(f.root-servers.net/A'): stopeverything
fctx 0x2aaaaab34270(f.root-servers.net/A'): cancelqueries
fctx 0x2aaaaab45bb0(l.root-servers.net/AAAA'): doshutdown
fctx 0x2aaaaab45bb0(l.root-servers.net/AAAA'): stopeverything
fctx 0x2aaaaab45bb0(l.root-servers.net/AAAA'): cancelqueries
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2b1ec3127d50(www.baidu.com/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2b1ec312a5e0(a.root-servers.net/A'): finddone
fctx 0x2aaaaab2fc30(d.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2b1ec312c900(b.root-servers.net/A'): finddone
fctx 0x2aaaaab30db0(d.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab36590(g.root-servers.net/A'): finddone
fctx 0x2aaaaab37710(g.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab3d0d0(i.root-servers.net/A'): finddone
fctx 0x2b1ec312da80(b.root-servers.net/AAAA'): finddone
fctx 0x2b1ec312b760(a.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab388b0(h.root-servers.net/A'): finddone
fctx 0x2b1ec312ec20(c.root-servers.net/A'): finddone
fctx 0x2aaaaab31f50(e.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab39a30(h.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab3e250(i.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab2ea90(c.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab330d0(e.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab3f3f0(j.root-servers.net/A'): finddone
fctx 0x2aaaaab41710(k.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab34270(f.root-servers.net/A'): finddone
fctx 0x2aaaaab353f0(f.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab42890(k.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab44a30(l.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab40570(j.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab45bb0(l.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab47d50(m.root-servers.net/A'): finddone
fctx 0x2aaaaab48ed0(m.root-servers.net/AAAA'): finddone
fetch 0x2aaaaab47d30 (fctx 0x2aaaaab47d50(m.root-servers.net/A)): destroyfetch
fctx 0x2aaaaab47d50(m.root-servers.net/A'): shutdown
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fetch 0x2aaaaab353d0 (fctx 0x2aaaaab353f0(f.root-servers.net/AAAA)): destroyfetch
fctx 0x2aaaaab353f0(f.root-servers.net/AAAA'): shutdown
fctx 0x2aaaaab47d50(m.root-servers.net/A'): doshutdown
fctx 0x2aaaaab353f0(f.root-servers.net/AAAA'): doshutdown
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab47d50(m.root-servers.net/A'): stopeverything
fctx 0x2aaaaab47d50(m.root-servers.net/A'): cancelqueries
fctx 0x2b1ec3127d50(www.baidu.com/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2b1ec312a5e0(a.root-servers.net/A'): finddone
fctx 0x2b1ec312c900(b.root-servers.net/A'): finddone
fctx 0x2aaaaab353f0(f.root-servers.net/AAAA'): stopeverything
fctx 0x2aaaaab353f0(f.root-servers.net/AAAA'): cancelqueries
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab2fc30(d.root-servers.net/A'): finddone
fctx 0x2aaaaab36590(g.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab30db0(d.root-servers.net/AAAA'): finddone
fctx 0x2b1ec312da80(b.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2b1ec312b760(a.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab37710(g.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab31f50(e.root-servers.net/A'): finddone
fctx 0x2aaaaab388b0(h.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab3d0d0(i.root-servers.net/A'): finddone
fctx 0x2aaaaab3e250(i.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2b1ec312ec20(c.root-servers.net/A'): finddone
fctx 0x2aaaaab39a30(h.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab330d0(e.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab2ea90(c.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab34270(f.root-servers.net/A'): finddone
fctx 0x2aaaaab41710(k.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab3f3f0(j.root-servers.net/A'): finddone
fctx 0x2aaaaab353f0(f.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab42890(k.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab44a30(l.root-servers.net/A'): finddone
fetch 0x2aaaaab48eb0 (fctx 0x2aaaaab48ed0(m.root-servers.net/AAAA)): destroyfetch
fctx 0x2aaaaab48ed0(m.root-servers.net/AAAA'): shutdown
fctx 0x2aaaaab45bb0(l.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab40570(j.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab47d50(m.root-servers.net/A'): finddone
fctx 0x2aaaaab48ed0(m.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab48ed0(m.root-servers.net/AAAA'): doshutdown
fctx 0x2aaaaab48ed0(m.root-servers.net/AAAA'): stopeverything
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab2fc30(d.root-servers.net/A'): finddone
fctx 0x2aaaaab2fc30(d.root-servers.net/A'): destroy
fctx 0x2b1ec3127d50(www.baidu.com/A'): finddone
fctx 0x2b1ec3127d50(www.baidu.com/A'): destroy
fctx 0x2b1ec312a5e0(a.root-servers.net/A'): finddone
fctx 0x2b1ec312a5e0(a.root-servers.net/A'): destroy
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab48ed0(m.root-servers.net/AAAA'): cancelqueries
fctx 0x2aaaaab30db0(d.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab30db0(d.root-servers.net/AAAA'): destroy
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2b1ec312c900(b.root-servers.net/A'): finddone
fctx 0x2aaaaab36590(g.root-servers.net/A'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2b1ec312c900(b.root-servers.net/A'): destroy
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2b1ec312da80(b.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab36590(g.root-servers.net/A'): destroy
fctx 0x2b1ec312b760(a.root-servers.net/AAAA'): finddone
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab37710(g.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab37710(g.root-servers.net/AAAA'): destroy
fctx 0x2b1ec312da80(b.root-servers.net/AAAA'): destroy
fctx 0x2b1ec312ec20(c.root-servers.net/A'): finddone
fctx 0x2b1ec312ec20(c.root-servers.net/A'): destroy
fctx 0x2aaaaab3d0d0(i.root-servers.net/A'): finddone
fctx 0x2aaaaab3d0d0(i.root-servers.net/A'): destroy
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
DNS_EVENT_ADBNOMOREADDRESSES
fctx 0x2aaaaab3e250(i.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab3e250(i.root-servers.net/AAAA'): destroy
fctx 0x2aaaaab3f3f0(j.root-servers.net/A'): finddone
fctx 0x2aaaaab3f3f0(j.root-servers.net/A'): destroy
fctx 0x2aaaaab40570(j.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab40570(j.root-servers.net/AAAA'): destroy
fctx 0x2aaaaab2ea90(c.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab2ea90(c.root-servers.net/AAAA'): destroy
fctx 0x2aaaaab41710(k.root-servers.net/A'): finddone
fctx 0x2aaaaab41710(k.root-servers.net/A'): destroy
fctx 0x2aaaaab42890(k.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab42890(k.root-servers.net/AAAA'): destroy
fctx 0x2aaaaab44a30(l.root-servers.net/A'): finddone
fctx 0x2aaaaab44a30(l.root-servers.net/A'): destroy
fctx 0x2aaaaab45bb0(l.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab45bb0(l.root-servers.net/AAAA'): destroy
fctx 0x2aaaaab47d50(m.root-servers.net/A'): finddone
fctx 0x2aaaaab47d50(m.root-servers.net/A'): destroy
fctx 0x2aaaaab48ed0(m.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab48ed0(m.root-servers.net/AAAA'): destroy
fctx 0x2aaaaab31f50(e.root-servers.net/A'): finddone
fctx 0x2aaaaab31f50(e.root-servers.net/A'): destroy
fctx 0x2aaaaab388b0(h.root-servers.net/A'): finddone
fctx 0x2aaaaab388b0(h.root-servers.net/A'): destroy
fctx 0x2b1ec312b760(a.root-servers.net/AAAA'): destroy
fctx 0x2aaaaab330d0(e.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab330d0(e.root-servers.net/AAAA'): destroy
fctx 0x2aaaaab39a30(h.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab39a30(h.root-servers.net/AAAA'): destroy
fctx 0x2aaaaab34270(f.root-servers.net/A'): finddone
fctx 0x2aaaaab34270(f.root-servers.net/A'): destroy
fctx 0x2aaaaab353f0(f.root-servers.net/AAAA'): finddone
fctx 0x2aaaaab353f0(f.root-servers.net/AAAA'): destroy

论坛徽章:
26
CU十二周年纪念徽章
日期:2013-10-24 15:41:34技术图书徽章
日期:2014-07-11 16:27:52辰龙
日期:2014-09-04 13:40:43白羊座
日期:2014-09-09 12:51:55双子座
日期:2014-09-26 11:00:042014年中国系统架构师大会
日期:2014-10-14 15:59:00子鼠
日期:2014-10-23 16:48:23巨蟹座
日期:2014-10-27 08:21:10申猴
日期:2014-12-08 10:16:282015年辞旧岁徽章
日期:2015-03-03 16:54:15NBA常规赛纪念章
日期:2015-05-04 22:32:03IT运维版块每日发帖之星
日期:2016-01-29 06:20:00
发表于 2014-03-28 11:05 |显示全部楼层
在本服务器上测试

你重启下named服务,就会产生新的日志

你ping一下外网的IP看看。

用dig看看

论坛徽章:
0
发表于 2014-03-28 13:55 |显示全部楼层
嗯,多谢,问题找到啦,是根域服务器配置问题,原来named.root是用dig >named.root得到的,DNS为8.8.8.8 ,得到的named.root没有根域服务器的IP地址:
[root@oas-scen ~]# dig

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.6 <<>>
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31258
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;.                              IN      NS

;; ANSWER SECTION:
.                       12471   IN      NS      l.root-servers.net.
.                       12471   IN      NS      h.root-servers.net.
.                       12471   IN      NS      d.root-servers.net.
.                       12471   IN      NS      b.root-servers.net.
.                       12471   IN      NS      i.root-servers.net.
.                       12471   IN      NS      f.root-servers.net.
.                       12471   IN      NS      m.root-servers.net.
.                       12471   IN      NS      c.root-servers.net.
.                       12471   IN      NS      j.root-servers.net.
.                       12471   IN      NS      e.root-servers.net.
.                       12471   IN      NS      g.root-servers.net.
.                       12471   IN      NS      a.root-servers.net.
.                       12471   IN      NS      k.root-servers.net.

;; Query time: 233 msec
;; SERVER: 8.8.8.8#53(8.8.8.
;; WHEN: Fri Mar 28 13:36:05 2014
;; MSG SIZE  rcvd: 228


这个是错误的。从ftp://ftp.rs.internic.net/domain/下载一个named.root文件就能递归查询了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

SACC2019中国系统架构师大会

【数字转型 架构演进】SACC2019中国系统架构师大会
2019年10月31日~11月2日第11届中国系统架构师大会(SACC2019)将在北京隆重召开。四大主线并行的演讲模式,1个主会场、20个技术专场、超千人参与的会议规模,100+来自互联网、金融、制造业、电商等领域的嘉宾阵容,将为广大参会者提供一场最具价值的技术交流盛会。




----------------------------------------

大会官网>>
  

北京盛拓优讯信息技术有限公司. 版权所有 16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122
中国互联网协会会员  联系我们:huangweiwei@it168.com
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP