这个 DNS 问题好奇怪, ping, nslookup 都不好使了,但是网站访问正常。

2015-01-09 11:56:13 +08:00
 P99LrYZVkZkg
> sudo discoveryutil mdnsflushcache

Password:
> sudo discoveryutil udnsflushcaches

>
> clear
> ping www.baidu.com
PING www.baidu.com (127.128.0.58): 56 data bytes
Request timeout for icmp_seq 0
^Z
[5] + 875 suspended ping www.baidu.com
> nslookup www.baidu.com
Server: 223.5.5.5
Address: 223.5.5.5#53

Non-authoritative answer:
Name: www.baidu.com
Address: 127.128.0.58

> nslookup www.sina.com
Server: 223.5.5.5
Address: 223.5.5.5#53

Non-authoritative answer:
Name: www.sina.com
Address: 127.128.0.250

> nslookup www.weibo.com
Server: 223.5.5.5
Address: 223.5.5.5#53

Non-authoritative answer:
Name: www.weibo.com
Address: 127.128.0.251

> nslookup www.qq.com
Server: 223.5.5.5
Address: 223.5.5.5#53

Non-authoritative answer:
Name: www.qq.com
Address: 127.128.0.252

> nslookup fuckyou.com
Server: 223.5.5.5
Address: 223.5.5.5#53

Non-authoritative answer:
Name: fuckyou.com
Address: 127.128.0.253

> nslookup xljklsjfljlwejrojsdljfkljwejlfsd.com
Server: 223.5.5.5
Address: 223.5.5.5#53

Non-authoritative answer:
Name: xljklsjfljlwejrojsdljfkljwejlfsd.com
Address: 127.128.0.254

>

每次解析到的IP都是+1,都是内网地址。
比如这次解析到的IP是:127.128.0.2
下次随便一个域名解析到的IP就是:127.128.0.3

我用的阿里DNS呀,换百度的DNS结果也是一样的。

奇怪的是浏览器访问各个网站都是很正常的。命令行下用TCP模式也能正常。
3680 次点击
所在节点    问与答
5 条回复
Septembers
2015-01-09 12:53:40 +08:00
用dnscrypt
P99LrYZVkZkg
2015-01-09 13:06:16 +08:00
@Septembers 我用了DnsCrypt,unbound,都一样。

关键最奇怪的是我刚查把网全部断了,重启。

> nslookup ccc.com
Server: 127.0.0.1
Address: 127.0.0.1#53

Non-authoritative answer:
Name: ccc.com
Address: 127.128.0.13

> nslookup ddd.com
Server: 127.0.0.1
Address: 127.0.0.1#53

Non-authoritative answer:
Name: ddd.com
Address: 127.128.0.14
loveyu
2015-01-29 15:23:54 +08:00
我也遇到这个问题。无助中,TCP查询的没问题
loveyu
2015-01-29 16:34:52 +08:00
问题出在ProxyCap的Resolve names remotely选项上
P99LrYZVkZkg
2015-01-29 19:27:16 +08:00
@loveyu 是的,上次差点重装系统,最后在Twitter上查到ProxyCap的问题。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/160578

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX