muziling
V2EX  ›  DNS

本地搭了个 pdnsd, dig 比较快, nslookup 基本出不来,是什么原因

  •  
  •   muziling · May 14, 2016 · 5177 views
    This topic created in 3650 days ago, the information mentioned may be changed or developed.
    本地搭了个 pdnsd ,走 TCP 和远程 DNS 服务连接, 本地开启端口 5353
    dig +tcp www.tumblr.com @127.0.0.1 -p 5353 差不多 2 秒能出来
    nslookup www.tumblr.com 127.0.0.1:5353 要 10 秒以上,甚至出不来,为什么
    3 replies    2016-05-15 01:08:10 +08:00
    xderam
        1
    xderam  
       May 14, 2016
    nslookup 默认的是 udp 的?
    samueldeng
        2
    samueldeng  
       May 14, 2016
    如果 pdnsd 这个东西没有做 cache 的话,可能就是 pdnsd 与上游 dns 的 latency 的问题了。

    还是建议抓个包看看。
    pclover
        3
    pclover  
       May 15, 2016
    5353 也是 mDNS 服务的默认端口,建议换个高端口如 15353 试试。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3538 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 126ms · UTC 10:54 · PVG 18:54 · LAX 03:54 · JFK 06:54
    ♥ Do have faith in what you're doing.