qmhw61
V2EX  ›  DNS

使用 nslookup 命令 DNS 解析域名问题

  •  
  •   qmhw61 · Jul 11, 2023 · 2994 views
    This topic created in 1076 days ago, the information mentioned may be changed or developed.

    系统是 windows11 ,用 nslookup 命令解析域名,比如查询域名 data.bilibili.com ,dns 服务器 dnspod

    为什么会请求查询 data.bilibili.com.lan 这个域名,多了.lan 这个后缀,明明是请求解析 data.bilibili.com 这个域名的阿?我用 wireshark 抓包,看到请求 dns 服务器查询也是这个域名 data.bilibili.com.lan ,不知道是什么问题。

    8 replies    2023-07-13 21:41:01 +08:00
    slowman
        1
    slowman  
       Jul 11, 2023   ❤️ 1
    本站搜 ndots 二级域名 有答案
    qmhw61
        2
    qmhw61  
    OP
       Jul 11, 2023
    另外,ping 可以
    ![]( https://imgur.com/JGAtg0s.png)
    mohumohu
        3
    mohumohu  
       Jul 11, 2023   ❤️ 1
    因为你的路由器分配 dhcp 的时候加了 lan 后缀。估计你的是 openwrt 路由器。dhcp option15, domain name
    6IbA2bj5ip3tK49j
        5
    6IbA2bj5ip3tK49j  
       Jul 11, 2023
    怎么感觉 windows 和 linux 的表现完全是反的啊。
    我之前遇到过类似的问题。
    ndots+错误的 dns 实现,导致域名可以 nslookup 到,但 ping 不通。
    iblessyou
        6
    iblessyou  
       Jul 12, 2023
    借楼求问现在有什么好用的国内公共 dns
    mohumohu
        7
    mohumohu  
       Jul 12, 2023 via Android
    @iblessyou 自建
    yinmin
        8
    yinmin  
       Jul 13, 2023
    @iblessyou 阿里云 223.5.5.5 和 223.6.6.6
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5267 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 65ms · UTC 03:56 · PVG 11:56 · LAX 20:56 · JFK 23:56
    ♥ Do have faith in what you're doing.