免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3922 | 回复: 5
打印 上一主题 下一主题

[DNS] 救命,弄了两天了。Bind DNS 本机可以查询,其他主机总是超时 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-02-26 11:15 |只看该作者 |倒序浏览
--------本机没有问题-------
[root@files named]# nslookup
> glpi.hntp.com
Server:         10.106.5.200
Address:        10.106.5.200#53

Name:   glpi.hntp.com
Address: 10.106.4.216
>


----------但是其他的机器就会超时---------


C:\Users\yuan>nslookup
DNS request timed out.
    timeout was 2 seconds.
Default Server:  UnKnown
Address:  10.106.5.200

> 10.106.5.200
Server:  UnKnown
Address:  10.106.5.200

DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out
>

论坛徽章:
15
CU大牛徽章
日期:2013-03-13 15:32:35白羊座
日期:2013-10-30 13:11:16未羊
日期:2013-11-29 10:47:02白羊座
日期:2014-01-22 11:34:25白羊座
日期:2014-03-04 11:05:50申猴
日期:2014-07-29 16:31:36天秤座
日期:2013-10-23 15:33:47未羊
日期:2013-10-09 09:18:53CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55未羊
日期:2013-09-23 09:29:22
2 [报告]
发表于 2013-02-26 11:24 |只看该作者
DNS服务器咋个配置的的?
外部主机的DNS地址是否正确?
外部主机能否ping通DNS服务器?
DNS服务器的防火墙状态?

论坛徽章:
0
3 [报告]
发表于 2013-02-26 11:32 |只看该作者
检查named.conf
allow-query     { localhost; 提供服务的IP地址段;};

论坛徽章:
0
4 [报告]
发表于 2013-02-26 11:37 |只看该作者
----------hntp.com.zone文件--------------

$TTL    86400
@       IN      SOA    ns.hntp.com. root.hntp.com. (
                        42        ; serial (d. adams)
                        3H        ; refresh
                        15M        ; retry
                        1W        ; expiry
                        1D )        ; minimum
@       IN       NS             ns.hntp.com.
ns      IN       A              10.106.5.200
www     IN       A              10.106.4.216
glpi    IN    A     10.106.4.216
~
---------named.conf 文件------------

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";
};

include "/etc/named.rfc1912.zones";
--------------本地DNS 设置
  Connection-specific DNS Suffix  . :
  Description . . . . . . . . . . . : Generic Marvell
  Physical Address. . . . . . . . . : 44-37-E6-56-BB-
  DHCP Enabled. . . . . . . . . . . : No
  Autoconfiguration Enabled . . . . : Yes
  IPv4 Address. . . . . . . . . . . : 10.106.5.20(Pre
  Subnet Mask . . . . . . . . . . . : 255.255.255.0
  Default Gateway . . . . . . . . . : 0.0.0.0
                                      10.106.5.254
  DNS Servers . . . . . . . . . . . : 10.106.5.200
                                      10.1.1.100
  NetBIOS over Tcpip. . . . . . . . : Enabled

------------可以从10.106.5.20平 通
C:\Users\yuan>ping 10.106.5.200

Pinging 10.106.5.200 with 32 bytes of data:
Reply from 10.106.5.200: bytes=32 time<1ms TTL=64
Reply from 10.106.5.200: bytes=32 time<1ms TTL=64


telnet 10.106.5.200 53 是通的
iptables 已经开放53

论坛徽章:
0
5 [报告]
发表于 2013-02-26 11:55 |只看该作者
dns服务优先端口是 udp 53

论坛徽章:
0
6 [报告]
发表于 2013-02-26 12:55 |只看该作者
UDP端口没有开,谢谢各位了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP