ciswind

请教各位一个问题, nslookup 解析成功, dig 却解析失败,是什么问题?

  •  
  •   ciswind · Oct 7, 2019 · 4272 views
    This topic created in 2408 days ago, the information mentioned may be changed or developed.
    bash-3.2$ dig @119.29.29.29 www.qq.com

    ; <<>> DiG 9.14.6 <<>> @119.29.29.29 www.qq.com
    ; (1 server found)
    ;; global options: +cmd
    ;; connection timed out; no servers could be reached




    bash-3.2$ nslookup www.qq.com 119.29.29.29
    Server: 119.29.29.29
    Address: 119.29.29.29#53

    Non-authoritative answer:
    www.qq.com canonical name = public.sparta.mig.tencent-cloud.net.
    Name: public.sparta.mig.tencent-cloud.net
    Address: 61.151.166.139
    Name: public.sparta.mig.tencent-cloud.net
    Address: 61.151.166.146
    Name: public.sparta.mig.tencent-cloud.net
    Address: 2402:4e00:8010::154
    Name: public.sparta.mig.tencent-cloud.net
    Address: 2402:4e00:8010::155



    最近家里直接用 opendns 等公用的 dns 也不正常,无法链接到服务器,不知道是啥原因
    7 replies    2019-10-07 14:19:37 +08:00
    syscall
        1
    syscall  
       Oct 7, 2019 via Android   ❤️ 5
    有可能是这个版本的 dig 和 nslookup 发的包格式不一样。我试了下我的 dig,默认发出去的包带个 edns 尾巴,119 不响应这个包。dig @119.29.29.29 www.qq.com +noedns 就有结果了
    wwbfred
        2
    wwbfred  
       Oct 7, 2019
    dig 包默认带 OPT 有些服务器不响应.
    ciswind
        3
    ciswind  
    OP
       Oct 7, 2019
    @oliverchen 果然是这样,谢谢!
    ciswind
        4
    ciswind  
    OP
       Oct 7, 2019
    @wwbfred 是的,测试下来的确是 edns 标签的问题
    ciswind
        5
    ciswind  
    OP
       Oct 7, 2019
    @oliverchen 比较奇怪啊 记得以前腾讯的 dns 是支持 edns 和 tcp 的,刚刚测了下都不行了
    syscall
        6
    syscall  
       Oct 7, 2019   ❤️ 1
    @ciswind #5 对于带 edns client subnet 的包有响应(dig +subnet=x.x.x.x/x),可能是把其他类型的 edns 包当作畸形包不响应了
    Atomo
        7
    Atomo  
       Oct 7, 2019
    添加 +nocookie
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3352 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 00:31 · PVG 08:31 · LAX 17:31 · JFK 20:31
    ♥ Do have faith in what you're doing.