无法访问YouTube、Twitter等网站的技术求助(附DNS排查数据)
无法访问YouTube、Twitter等网站的技术求助(附DNS排查数据)
最近碰到个棘手的网络问题,想请教下大家:有些网站死活连不上,目前确认打不开的是 youtube.com 和 twitter.com。
访问时出现的错误
连接这些网站时,会随机弹出以下三种错误之一:
- PR_END_OF_FILE_ERROR
- 连接已超时
- PR_IO_TIMEOUT_ERROR
注:这个问题和Firefox社区里那个关于“PR_END_OF_FILE_ERROR”的问题不是一回事,人家是修改SSL证书导致的,我这边没碰过证书相关的设置。
问题发生前的操作背景
出现问题前不久,我尝试配置过仅限本地网络使用的自定义域名(比如 example.local),折腾半天没成功就删掉了,能想到的可能影响网络的操作就这一个。
DNS排查数据
默认DNS设置下的dig和nslookup结果
$ dig youtube.com ;; communications error to 192.168.1.1#53: timed out ;; communications error to 192.168.1.1#53: timed out ; <<>> DiG 9.18.14 <<>> youtube.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 37968 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1220 ; COOKIE: a0a1c12b15c7df9a78eac8c7645b648551d539e76783b483 (good) ;; QUESTION SECTION: ;youtube.com. IN A ;; Query time: 204 msec ;; SERVER: 192.168.1.1#53(192.168.1.1) (UDP) ;; WHEN: Wed May 10 14:31:49 PKT 2023 ;; MSG SIZE rcvd: 68
$ nslookup youtube.com ;; communications error to 192.168.1.1#53: timed out ;; communications error to 192.168.1.1#53: timed out ;; communications error to 192.168.1.1#53: timed out ;; no servers could be reached
dnscheck.tools检测结果
- 当前使用的DNS解析器:
- Cloudflare(节点分布在新加坡、卡拉奇等地)
- Google LLC(节点分布在米兰、都灵等地)
- IE-GOOGLE-2a00-1450-4000-1(旧金山节点)
- DNSSEC验证状态:所有签名验证项全部通过,包括:
- 正确/无效/过期的P-256、P-384、Ed25519签名验证
- 未签名域名验证
DNS泄漏测试结果
| IP地址 | 主机名 | 服务商 |
|---|---|---|
| 172.70.146.223 | NONE | Cloudflare |
| 172.70.92.38 | NONE | Cloudflare |
网络内其他设备的情况
同一个WiFi网络下的其他设备,不管用Firefox还是Chrome浏览器都打不开youtube.com,但YouTube手机APP偶尔能加载成功——有时候加载很慢,有时候直接失败得重试几次才行。
已尝试的解决方法
我已经试过以下几种办法,但都没解决问题:
关闭Firefox的DNS over HTTPS功能(本来就是关闭状态,没效果)
创建新的Firefox配置文件(依旧打不开)
设置静态DNS为8.8.8.8和1.1.1.1:这时候dig和nslookup能正常返回解析结果,但Firefox还是加载不了页面
切换静态DNS后的dig和nslookup结果:$ dig youtube.com ; <<>> DiG 9.18.14 <<>> youtube.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4439 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ;youtube.com. IN A ;; ANSWER SECTION: youtube.com. 237 IN A 172.217.21.46 ;; Query time: 142 msec ;; SERVER: 8.8.8.8#53(8.8.8.8) (UDP) ;; WHEN: Wed May 10 23:20:36 PKT 2023 ;; MSG SIZE rcvd: 56$ nslookup youtube.com Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: Name: youtube.com Address: 172.217.21.46 Name: youtube.com Address: 2a00:1450:4019:806::200e
备注:内容来源于stack exchange,提问作者Scatt




