V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ksc010
V2EX  ›  问与答

遇到一个奇怪的问题, dns 劫持?

  •  
  •   ksc010 · 2016-12-03 23:04:14 +08:00 · 2001 次点击
    这是一个创建于 2720 天前的主题,其中的信息可能已经有所发展或是发生改变。

    今天突然发现机房的服务器(电线专线)不能解析部分域名

    xx@xxx:~$ nslookup coloyou.m.tmall.com 223.5.5.5
    Server:         223.5.5.5
    Address:        223.5.5.5#53
    
    ** server can't find coloyou.m.tmall.com: SERVFAIL
    

    而其他域名正常

    nslookup www.m.tmall.com 223.5.5.5
    Server:         223.5.5.5
    Address:        223.5.5.5#53
    
    Non-authoritative answer:
    www.m.tmall.com canonical name = sh.wagbridge.m.tmall.com.
    sh.wagbridge.m.tmall.com        canonical name = sh.wagbridge.tmall.com.
    sh.wagbridge.tmall.com  canonical name = sh.wagbridge.tmall.com.gds.alibabadns.com.
    Name:   sh.wagbridge.tmall.com.gds.alibabadns.com
    Address: 106.11.95.1
    

    外面的服务器也没问题

    root@bbb:~# nslookup coloyou.m.tmall.com 223.5.5.5
    Server:         223.5.5.5
    Address:        223.5.5.5#53
    
    Non-authoritative answer:
    coloyou.m.tmall.com     canonical name = sh.wagbridge.m.tmall.com.
    sh.wagbridge.m.tmall.com        canonical name = sh.wagbridge.tmall.com.
    sh.wagbridge.tmall.com  canonical name = sh.wagbridge.tmall.com.gds.alibabadns.com.
    Name:   sh.wagbridge.tmall.com.
    Address: 106.11.95.8
    
    3 条回复    2016-12-03 23:34:59 +08:00
    ksc010
        1
    ksc010  
    OP
       2016-12-03 23:06:15 +08:00
    另外机房的服务器 使用其他 dns 解析这几个域名也不行

    nslookup coloyou.m.tmall.com
    Server: 114.114.114.114
    Address: 114.114.114.114#53

    ** server can't find coloyou.m.tmall.com: SERVFAIL
    BSD
        2
    BSD  
       2016-12-03 23:32:23 +08:00   ❤️ 1
    dig +trace 试试看, linux 下谁还用什么 nslookup 。。。。
    ksc010
        3
    ksc010  
    OP
       2016-12-03 23:34:59 +08:00
    @BSD dig 可以,但是 ping 不行;这是为啥。。。

    ping coloyou.m.tmall.com
    ping: unknown host coloyou.m.tmall.com

    dig coloyou.m.tmall.com

    ; <<>> DiG 9.10.3-P4-Ubuntu <<>> coloyou.m.tmall.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56457
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; QUESTION SECTION:
    ;coloyou.m.tmall.com. IN A

    ;; ANSWER SECTION:
    coloyou.m.tmall.com. 284 IN CNAME sh.wagbridge.m.tmall.com.
    sh.wagbridge.m.tmall.com. 284 IN CNAME sh.wagbridge.tmall.com.
    sh.wagbridge.tmall.com. 284 IN CNAME sh.wagbridge.tmall.com.gds.alibabadns.com.
    sh.wagbridge.tmall.com.gds.alibabadns.com. 97 IN A 106.11.95.5

    ;; Query time: 23 msec
    ;; SERVER: 114.114.114.114#53(114.114.114.114)
    ;; WHEN: Sat Dec 03 23:33:34 CST 2016
    ;; MSG SIZE rcvd: 170
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5667 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 07:10 · PVG 15:10 · LAX 00:10 · JFK 03:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.