V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
lixpng
V2EX  ›  DNS

关于 adguardhome 的一点疑问

  •  
  •   lixpng · 6 天前 · 1363 次点击

    我路由器刷了 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
    

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

    7 条回复    2024-06-23 20:58:50 +08:00
    fredcc
        1
    fredcc  
       6 天前
    dns 响应 noerror 没结果不是有解析记录。
    你的 traceroute 还没出联通范围就被 Ctrl+c 了,不代表正常
    lixpng
        2
    lixpng  
    OP
       6 天前
    @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
        3
    fredcc  
       6 天前
    看起来单纯中科大把你的 ip 拦掉了
    lixpng
        4
    lixpng  
    OP
       6 天前 via Android
    @fredcc 好吧,我访问他们官网能访问😥
    fredcc
        5
    fredcc  
       6 天前
    www.ustc.edu.cn 域名做了分运营商解析,电信联通移动解析到网内的 ip ,test.ustc.edu.cn 是学院自己的,只有教育网地址
    WhatTheBridgeSay
        6
    WhatTheBridgeSay  
       6 天前
    这不是返回了 AAAA ,而是请求了 AAAA
    lixpng
        7
    lixpng  
    OP
       6 天前
    感谢大家,可能确实是中科大把我 ip 封了,现在又可以了。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   895 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 20:37 · PVG 04:37 · LAX 13:37 · JFK 16:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.