vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
17.81k stars 3.21k forks source link

[Bug] 大佬 不知道什么原因,dns resolve failed #3635

Closed xiaolongzhou123 closed 10 months ago

xiaolongzhou123 commented 1 year ago

Verify Steps

OpenClash Version

v0.45.152-beta

Bug on Environment

Lean

Bug on Platform

Linux-amd64(x86-64)

To Reproduce

我无法访问,以三个网站, curl -L hellowindows.cn curl -L hellodk.cn curl -L api-ipv4.ip.sb

Describe the Bug

以来发现。是dns解析的问题。

如果我在openwrt 的/etc/hosts加了ip和对应的域名。。这三个网站又可以访问

但是。我目前的联通的dns(nameserver是有联通的dnsip的)。。我确认。是可以解析这三个ip,

221701331255_ pic aa bb

OpenClash Log

===================== 路由表状态 =====================

IPv4

route -n

Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.24.1 0.0.0.0 UG 0 0 0 eth0.24 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.17 192.168.24.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.24 198.18.0.0 0.0.0.0 255.255.255.252 U 0 0 0 utun

ip route list

default via 192.168.24.1 dev eth0.24 proto static 172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown 192.168.1.0/24 dev eth0.17 proto kernel scope link src 192.168.1.8 192.168.24.0/24 dev eth0.24 proto kernel scope link src 192.168.24.2 198.18.0.0/30 dev utun proto kernel scope link src 198.18.0.1

ip rule show

0: from all lookup local 32765: from all fwmark 0x162 lookup 354 32766: from all lookup main 32767: from all lookup default

IPv6

route -A inet6

Kernel IPv6 routing table Destination Next Hop Flags Metric Ref Use Iface fe80::/64 :: U 256 1 0 eth0
fe80::/64 :: U 256 1 0 eth0.17 fe80::/64 :: U 256 1 0 eth0.24 fe80::/64 :: U 256 1 0 utun
::/0 :: !n -1 1 0 lo
::1/128 :: Un 0 6 0 lo
fe80::/128 :: Un 0 4 0 eth0.24 fe80::/128 :: Un 0 3 0 eth0
fe80::/128 :: Un 0 3 0 eth0.17 fe80::/128 :: Un 0 3 0 utun
fe80::96c6:91ff:fea8:4180/128 :: Un 0 3 0 eth0.24 fe80::96c6:91ff:fea8:4180/128 :: Un 0 2 0 eth0
fe80::96c6:91ff:fea8:4180/128 :: Un 0 2 0 eth0.17 fe80::a550:7fb:75f7:c0eb/128 :: Un 0 2 0 utun
ff00::/8 :: U 256 4 0 eth0
ff00::/8 :: U 256 3 0 eth0.17 ff00::/8 :: U 256 4 0 eth0.24 ff00::/8 :: U 256 5 0 utun
::/0 :: !n -1 1 0 lo

ip -6 route list

fe80::/64 dev eth0 proto kernel metric 256 pref medium fe80::/64 dev eth0.17 proto kernel metric 256 pref medium fe80::/64 dev eth0.24 proto kernel metric 256 pref medium fe80::/64 dev utun proto kernel metric 256 pref medium

ip -6 rule show

0: from all lookup local 32766: from all lookup main 4200000001: from all iif lo failed_policy 4200000004: from all iif eth0.17 failed_policy 4200000005: from all iif eth0.24 failed_policy 4200000009: from all iif utun failed_policy

===================== Tun设备状态 =====================

utun: tun

===================== 端口占用状态 =====================

tcp 0 0 198.18.0.1:46549 0.0.0.0: LISTEN 3770/clash tcp 0 0 :::7890 ::: LISTEN 3770/clash tcp 0 0 :::7891 ::: LISTEN 3770/clash tcp 0 0 :::7895 ::: LISTEN 3770/clash tcp 0 0 :::7892 ::: LISTEN 3770/clash tcp 0 0 :::7893 ::: LISTEN 3770/clash tcp 0 0 :::19090 ::: LISTEN 3770/clash udp 0 0 :::7874 ::: 3770/clash udp 0 0 :::7891 ::: 3770/clash udp 0 0 :::7892 ::: 3770/clash udp 0 0 :::7893 ::: 3770/clash udp 0 0 :::7895 ::: 3770/clash

===================== 测试本机DNS查询(www.baidu.com) =====================

Server: 127.0.0.1 Address: 127.0.0.1:53

www.baidu.com canonical name = www.a.shifen.com Name: www.a.shifen.com Address: 110.242.68.4 Name: www.a.shifen.com Address: 110.242.68.3

===================== 测试内核DNS查询(www.instagram.com) =====================

Dnsmasq 当前默认 resolv 文件:/tmp/resolv.conf.d/resolv.conf.auto

===================== /tmp/resolv.conf.d/resolv.conf.auto =====================

Interface lan

nameserver 202.106.195.68

===================== 测试本机网络连接(www.baidu.com) =====================

HTTP/1.1 200 OK Accept-Ranges: bytes Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform Connection: keep-alive Content-Length: 277 Content-Type: text/html Date: Thu, 30 Nov 2023 07:53:07 GMT Etag: "575e1f59-115" Last-Modified: Mon, 13 Jun 2016 02:50:01 GMT Pragma: no-cache Server: bfe/1.0.8.18

===================== 测试本机网络下载(raw.githubusercontent.com) =====================

HTTP/2 404 content-security-policy: default-src 'none'; style-src 'unsafe-inline'; sandbox strict-transport-security: max-age=31536000 x-content-type-options: nosniff x-frame-options: deny x-xss-protection: 1; mode=block content-type: text/plain; charset=utf-8 x-github-request-id: 7CE0:1D5CA2:F7D43:137D8B:65683F3C accept-ranges: bytes date: Thu, 30 Nov 2023 07:53:08 GMT via: 1.1 varnish x-served-by: cache-qpg1277-QPG x-cache: HIT x-cache-hits: 1 x-timer: S1701330788.348094,VS0,VE1 vary: Authorization,Accept-Encoding,Origin access-control-allow-origin: * cross-origin-resource-policy: cross-origin x-fastly-request-id: b3b7acf9ca1fbe47eb8cf323ba6289a52f6c24b9 expires: Thu, 30 Nov 2023 07:58:08 GMT source-age: 39 content-length: 14

===================== 最近运行日志(自动切换为Debug模式) =====================

time="2023-11-30T07:50:24.285874991Z" level=info msg="[TCP] 221.220.135.110:59768 --> xp.apple.com:443 match DomainSuffix(apple.com) using 🍎 苹果服务[🇨🇳 台湾 01]" time="2023-11-30T07:50:26.127794391Z" level=info msg="[TCP] 221.220.135.110:59765 --> push.services.mozilla.com:443 match DstPort(443) using 🐟 漏网之鱼[🇨🇳 台湾 01]" time="2023-11-30T07:50:31.371555416Z" level=info msg="[TCP] 221.220.135.110:59774 --> authds.todesk.com:443 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:50:31.517091822Z" level=info msg="[TCP] 221.220.135.110:59775 --> st.todesk.com:443 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:50:38.287346206Z" level=info msg="[TCP] 221.220.135.110:59779 --> xp.apple.com:443 match DomainSuffix(apple.com) using 🍎 苹果服务[🇨🇳 台湾 01]" time="2023-11-30T07:50:38.298809081Z" level=warning msg="[TCP] dial 🎯 全球直连 (match DomainSuffix/cn) 221.220.135.110:59776 --> hellowindows.cn:80 error: dns resolve failed: context deadline exceeded" time="2023-11-30T07:50:50.599100259Z" level=warning msg="[TCP] dial 🎯 全球直连 (match DomainSuffix/cn) 221.220.135.110:59786 --> hellowindows.cn:443 error: dns resolve failed: context deadline exceeded" time="2023-11-30T07:50:55.70581848Z" level=warning msg="[TCP] dial 🎯 全球直连 (match DomainSuffix/cn) 221.220.135.110:59789 --> hellowindows.cn:443 error: dns resolve failed: context deadline exceeded" time="2023-11-30T07:50:56.063780875Z" level=info msg="[TCP] 221.220.135.110:59794 --> content-autofill.googleapis.com:443 match DomainKeyword(google) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:50:56.079679024Z" level=info msg="[TCP] 221.220.135.110:59795 --> github.com:443 match DomainSuffix(github.com) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:50:57.853288664Z" level=info msg="[TCP] 221.220.135.110:59796 --> content-autofill.googleapis.com:443 match DomainKeyword(google) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:50:58.085990396Z" level=info msg="[TCP] 221.220.135.110:59797 --> api.github.com:443 match DomainSuffix(github.com) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:51:11.835071398Z" level=info msg="[TCP] 221.220.135.110:59809 --> st.todesk.com:443 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:16.311486379Z" level=info msg="[TCP] 221.220.135.110:59808 --> api.ipify.org:443 match DstPort(443) using 🐟 漏网之鱼[🇨🇳 台湾 01]" time="2023-11-30T07:51:32.101198929Z" level=info msg="[TCP] 192.168.22.172:59072 --> p3.douyinpic.com:443 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:32.113607458Z" level=info msg="[TCP] 192.168.22.172:59073 --> aweme.snssdk.com:443 match DomainSuffix(snssdk.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:35.325056289Z" level=info msg="[TCP] 192.168.22.172:61700 --> dns.weixin.qq.com:443 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:35.428748284Z" level=info msg="[TCP] 192.168.22.172:61703 --> httpdns.bilivideo.com:443 match DomainSuffix(bilivideo.com) using 🌏 国内媒体[DIRECT]" time="2023-11-30T07:51:35.436326061Z" level=info msg="[TCP] 192.168.22.172:61702 --> 27.222.0.173:7824 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:35.441731039Z" level=info msg="[TCP] 192.168.22.172:61704 --> app.bilibili.com:443 match DomainSuffix(bilibili.com) using 🌏 国内媒体[DIRECT]" time="2023-11-30T07:51:35.495049746Z" level=info msg="[TCP] 192.168.22.172:59074 --> data.bilibili.com:443 match DomainSuffix(bilibili.com) using 🌏 国内媒体[DIRECT]" time="2023-11-30T07:51:35.555428964Z" level=info msg="[TCP] 192.168.22.172:61705 --> 182.50.10.168:443 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:35.559777562Z" level=info msg="[TCP] 192.168.22.172:59076 --> mssdk.volces.com:443 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:35.561335104Z" level=info msg="[TCP] 192.168.22.172:59075 --> socket.pan.baidu.com:80 match DomainSuffix(baidu.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:35.570982926Z" level=info msg="[TCP] 192.168.22.172:59077 --> pim.baidu.com:443 match DomainSuffix(baidu.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:35.594902034Z" level=info msg="[TCP] 192.168.22.172:61706 --> 182.50.10.168:443 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:35.652134003Z" level=info msg="[TCP] 192.168.22.172:61707 --> update.pan.baidu.com:443 match DomainSuffix(baidu.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:35.659770512Z" level=info msg="[TCP] 192.168.22.172:61708 --> grpc.biliapi.net:443 match DomainSuffix(biliapi.net) using 🌏 国内媒体[DIRECT]" time="2023-11-30T07:51:35.67015097Z" level=info msg="[TCP] 192.168.22.172:61709 --> dataflow.biliapi.com:443 match DomainSuffix(biliapi.com) using 🌏 国内媒体[DIRECT]" time="2023-11-30T07:51:35.767791146Z" level=info msg="[TCP] 192.168.22.172:61710 --> pan.baidu.com:443 match DomainSuffix(baidu.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:35.787727957Z" level=info msg="[TCP] 192.168.22.172:59078 --> ossapi.baidu.com:443 match DomainSuffix(baidu.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:35.805758316Z" level=info msg="[TCP] 192.168.22.172:59079 --> abtest.z.qingting.fm:80 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:35.843555298Z" level=info msg="[TCP] 192.168.22.172:61711 --> wangpan.lcs.baidu.com:443 match DomainSuffix(baidu.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:36.342030675Z" level=info msg="[TCP] 192.168.22.172:59080 --> pimlog.baidu.com:443 match DomainSuffix(baidu.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:36.372640772Z" level=info msg="[TCP] 192.168.22.172:59081 --> pimlog.baidu.com:443 match DomainSuffix(baidu.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:36.413099289Z" level=info msg="[TCP] 192.168.22.172:59082 --> pimlog.baidu.com:443 match DomainSuffix(baidu.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:36.452017389Z" level=info msg="[TCP] 192.168.22.172:59083 --> pimlog.baidu.com:443 match DomainSuffix(baidu.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:36.501454249Z" level=info msg="[TCP] 192.168.22.172:59084 --> pimlog.baidu.com:443 match DomainSuffix(baidu.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:36.533174433Z" level=info msg="[UDP] 192.168.22.172:59580 --> 42.225.102.54:443 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:36.533919145Z" level=info msg="[UDP] 192.168.22.172:53746 --> 42.225.102.54:443 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:36.550470888Z" level=info msg="[TCP] 192.168.22.172:59085 --> pimlog.baidu.com:443 match DomainSuffix(baidu.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:36.583680141Z" level=info msg="[TCP] 221.220.135.110:59824 --> beacons.gcp.gvt2.com:443 match DomainSuffix(gvt2.com) using 🔥 YOUTUBE[🇨🇳 台湾 01]" time="2023-11-30T07:51:36.593842948Z" level=info msg="[TCP] 192.168.22.172:59086 --> pimlog.baidu.com:443 match DomainSuffix(baidu.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:36.607702651Z" level=info msg="[TCP] 192.168.22.172:61714 --> 42.225.102.54:443 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:36.607786193Z" level=info msg="[TCP] 192.168.22.172:61713 --> 42.225.102.54:443 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:37.096447761Z" level=info msg="[TCP] 192.168.22.172:61715 --> extshort.weixin.qq.com:80 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:37.149102798Z" level=info msg="[TCP] 221.220.135.110:59820 --> a.nel.cloudflare.com:443 match DstPort(443) using 🐟 漏网之鱼[🇨🇳 台湾 01]" time="2023-11-30T07:51:37.150362527Z" level=info msg="[TCP] 221.220.135.110:59821 --> a.nel.cloudflare.com:443 match DstPort(443) using 🐟 漏网之鱼[🇨🇳 台湾 01]" time="2023-11-30T07:51:37.399820875Z" level=info msg="[TCP] 221.220.135.110:59826 --> extshort.weixin.qq.com:80 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:37.753602455Z" level=info msg="[TCP] 221.220.135.110:59828 --> collector.github.com:443 match DomainSuffix(github.com) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:51:38.063358534Z" level=info msg="[TCP] 221.220.135.110:59831 --> collector.github.com:443 match DomainSuffix(github.com) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:51:40.415204528Z" level=info msg="[TCP] 192.168.22.218:45546 --> 49.4.35.247:5223 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:40.531985016Z" level=info msg="[TCP] 192.168.22.218:41686 --> 157.148.62.149:443 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:40.569920426Z" level=info msg="[TCP] 192.168.22.218:52740 --> mtalk.google.com:5228 match DomainKeyword(google) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:51:40.836184359Z" level=info msg="[TCP] 192.168.22.218:39016 --> szminorshort.weixin.qq.com:80 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:40.978363176Z" level=info msg="[TCP] 192.168.22.218:55716 --> szextshort.weixin.qq.com:80 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:51:42.352146425Z" level=info msg="[TCP] 221.220.135.110:59825 --> github.githubassets.com:443 match DstPort(443) using 🐟 漏网之鱼[🇨🇳 台湾 01]" time="2023-11-30T07:51:42.360287503Z" level=info msg="[TCP] 221.220.135.110:59827 --> github.githubassets.com:443 match DstPort(443) using 🐟 漏网之鱼[🇨🇳 台湾 01]" time="2023-11-30T07:51:57.55470146Z" level=info msg="[TCP] 221.220.135.110:59840 --> avatars.githubusercontent.com:443 match DomainSuffix(githubusercontent.com) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:51:57.573091776Z" level=info msg="[TCP] 221.220.135.110:59841 --> private-user-images.githubusercontent.com:443 match DomainSuffix(githubusercontent.com) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:51:57.855029241Z" level=info msg="[TCP] 221.220.135.110:59842 --> avatars.githubusercontent.com:443 match DomainSuffix(githubusercontent.com) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:51:57.856674965Z" level=info msg="[TCP] 221.220.135.110:59846 --> avatars.githubusercontent.com:443 match DomainSuffix(githubusercontent.com) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:51:57.85803478Z" level=info msg="[TCP] 221.220.135.110:59844 --> avatars.githubusercontent.com:443 match DomainSuffix(githubusercontent.com) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:51:57.858653662Z" level=info msg="[TCP] 221.220.135.110:59845 --> avatars.githubusercontent.com:443 match DomainSuffix(githubusercontent.com) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:51:57.863676519Z" level=info msg="[TCP] 221.220.135.110:59843 --> avatars.githubusercontent.com:443 match DomainSuffix(githubusercontent.com) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:52:05.520544857Z" level=info msg="[TCP] 221.220.135.110:59853 --> mtalk.google.com:5228 match DomainKeyword(google) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:52:08.389730105Z" level=info msg="[TCP] 221.220.135.110:59854 --> clientservices.googleapis.com:443 match DomainKeyword(google) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:52:11.188329094Z" level=info msg="[TCP] 221.220.135.110:59861 --> www.baidu.com:443 match DomainSuffix(baidu.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:52:11.259891839Z" level=info msg="[TCP] 221.220.135.110:59863 --> s1.music.126.net:443 match DomainSuffix(126.net) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:52:11.537043057Z" level=info msg="[TCP] 221.220.135.110:59864 --> github.com:443 match DomainSuffix(github.com) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:52:16.163914174Z" level=warning msg="[TCP] dial 🎯 全球直连 (match DomainSuffix/ip.sb) 221.220.135.110:59860 --> api-ipv4.ip.sb:443 error: dns resolve failed: context deadline exceeded" time="2023-11-30T07:52:21.223269264Z" level=warning msg="[TCP] dial 🎯 全球直连 (match DomainSuffix/ip.sb) 221.220.135.110:59869 --> api-ipv4.ip.sb:443 error: dns resolve failed: context deadline exceeded" time="2023-11-30T07:52:41.888932544Z" level=warning msg="[TCP] dial 🎯 全球直连 (match DomainSuffix/ip.sb) 221.220.135.110:59880 --> api-ipv4.ip.sb:443 error: dns resolve failed: context deadline exceeded" time="2023-11-30T07:52:46.894899662Z" level=warning msg="[TCP] dial 🎯 全球直连 (match DomainSuffix/ip.sb) 221.220.135.110:59884 --> api-ipv4.ip.sb:443 error: dns resolve failed: context deadline exceeded" time="2023-11-30T07:52:49.178090859Z" level=warning msg="[TCP] dial 🎯 全球直连 (match DomainSuffix/cn) 221.220.135.110:59887 --> hellowindows.cn:80 error: dns resolve failed: context deadline exceeded" time="2023-11-30T07:52:50.429183198Z" level=info msg="[TCP] 221.220.135.110:59892 --> edge.microsoft.com:443 match DomainKeyword(microsoft) using Ⓜ️ 微软服务[🇭🇰 香港 01]" time="2023-11-30T07:52:54.290076912Z" level=warning msg="[TCP] dial 🎯 全球直连 (match DomainSuffix/cn) 221.220.135.110:59891 --> hellodk.cn:80 error: dns resolve failed: context deadline exceeded" time="2023-11-30T07:52:55.515438224Z" level=info msg="[TCP] 221.220.135.110:59893 --> api.trancy.org:443 match DstPort(443) using 🐟 漏网之鱼[🇨🇳 台湾 01]" time="2023-11-30T07:52:56.068457507Z" level=info msg="[TCP] 221.220.135.110:59897 --> aedns.weixin.qq.com:8080 match GeoIP(CN) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:52:59.367741052Z" level=warning msg="[TCP] dial 🎯 全球直连 (match DomainSuffix/ip.sb) 221.220.135.110:59896 --> api-ipv4.ip.sb:80 error: dns resolve failed: context deadline exceeded" time="2023-11-30T07:53:07.744674473Z" level=info msg="[TCP] 192.168.24.2:41112 --> www.baidu.com:80 match DomainSuffix(baidu.com) using 🎯 全球直连[DIRECT]" time="2023-11-30T07:53:07.998433124Z" level=info msg="[TCP] 192.168.24.2:40848 --> raw.githubusercontent.com:443 match DomainSuffix(githubusercontent.com) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:53:09.630329779Z" level=debug msg="re-creating the http client due to requesting https://jp.tiar.app:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAABAAE: Get \"https://jp.tiar.app:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAABAAE\": dial tcp 172.104.93.80:443: i/o timeout" time="2023-11-30T07:53:09.630356917Z" level=debug msg="[https://jp.tiar.app:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAABAAE] using HTTP/2 for this upstream: " time="2023-11-30T07:53:09.630406181Z" level=debug msg="[DNS] resolve www.instagram.com from https://dns.alidns.com:443/dns-query" time="2023-11-30T07:53:09.630507696Z" level=debug msg="[DNS] resolve www.instagram.com from https://doh.pub:443/dns-query" time="2023-11-30T07:53:09.630579002Z" level=debug msg="[DNS] resolve www.instagram.com from udp://223.5.5.5:53" time="2023-11-30T07:53:09.630578939Z" level=debug msg="[DNS] resolve www.instagram.com from udp://119.29.29.29:53" time="2023-11-30T07:53:09.630583297Z" level=debug msg="[DNS] resolve www.instagram.com from udp://119.28.28.28:53" time="2023-11-30T07:53:09.630584684Z" level=debug msg="[DNS] resolve www.instagram.com from udp://202.106.195.68:53" time="2023-11-30T07:53:09.634463017Z" level=debug msg="[DNS] www.instagram.com --> [199.59.149.201] A from udp://202.106.195.68:53" time="2023-11-30T07:53:09.634565067Z" level=debug msg="[DNS] resolve www.instagram.com from https://jp.tiar.app:443/dns-query" time="2023-11-30T07:53:09.634628517Z" level=debug msg="[DNS] resolve www.instagram.com from tls://8.8.8.8:853" time="2023-11-30T07:53:09.63463192Z" level=debug msg="[DNS] resolve www.instagram.com from tls://1.1.1.1:853" time="2023-11-30T07:53:10.497190308Z" level=debug msg="[Rule] use default rules" time="2023-11-30T07:53:10.65015501Z" level=info msg="[TCP] 221.220.135.110:59909 --> clients4.google.com:443 match DomainKeyword(google) using 🔰 节点选择[🇨🇳 台湾 01]" time="2023-11-30T07:53:14.631160889Z" level=debug msg="re-creating the http client due to requesting https://jp.tiar.app:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAABAAE: Get \"https://jp.tiar.app:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAABAAE\": context deadline exceeded" time="2023-11-30T07:53:14.631224245Z" level=debug msg="[https://jp.tiar.app:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAABAAE] using HTTP/2 for this upstream: " time="2023-11-30T07:53:14.631271679Z" level=debug msg="re-creating the http client due to requesting https://jp.tiar.app:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAABAAE: Get \"https://jp.tiar.app:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAABAAE\": context deadline exceeded" time="2023-11-30T07:53:14.631280967Z" level=debug msg="[https://jp.tiar.app:443/dns-query?dns=AAABAAABAAAAAAAAA3d3dwlpbnN0YWdyYW0DY29tAAABAAE] using HTTP/2 for this upstream: "

===================== 最近运行日志获取完成(自动切换为silent模式) =====================

===================== 活动连接信息 =====================

  1. SourceIP:【221.220.135.110】 - Host:【alive.github.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【github.com】 - Lastchain:【🇨🇳 台湾 01】
  2. SourceIP:【221.220.135.110】 - Host:【authds.todesk.com】 - DestinationIP:【140.143.217.39】 - Network:【tcp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
  3. SourceIP:【221.220.135.110】 - Host:【private-user-images.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【githubusercontent.com】 - Lastchain:【🇨🇳 台湾 01】
  4. SourceIP:【192.168.22.218】 - Host:【Empty】 - DestinationIP:【49.4.35.247】 - Network:【tcp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
  5. SourceIP:【221.220.135.110】 - Host:【beacons.gcp.gvt2.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【gvt2.com】 - Lastchain:【🇨🇳 台湾 01】
  6. SourceIP:【221.220.135.110】 - Host:【collector.github.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【github.com】 - Lastchain:【🇨🇳 台湾 01】
  7. SourceIP:【221.220.135.110】 - Host:【github.githubassets.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【443】 - Lastchain:【🇨🇳 台湾 01】
  8. SourceIP:【192.168.22.57】 - Host:【Empty】 - DestinationIP:【17.57.145.151】 - Network:【tcp】 - RulePayload:【17.0.0.0/8】 - Lastchain:【🇨🇳 台湾 01】
  9. SourceIP:【192.168.22.92】 - Host:【Empty】 - DestinationIP:【17.57.145.150】 - Network:【tcp】 - RulePayload:【17.0.0.0/8】 - Lastchain:【🇨🇳 台湾 01】
  10. SourceIP:【221.220.135.110】 - Host:【clients4.google.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【google】 - Lastchain:【🇨🇳 台湾 01】
  11. SourceIP:【221.220.135.110】 - Host:【mtalk.google.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【google】 - Lastchain:【🇨🇳 台湾 01】
  12. SourceIP:【221.220.135.110】 - Host:【a.nel.cloudflare.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【443】 - Lastchain:【🇨🇳 台湾 01】
  13. SourceIP:【221.220.135.110】 - Host:【www.baidu.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【baidu.com】 - Lastchain:【DIRECT】
  14. SourceIP:【221.220.135.110】 - Host:【s1.music.126.net】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【126.net】 - Lastchain:【DIRECT】
  15. SourceIP:【221.220.135.110】 - Host:【github.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【github.com】 - Lastchain:【🇨🇳 台湾 01】
  16. SourceIP:【221.220.135.110】 - Host:【www.youtube.com】 - DestinationIP:【108.160.170.45】 - Network:【tcp】 - RulePayload:【youtube.com】 - Lastchain:【🇨🇳 台湾 01】
  17. SourceIP:【221.220.135.110】 - Host:【clients4.google.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【google】 - Lastchain:【🇨🇳 台湾 01】
  18. SourceIP:【221.220.135.110】 - Host:【api.trancy.org】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【443】 - Lastchain:【🇨🇳 台湾 01】
  19. SourceIP:【221.220.135.110】 - Host:【a.nel.cloudflare.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【443】 - Lastchain:【🇨🇳 台湾 01】
  20. SourceIP:【221.220.135.110】 - Host:【www.taobao.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【taobao.com】 - Lastchain:【DIRECT】
  21. SourceIP:【192.168.22.172】 - Host:【25.courier-push-apple.com.akadns.net】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【akadns.net】 - Lastchain:【🇭🇰 香港 01】
  22. SourceIP:【221.220.135.110】 - Host:【content-autofill.googleapis.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【google】 - Lastchain:【🇨🇳 台湾 01】
  23. SourceIP:【192.168.22.218】 - Host:【Empty】 - DestinationIP:【157.148.62.149】 - Network:【tcp】 - RulePayload:【CN】 - Lastchain:【DIRECT】
  24. SourceIP:【221.220.135.110】 - Host:【github.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【github.com】 - Lastchain:【🇨🇳 台湾 01】
  25. SourceIP:【221.220.135.110】 - Host:【api.github.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【github.com】 - Lastchain:【🇨🇳 台湾 01】
  26. SourceIP:【221.220.135.110】 - Host:【clientservices.googleapis.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【google】 - Lastchain:【🇨🇳 台湾 01】
  27. SourceIP:【221.220.135.110】 - Host:【push.services.mozilla.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【443】 - Lastchain:【🇨🇳 台湾 01】
  28. SourceIP:【221.220.135.110】 - Host:【avatars.githubusercontent.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【githubusercontent.com】 - Lastchain:【🇨🇳 台湾 01】
  29. SourceIP:【221.220.135.110】 - Host:【content-autofill.googleapis.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【google】 - Lastchain:【🇨🇳 台湾 01】
  30. SourceIP:【221.220.135.110】 - Host:【edge.microsoft.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【microsoft】 - Lastchain:【🇭🇰 香港 01】
  31. SourceIP:【221.220.135.110】 - Host:【api.ipify.org】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【443】 - Lastchain:【🇨🇳 台湾 01】
  32. SourceIP:【192.168.22.218】 - Host:【mtalk.google.com】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【google】 - Lastchain:【🇨🇳 台湾 01】
  33. SourceIP:【221.220.135.110】 - Host:【whois.pconline.com.cn】 - DestinationIP:【】 - Network:【tcp】 - RulePayload:【cn】 - Lastchain:【DIRECT】


### OpenClash Config

_No response_

### Expected Behavior

不懂为什么会解析失败。应该成功才对。。国外的反而是可以的。国内本地直连,这三个域名确不行

![aa](https://github.com/vernesong/OpenClash/assets/109494974/ab959b4a-b583-40e8-a620-d1d59ca8ae32)

### Screenshots

![bb](https://github.com/vernesong/OpenClash/assets/109494974/dfd23008-3bf0-4c82-ac04-c92c130f2273)
GOUKI9999 commented 1 year ago

v0.45.152 昨天升级后 出现了类似问题,dnsmasq-adguard-opclash三层转发,反复排查发现openclash这里解析失败,尝试了重启,直接劫持dnsmasq等方法均无法解决,也没确定原因,dns端口,配置,dns boottrap和nameserver都确认过没有问题,不变设置情况下回退到[v0.45.141]后问题消失,暂时没有办法提供其他更多参考,但我这边的现象是直连的域名解析似乎都没有问题(没有dns缓存),需要经过代理的分流域名部分会失效

在redir和fakeip下都尝试过,均是解析失败或超时,没有反馈本地ip

nslookup了大概15-20个域名发现的,不一定准确供参考。回退之后还原了各种设置都没有问题,感觉基本可以确定是问题出在152的dns解析这个环节。

xiaolongzhou123 commented 1 year ago

你怎么回退到v0.45.141呀。回退v0.45.141很简单。但是clash,clash_tun,clash_meta。我怎么知道版本号是那个呢? 像现在tun是:2023.08.17-13-gdcc8d87,我在哪里看到v0.45.141的tun版本呢?

GOUKI9999 commented 1 year ago

你怎么回退到v0.45.141呀。回退v0.45.141很简单。但是clash,clash_tun,clash_meta。我怎么知道版本号是那个呢? 像现在tun是:2023.08.17-13-gdcc8d87,我在哪里看到v0.45.141的tun版本呢?

壳虽然依赖核心,但各自关系独立吧,core版本还有和openclash版本需要对应一说?

BlueBenson commented 1 year ago

我也出现了类似问题,后来发现我的问题是机场配置文件里DNS FallBack引起的,具体还没研究,但是我发现把DNS覆写自定义配置DNS打开,运行配置文件重写fallback dns配置仅为8.8.4.4 853 端口 tls 后就恢复了。

xiaolongzhou123 commented 1 year ago

一样的配置。我这个op是比较新的内核。重新编译回5.15版本。。一样的配置。啥事情都没有了。。完美运行。。

github-actions[bot] commented 10 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days