cio112358 发表于 2021-9-10 18:05

问个dns问题【已解决】

本帖最后由 cio112358 于 2021-9-10 19:57 编辑

浏览器打不开raw.githubusercontent.com,用了工具也不行所以怀疑是dns问题,
试了下ping不通但是nslookup能成功,而且找到的ip地址能ping通
wsl里的ping能成功

<div>D:\>ping raw.githubusercontent.com
Ping 请求找不到主机 raw.githubusercontent.com。请检查该名称,然后重试。

D:\>nslookup raw.githubusercontent.com
服务器:dns.google
Address:8.8.8.8

非权威应答:
名称:    raw.githubusercontent.com
Addresses:185.199.109.133
          185.199.108.133
          185.199.111.133
          185.199.110.133


D:\>ping 185.199.110.133

正在 Ping 185.199.110.133 具有 32 字节的数据:
来自 185.199.110.133 的回复: 字节=32 时间=78ms TTL=50
来自 185.199.110.133 的回复: 字节=32 时间=79ms TTL=50
来自 185.199.110.133 的回复: 字节=32 时间=79ms TTL=50
来自 185.199.110.133 的回复: 字节=32 时间=78ms TTL=50

185.199.110.133 的 Ping 统计信息:
    数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
    最短 = 78ms,最长 = 79ms,平均 = 78ms
</div>

ipconfig /displaydns 里有这个结果但不知道是从哪儿来的


    raw.githubusercontent.com
    ----------------------------------------
    记录名称. . . . . . . : raw.githubusercontent.com
    记录类型. . . . . . . : 28
    生存时间. . . . . . . : 3018
    数据长度. . . . . . . : 16
    部分. . . . . . . . . : 答案
    AAAA 记录 . . . . . . : ::


    raw.githubusercontent.com
    ----------------------------------------
    记录名称. . . . . . . : raw.githubusercontent.com
    记录类型. . . . . . . : 1
    生存时间. . . . . . . : 3018
    数据长度. . . . . . . : 4
    部分. . . . . . . . . : 答案
    A (主机)记录. . . . : 0.0.0.0



char1st 发表于 2021-9-10 18:23

hosts文件?

char1st 发表于 2021-9-10 18:23

hosts文件?

cio112358 发表于 2021-9-10 18:28

char1st 发表于 2021-9-10 18:23
hosts文件?

hosts文件检查过了,没有相关的
应该只有windows\system32\drivers\etc下的hosts文件吧

Saker_bobo 发表于 2021-9-10 18:31

nslookup和你的默认dns服务器都是四个8吗?

Anoneko 发表于 2021-9-10 19:03

ping会用缓存和hosts,nslookup不会,从这方面着手https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif

TR4835 发表于 2021-9-10 19:15

hosts里确认没有的话,ipconfig /flushdns清下缓存看看?

cio112358 发表于 2021-9-10 19:55

解决了,忘了改ipv6的dns设置,这货给我返回个0.0.0.0
页: [1]
查看完整版本: 问个dns问题【已解决】