关于 adguardhome 的一点疑问

8 天前
 lixpng

我路由器刷了 openwrt ,开了 openclash 和 adguardhome ,openclash redir-host 模式,劫持本地 dns ,使用 dnsmap 转发,自定义上游 dns 服务用的 adguardhome ,目前出现一个问题,就是无法访问 https://test.ustc.edu.cn (中国科学技术大学测试网站),但是 https://test6.ustc.edu.cn (纯 ipv6 )就可以。在 adguardhome 上看查询日志,发现用手机访问 https://test.ustc.edu.cn 时会返回 ipv6 的 dns 结果,且没有返回具体 ip ,如下图:

但是这个网站应该是只有 ipv4 的,不知道为何返回 AAAA 记录。但是当我用 Mac 访问时,返回的是正确的 ipv4 地址: 但是还是无法访问网站

我用 nslookup 和 traceroute 都是正常的,但是 ping timeout ,openclash 里面也没有看到相关的访问日志

❯ dig test.ustc.edu.cn

; <<>> DiG 9.10.6 <<>> test.ustc.edu.cn
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41181
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;test.ustc.edu.cn.		IN	A

;; ANSWER SECTION:
test.ustc.edu.cn.	1466	IN	A	202.38.64.43

;; Query time: 7 msec
;; SERVER: 100.100.100.100#53(100.100.100.100)
;; WHEN: Sun Jun 23 13:00:41 CST 2024
;; MSG SIZE  rcvd: 50

❯ nslookup test.ustc.edu.cn
Server:		100.100.100.100
Address:	100.100.100.100#53

Name:	test.ustc.edu.cn
Address: 202.38.64.43

❯ traceroute test.ustc.edu.cn
traceroute to test.ustc.edu.cn (202.38.64.43), 64 hops max, 52 byte packets
 1  openwrt (192.168.50.1)  2.124 ms  2.003 ms  1.261 ms
 2  123.113.24.1 (123.113.24.1)  3.135 ms  3.510 ms  3.338 ms
 3  61.48.26.201 (61.48.26.201)  5.690 ms  6.266 ms  8.491 ms
 4  * 124.65.194.77 (124.65.194.77)  7.781 ms
    125.33.186.77 (125.33.186.77)  6.131 ms
 5  219.158.109.186 (219.158.109.186)  7.967 ms
    219.158.21.174 (219.158.21.174)  10.485 ms
    219.158.103.70 (219.158.103.70)  6.041 ms
 6  219.158.39.54 (219.158.39.54)  9.474 ms^C
 
 ❯ ping test.ustc.edu.cn

PING test.ustc.edu.cn (202.38.64.43): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4

有没有大佬能解答一下咋回事呢。。如果只是这个网站无法访问还行,但是就怕还有其他正常网站不行,所以想要解决一下这个问题。。

1422 次点击
所在节点    DNS
7 条回复
fredcc
8 天前
dns 响应 noerror 没结果不是有解析记录。
你的 traceroute 还没出联通范围就被 Ctrl+c 了,不代表正常
lixpng
8 天前
@fredcc 这块我不太懂,完整的 traceroute 是这样的:
```
❯ traceroute test.ustc.edu.cn
traceroute to test.ustc.edu.cn (202.38.64.43), 64 hops max, 52 byte packets
1 openwrt (192.168.50.1) 44.702 ms 1.509 ms *
2 * 123.113.24.1 (123.113.24.1) 4.010 ms 7.528 ms
3 61.48.26.201 (61.48.26.201) 5.902 ms 5.834 ms 6.004 ms
4 * 123.126.0.233 (123.126.0.233) 10.249 ms
202.96.12.53 (202.96.12.53) 6.869 ms
5 219.158.5.130 (219.158.5.130) 10.080 ms
219.158.103.70 (219.158.103.70) 5.435 ms
219.158.22.38 (219.158.22.38) 11.926 ms
6 219.158.39.54 (219.158.39.54) 10.866 ms 8.739 ms 7.784 ms
7 101.4.118.29 (101.4.118.29) 6.320 ms 9.814 ms 8.548 ms
8 101.4.115.250 (101.4.115.250) 7.756 ms 6.670 ms
101.4.115.146 (101.4.115.146) 15.780 ms
9 101.4.112.66 (101.4.112.66) 23.902 ms 23.113 ms 22.309 ms
10 101.4.118.214 (101.4.118.214) 28.292 ms 27.816 ms 24.113 ms
11 101.4.112.62 (101.4.112.62) 32.772 ms 41.195 ms 31.677 ms
12 101.4.115.186 (101.4.115.186) 33.013 ms 37.781 ms 34.178 ms
13 101.4.115.14 (101.4.115.14) 34.110 ms 31.113 ms 29.908 ms
14 210.45.224.60 (210.45.224.60) 31.126 ms 30.197 ms 30.614 ms
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
```
那这么说还是 dns 问题吗。。。
fredcc
8 天前
看起来单纯中科大把你的 ip 拦掉了
lixpng
8 天前
@fredcc 好吧,我访问他们官网能访问😥
fredcc
8 天前
www.ustc.edu.cn 域名做了分运营商解析,电信联通移动解析到网内的 ip ,test.ustc.edu.cn 是学院自己的,只有教育网地址
WhatTheBridgeSay
8 天前
这不是返回了 AAAA ,而是请求了 AAAA
lixpng
8 天前
感谢大家,可能确实是中科大把我 ip 封了,现在又可以了。。

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

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

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

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

© 2021 V2EX