Open donnieYeh opened 3 weeks ago
Windows
Windows 11 专业版/22H2/22621.4317
Mihomo Meta v1.18.7 windows amd64 with go1.22.5 Sun Jul 28 05:48:59 UTC 2024 Use tags: with_gvisor
external-controller: 127.0.0.1:9090 bind-address: "*" port: 7890 socks-port: 7891 allow-lan: true mode: Rule log-level: debug tun: stack: system device: Mihomo auto-route: true strict-route: false auto-detect-interface: true dns-hijack: - any:53 mtu: 1500 enable: true dns: enable: true ipv6: false listen: 0.0.0.0:53 # 开启 DNS 服务器监听 default-nameserver: - 223.5.5.5 - 119.29.29.29 enhanced-mode: fake-ip fake-ip-range: 198.20.0.1/16 use-hosts: true nameserver: - https://doh.pub/dns-query - https://dns.alidns.com/dns-query fallback: - https://doh.dns.sb/dns-query - https://dns.cloudflare.com/dns-query - https://dns.twnic.tw/dns-query - tls://8.8.4.4:853 fallback-filter: geoip: true ipcidr: - 240.0.0.0/4 - 0.0.0.0/32 use-system-hosts: false proxies: - name: hk type: ss server: x port: x cipher: x password: x udp: true proxy-groups: - name: 🚀 节点选择 type: select proxies: - hk rules: - DST-PORT,7895,REJECT - DST-PORT,7892,REJECT - DST-PORT,22,DIRECT - DOMAIN-KEYWORD,dedebi,DIRECT - SRC-IP-CIDR,198.20.0.1/16,DIRECT - GEOSITE,category-public-tracker,DIRECT - DOMAIN,cf.proxyinfo.net,DIRECT - DOMAIN,proxyinfo.net,DIRECT - DOMAIN,1.xn--xc3ao8r.top,DIRECT - IP-CIDR,127.0.0.0/8,DIRECT - IP-CIDR,172.16.0.0/12,DIRECT - IP-CIDR,192.168.0.0/16,DIRECT - IP-CIDR,10.0.0.0/8,DIRECT - IP-CIDR,17.0.0.0/8,DIRECT - IP-CIDR,100.64.0.0/10,DIRECT - IP-CIDR,224.0.0.0/4,DIRECT - IP-CIDR6,fe80::/10,DIRECT - DOMAIN-SUFFIX,cn,DIRECT - DOMAIN-KEYWORD,-cn,DIRECT - GEOIP,CN,DIRECT - DST-PORT,80,🚀 节点选择 - DST-PORT,443,🚀 节点选择 - MATCH,🚀 节点选择
开启tun(system)后,向default-nameserver(如119.29.29.29:53)的DNS请求,会被DNS劫持并返回fakeip,导致请求死循环了。
开启tun(system)即可复现
time="2024-11-07T08:26:54.0344078+08:00" level=info msg="Start initial configuration in progress" time="2024-11-07T08:26:54.0409355+08:00" level=info msg="Geodata Loader mode: memconservative" time="2024-11-07T08:26:54.0409355+08:00" level=info msg="Geosite Matcher implementation: succinct" time="2024-11-07T08:26:54.2279009+08:00" level=info msg="Start initial GeoSite rule category-public-tracker => DIRECT, records: 174" time="2024-11-07T08:26:54.2318385+08:00" level=info msg="Initial configuration complete, total time: 190ms" time="2024-11-07T08:26:54.2328122+08:00" level=info msg="RESTful API listening at: 127.0.0.1:9090" time="2024-11-07T08:26:54.2328122+08:00" level=info msg="Sniffer is closed" time="2024-11-07T08:26:54.2337858+08:00" level=info msg="DNS server listening at: [::]:53" time="2024-11-07T08:26:54.2337858+08:00" level=info msg="HTTP proxy listening at: [::]:7890" time="2024-11-07T08:26:54.2337858+08:00" level=info msg="SOCKS proxy listening at: [::]:7891" time="2024-11-07T08:26:54.2347588+08:00" level=warning msg="[TUN] default interface changed by monitor, => WIFI" time="2024-11-07T08:26:54.7839577+08:00" level=info msg="[TUN] Tun adapter listening at: Mihomo([198.20.0.1/30],[]), mtu: 1500, auto route: true, auto redir: false, ip stack: System" time="2024-11-07T08:26:54.7855919+08:00" level=info msg="Start initial Compatible provider default" time="2024-11-07T08:26:54.7855919+08:00" level=info msg="Start initial Compatible provider 🚀 节点选择" time="2024-11-07T08:26:54.7855919+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:54.7860976+08:00" level=info msg="Load MMDB file: C:\\Users\\donnie/.config/mihomo/geoip.metadb" time="2024-11-07T08:26:54.7871367+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top A from https://dns.alidns.com:443/dns-query" time="2024-11-07T08:26:54.7871367+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top AAAA from https://dns.alidns.com:443/dns-query" time="2024-11-07T08:26:54.7871367+08:00" level=debug msg="creating a new http client" time="2024-11-07T08:26:54.7871367+08:00" level=debug msg="[https://dns.alidns.com:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:54.7871367+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top AAAA from https://doh.pub:443/dns-query" time="2024-11-07T08:26:54.7881748+08:00" level=debug msg="creating a new http client" time="2024-11-07T08:26:54.7876566+08:00" level=debug msg="[DNS] resolve dns.alidns.com AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:54.7881748+08:00" level=debug msg="[https://doh.pub:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:54.7876566+08:00" level=debug msg="[DNS] resolve dns.alidns.com A from udp://223.5.5.5:53" time="2024-11-07T08:26:54.7871367+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top A from https://doh.pub:443/dns-query" time="2024-11-07T08:26:54.7876566+08:00" level=debug msg="[DNS] resolve dns.alidns.com A from udp://119.29.29.29:53" time="2024-11-07T08:26:54.7887011+08:00" level=debug msg="[DNS] resolve doh.pub A from udp://223.5.5.5:53" time="2024-11-07T08:26:54.7887011+08:00" level=debug msg="[DNS] resolve doh.pub AAAA from udp://223.5.5.5:53" time="2024-11-07T08:26:54.7876566+08:00" level=debug msg="[DNS] resolve dns.alidns.com AAAA from udp://223.5.5.5:53" time="2024-11-07T08:26:54.7887011+08:00" level=debug msg="[DNS] resolve doh.pub AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:54.7887011+08:00" level=debug msg="[DNS] resolve doh.pub A from udp://119.29.29.29:53" time="2024-11-07T08:26:54.816619+08:00" level=debug msg="[DNS] hijack udp:119.29.29.29:53 from 192.168.3.40:63136" time="2024-11-07T08:26:54.816619+08:00" level=info msg="[TCP] 198.20.0.1:6508 --> 183.47.124.77:80 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:54.816619+08:00" level=debug msg="[DNS] hijack udp:223.5.5.5:53 from 192.168.3.40:63132" time="2024-11-07T08:26:54.816619+08:00" level=debug msg="[DNS] hijack udp:223.5.5.5:53 from 192.168.3.40:63135" time="2024-11-07T08:26:54.816619+08:00" level=debug msg="[DNS] hijack udp:223.5.5.5:53 from 192.168.3.40:63137" time="2024-11-07T08:26:54.8171468+08:00" level=info msg="[TCP] 198.20.0.1:6506 --> 183.60.8.218:80 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:54.8171468+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:54.8171468+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:54.8171468+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:54.816619+08:00" level=info msg="[TCP] 198.20.0.1:6509 --> 106.39.206.21:443 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:54.8176754+08:00" level=debug msg="[DNS] doh.pub --> [] AAAA from udp://223.5.5.5:53" time="2024-11-07T08:26:54.816619+08:00" level=debug msg="[DNS] hijack udp:119.29.29.29:53 from 192.168.3.40:63133" time="2024-11-07T08:26:54.8192236+08:00" level=warning msg="[TCP] dial DIRECT (match GeoIP/cn) 192.168.3.40:6513 --> 119.147.19.113:443 error: reject loopback connection to: 119.147.19.113:443" time="2024-11-07T08:26:54.816619+08:00" level=debug msg="[DNS] hijack udp:119.29.29.29:53 from 192.168.3.40:63134" time="2024-11-07T08:26:54.816619+08:00" level=debug msg="[DNS] hijack udp:119.29.29.29:53 from 192.168.3.40:63138" time="2024-11-07T08:26:54.8171468+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:54.816619+08:00" level=info msg="[TCP] 198.20.0.1:6507 --> 119.147.19.113:443 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:54.816619+08:00" level=debug msg="[DNS] hijack udp:223.5.5.5:53 from 192.168.3.40:63139" time="2024-11-07T08:26:54.8207762+08:00" level=debug msg="[DNS] doh.pub --> [198.20.0.4] A from udp://119.29.29.29:53" time="2024-11-07T08:26:54.8181952+08:00" level=debug msg="[DNS] doh.pub --> [198.20.0.4] A from udp://223.5.5.5:53" time="2024-11-07T08:26:54.8208725+08:00" level=warning msg="[TCP] dial DIRECT (match GeoIP/cn) 192.168.3.40:6512 --> 183.47.124.77:80 error: reject loopback connection to: 183.47.124.77:80" time="2024-11-07T08:26:54.8181952+08:00" level=debug msg="[DNS] dns.alidns.com --> [] AAAA from udp://223.5.5.5:53" time="2024-11-07T08:26:54.8213782+08:00" level=debug msg="[DNS] dns.alidns.com --> [198.20.0.5] A from udp://223.5.5.5:53" time="2024-11-07T08:26:54.8197441+08:00" level=warning msg="[TCP] dial DIRECT (match GeoIP/cn) 192.168.3.40:6515 --> 183.60.8.218:80 error: reject loopback connection to: 183.60.8.218:80" time="2024-11-07T08:26:54.8171468+08:00" level=debug msg="[DNS] doh.pub --> [] AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:54.8192236+08:00" level=warning msg="[TCP] dial DIRECT (match GeoIP/cn) 192.168.3.40:6514 --> 106.39.206.21:443 error: reject loopback connection to: 106.39.206.21:443" time="2024-11-07T08:26:54.8197441+08:00" level=debug msg="[DNS] dns.alidns.com --> [] AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:54.8202596+08:00" level=debug msg="[DNS] dns.alidns.com --> [198.20.0.5] A from udp://119.29.29.29:53" time="2024-11-07T08:26:54.8240116+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:54.8356998+08:00" level=debug msg="[DNS] resolve doh.pub A from https://doh.pub:443/dns-query" time="2024-11-07T08:26:54.8356998+08:00" level=debug msg="[DNS] resolve doh.pub AAAA from https://dns.alidns.com:443/dns-query" time="2024-11-07T08:26:54.8362298+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:54.8356998+08:00" level=debug msg="[DNS] resolve doh.pub A from https://dns.alidns.com:443/dns-query" time="2024-11-07T08:26:54.8356998+08:00" level=debug msg="[DNS] resolve doh.pub AAAA from https://doh.pub:443/dns-query" time="2024-11-07T08:26:54.8377975+08:00" level=debug msg="[DNS] resolve dns.alidns.com A from https://dns.alidns.com:443/dns-query" time="2024-11-07T08:26:54.8377975+08:00" level=debug msg="[DNS] resolve dns.alidns.com AAAA from https://dns.alidns.com:443/dns-query" time="2024-11-07T08:26:54.8377975+08:00" level=debug msg="[DNS] resolve dns.alidns.com A from https://doh.pub:443/dns-query" time="2024-11-07T08:26:54.8377975+08:00" level=debug msg="[DNS] resolve dns.alidns.com AAAA from https://doh.pub:443/dns-query" time="2024-11-07T08:26:54.9924023+08:00" level=debug msg="[DNS] hijack udp:198.20.0.2:53 from 198.20.0.1:61511" time="2024-11-07T08:26:54.9924023+08:00" level=debug msg="[DNS] resolve www.msftconnecttest.com A from https://dns.alidns.com:443/dns-query" time="2024-11-07T08:26:54.9924023+08:00" level=debug msg="[DNS] resolve www.msftconnecttest.com A from https://doh.pub:443/dns-query" time="2024-11-07T08:26:55.9018338+08:00" level=debug msg="[DNS] hijack udp:198.20.0.2:53 from 198.20.0.1:50880" time="2024-11-07T08:26:56.0711718+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:56.0711718+08:00" level=debug msg="[DNS] resolve mtalk.google.com A from https://dns.alidns.com:443/dns-query" time="2024-11-07T08:26:56.0711718+08:00" level=debug msg="[DNS] resolve mtalk.google.com AAAA from https://dns.alidns.com:443/dns-query" time="2024-11-07T08:26:56.0711718+08:00" level=debug msg="[DNS] resolve mtalk.google.com AAAA from https://doh.pub:443/dns-query" time="2024-11-07T08:26:56.0711718+08:00" level=debug msg="[DNS] resolve mtalk.google.com A from https://doh.pub:443/dns-query" time="2024-11-07T08:26:56.597606+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:56.5981121+08:00" level=info msg="[TCP] 198.20.0.1:6521 --> 183.47.121.104:80 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:56.5981121+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:56.5991593+08:00" level=warning msg="[TCP] dial DIRECT (match GeoIP/cn) 192.168.3.40:6522 --> 183.47.121.104:80 error: reject loopback connection to: 183.47.121.104:80" time="2024-11-07T08:26:56.6070543+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:56.6083222+08:00" level=info msg="[TCP] 198.20.0.1:6523 --> 183.47.124.53:80 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:56.6088568+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:56.6088568+08:00" level=warning msg="[TCP] dial DIRECT (match GeoIP/cn) 192.168.3.40:6524 --> 183.47.124.53:80 error: reject loopback connection to: 183.47.124.53:80" time="2024-11-07T08:26:56.631441+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:56.631441+08:00" level=debug msg="[DNS] resolve weixin.qq.com A from https://dns.alidns.com:443/dns-query" time="2024-11-07T08:26:56.631441+08:00" level=debug msg="[DNS] resolve weixin.qq.com AAAA from https://dns.alidns.com:443/dns-query" time="2024-11-07T08:26:56.631441+08:00" level=debug msg="[DNS] resolve weixin.qq.com AAAA from https://doh.pub:443/dns-query" time="2024-11-07T08:26:56.631441+08:00" level=debug msg="[DNS] resolve weixin.qq.com A from https://doh.pub:443/dns-query" time="2024-11-07T08:26:56.6931806+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:56.6936933+08:00" level=info msg="[TCP] 198.20.0.1:6526 --> 183.47.118.249:80 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:56.6936933+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:56.6942225+08:00" level=warning msg="[TCP] dial DIRECT (match GeoIP/cn) 192.168.3.40:6527 --> 183.47.118.249:80 error: reject loopback connection to: 183.47.118.249:80" time="2024-11-07T08:26:56.8950681+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:56.8962391+08:00" level=info msg="[TCP] 198.20.0.1:6528 --> 198.18.0.192:443 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:56.8962391+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:57.1689957+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:57.1708152+08:00" level=info msg="[TCP] 198.20.0.1:6530 --> 183.60.8.69:80 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:57.1716422+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:57.1734058+08:00" level=warning msg="[TCP] dial DIRECT (match GeoIP/cn) 192.168.3.40:6531 --> 183.60.8.69:80 error: reject loopback connection to: 183.60.8.69:80" time="2024-11-07T08:26:57.7086885+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:57.7097096+08:00" level=info msg="[TCP] 198.20.0.1:6532 --> 14.116.242.250:80 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:57.7097096+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:57.7118208+08:00" level=warning msg="[TCP] dial DIRECT (match GeoIP/cn) 192.168.3.40:6533 --> 14.116.242.250:80 error: reject loopback connection to: 14.116.242.250:80" time="2024-11-07T08:26:57.7150514+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:57.7155729+08:00" level=info msg="[TCP] 198.20.0.1:6534 --> 183.47.124.77:80 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:57.7155729+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:57.7155729+08:00" level=warning msg="[TCP] dial DIRECT (match GeoIP/cn) 192.168.3.40:6535 --> 183.47.124.77:80 error: reject loopback connection to: 183.47.124.77:80" time="2024-11-07T08:26:57.7503291+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:57.7508645+08:00" level=info msg="[TCP] 198.20.0.1:6536 --> 183.60.8.218:80 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:57.7508645+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:57.7513788+08:00" level=warning msg="[TCP] dial DIRECT (match GeoIP/cn) 192.168.3.40:6537 --> 183.60.8.218:80 error: reject loopback connection to: 183.60.8.218:80" time="2024-11-07T08:26:57.8011579+08:00" level=debug msg="[DNS] hijack udp:198.20.0.2:53 from 198.20.0.1:60222" time="2024-11-07T08:26:57.8225661+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:57.8225661+08:00" level=debug msg="[DNS] resolve dns.weixin.qq.com.cn AAAA from https://dns.alidns.com:443/dns-query" time="2024-11-07T08:26:57.8225661+08:00" level=debug msg="[DNS] resolve dns.weixin.qq.com.cn A from https://doh.pub:443/dns-query" time="2024-11-07T08:26:57.8225661+08:00" level=debug msg="[DNS] resolve dns.weixin.qq.com.cn A from https://dns.alidns.com:443/dns-query" time="2024-11-07T08:26:57.8225661+08:00" level=debug msg="[DNS] resolve dns.weixin.qq.com.cn AAAA from https://doh.pub:443/dns-query" time="2024-11-07T08:26:57.8743689+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:57.8754033+08:00" level=info msg="[TCP] 198.20.0.1:6541 --> 198.18.2.44:80 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:57.8754033+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:58.5951206+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:58.5963872+08:00" level=info msg="[TCP] 198.20.0.1:6547 --> 183.47.118.249:80 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:58.5963872+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:58.5968927+08:00" level=warning msg="[TCP] dial DIRECT (match GeoIP/cn) 192.168.3.40:6548 --> 183.47.118.249:80 error: reject loopback connection to: 183.47.118.249:80" time="2024-11-07T08:26:59.597965+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:59.5984713+08:00" level=info msg="[TCP] 198.20.0.1:6551 --> 183.60.8.150:80 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:59.5984713+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:59.5995271+08:00" level=warning msg="[TCP] dial DIRECT (match GeoIP/cn) 192.168.3.40:6552 --> 183.60.8.150:80 error: reject loopback connection to: 183.60.8.150:80" time="2024-11-07T08:26:59.6053424+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:59.6058759+08:00" level=info msg="[TCP] 198.20.0.1:6553 --> 183.47.124.53:80 match SrcIPCIDR(198.20.0.1/16) using DIRECT" time="2024-11-07T08:26:59.6058759+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:59.6058759+08:00" level=warning msg="[TCP] dial DIRECT (match GeoIP/cn) 192.168.3.40:6554 --> 183.47.124.53:80 error: reject loopback connection to: 183.47.124.53:80" time="2024-11-07T08:26:59.7875488+08:00" level=debug msg="re-creating the http client due to requesting https://dns.alidns.com:443/dns-query: Get \"https://dns.alidns.com:443/dns-query?dns=AAABAAABAAAAAAAABWhrLTAxBHp6amMDdG9wAAABAAE\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)" time="2024-11-07T08:26:59.7880548+08:00" level=debug msg="[DNS] resolve dns.alidns.com AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:59.7875488+08:00" level=warning msg="[TCP] dial 🚀 节点选择 (match DstPort/80) 192.168.3.40:6510 --> 203.69.81.58:80 error: hk-01.zzjc.top:34561 connect error: dns resolve failed: couldn't find ip" time="2024-11-07T08:26:59.7875488+08:00" level=debug msg="re-creating the http client due to requesting https://doh.pub:443/dns-query: Get \"https://doh.pub:443/dns-query?dns=AAABAAABAAAAAAAABWhrLTAxBHp6amMDdG9wAAABAAE\": context deadline exceeded" time="2024-11-07T08:26:59.789797+08:00" level=debug msg="[DNS] hijack udp:119.29.29.29:53 from 192.168.3.40:50336" time="2024-11-07T08:26:59.7875488+08:00" level=debug msg="[DNS] resolve doh.pub AAAA from udp://223.5.5.5:53" time="2024-11-07T08:26:59.7885764+08:00" level=debug msg="[https://dns.alidns.com:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.789797+08:00" level=debug msg="[https://doh.pub:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.7903017+08:00" level=debug msg="[DNS] hijack udp:223.5.5.5:53 from 192.168.3.40:50337" time="2024-11-07T08:26:59.7903017+08:00" level=debug msg="[DNS] dns.alidns.com --> [] AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:59.7885764+08:00" level=debug msg="[DNS] resolve dns.alidns.com AAAA from udp://223.5.5.5:53" time="2024-11-07T08:26:59.7903017+08:00" level=debug msg="re-creating the http client due to requesting https://dns.alidns.com:443/dns-query: Get \"https://dns.alidns.com:443/dns-query?dns=AAABAAABAAAAAAAABWhrLTAxBHp6amMDdG9wAAAcAAE\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)" time="2024-11-07T08:26:59.7913263+08:00" level=debug msg="[https://dns.alidns.com:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.7908124+08:00" level=debug msg="re-creating the http client due to requesting https://doh.pub:443/dns-query: Get \"https://doh.pub:443/dns-query?dns=AAABAAABAAAAAAAABWhrLTAxBHp6amMDdG9wAAABAAE\": context deadline exceeded" time="2024-11-07T08:26:59.7875488+08:00" level=debug msg="[DNS] cache hit doh.pub --> [198.20.0.4] A, expire at 2024-11-07 08:26:55" time="2024-11-07T08:26:59.7875488+08:00" level=debug msg="[DNS] resolve doh.pub AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:59.7918413+08:00" level=debug msg="re-creating the http client due to requesting https://dns.alidns.com:443/dns-query: Get \"https://dns.alidns.com:443/dns-query?dns=AAABAAABAAAAAAAABWhrLTAxBHp6amMDdG9wAAAcAAE\": context deadline exceeded" time="2024-11-07T08:26:59.7923541+08:00" level=debug msg="[https://dns.alidns.com:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.7908124+08:00" level=debug msg="[DNS] doh.pub --> [] AAAA from udp://223.5.5.5:53" time="2024-11-07T08:26:59.7885764+08:00" level=debug msg="[DNS] cache hit dns.alidns.com --> [198.20.0.5] A, expire at 2024-11-07 08:26:55" time="2024-11-07T08:26:59.7928705+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top AAAA from tls://8.8.4.4:853" time="2024-11-07T08:26:59.7918413+08:00" level=debug msg="[DNS] resolve doh.pub A from udp://223.5.5.5:53" time="2024-11-07T08:26:59.7928705+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top AAAA from https://doh.dns.sb:443/dns-query" time="2024-11-07T08:26:59.7939114+08:00" level=debug msg="creating a new http client" time="2024-11-07T08:26:59.7913263+08:00" level=debug msg="[DNS] hijack udp:223.5.5.5:53 from 192.168.3.40:50338" time="2024-11-07T08:26:59.7933862+08:00" level=debug msg="[DNS] resolve dns.alidns.com A from udp://119.29.29.29:53" time="2024-11-07T08:26:59.7939114+08:00" level=debug msg="[DNS] hijack udp:223.5.5.5:53 from 192.168.3.40:50340" time="2024-11-07T08:26:59.7933862+08:00" level=debug msg="[DNS] resolve dns.alidns.com A from udp://223.5.5.5:53" time="2024-11-07T08:26:59.7928705+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top AAAA from https://dns.cloudflare.com:443/dns-query" time="2024-11-07T08:26:59.7949331+08:00" level=debug msg="creating a new http client" time="2024-11-07T08:26:59.7949331+08:00" level=debug msg="[https://dns.cloudflare.com:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.7944247+08:00" level=debug msg="[DNS] dns.alidns.com --> [] AAAA from udp://223.5.5.5:53" time="2024-11-07T08:26:59.7918413+08:00" level=debug msg="[DNS] resolve doh.pub A from udp://119.29.29.29:53" time="2024-11-07T08:26:59.7923541+08:00" level=debug msg="[DNS] hijack udp:119.29.29.29:53 from 192.168.3.40:50339" time="2024-11-07T08:26:59.7918413+08:00" level=debug msg="[https://doh.pub:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.7928705+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top AAAA from https://dns.twnic.tw:443/dns-query" time="2024-11-07T08:26:59.7965394+08:00" level=debug msg="creating a new http client" time="2024-11-07T08:26:59.7959693+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:59.7959693+08:00" level=debug msg="[DNS] hijack udp:119.29.29.29:53 from 192.168.3.40:50343" time="2024-11-07T08:26:59.7959693+08:00" level=debug msg="[DNS] doh.pub --> [] AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:59.7944247+08:00" level=debug msg="[DNS] hijack udp:119.29.29.29:53 from 192.168.3.40:50341" time="2024-11-07T08:26:59.8119066+08:00" level=debug msg="[DNS] doh.pub --> [198.20.0.4] A from udp://119.29.29.29:53" time="2024-11-07T08:26:59.7939114+08:00" level=debug msg="[https://doh.dns.sb:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.8108489+08:00" level=debug msg="[https://dns.twnic.tw:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.7944247+08:00" level=debug msg="[DNS] doh.pub --> [198.20.0.4] A from udp://223.5.5.5:53" time="2024-11-07T08:26:59.7949331+08:00" level=debug msg="[DNS] hijack udp:223.5.5.5:53 from 192.168.3.40:50342" time="2024-11-07T08:26:59.8129648+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top AAAA from https://doh.pub:443/dns-query" time="2024-11-07T08:26:59.7964874+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top A from https://doh.dns.sb:443/dns-query" time="2024-11-07T08:26:59.8124497+08:00" level=debug msg="[DNS] dns.alidns.com --> [198.20.0.5] A from udp://119.29.29.29:53" time="2024-11-07T08:26:59.7964874+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top A from https://dns.cloudflare.com:443/dns-query" time="2024-11-07T08:26:59.7964874+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top A from https://dns.twnic.tw:443/dns-query" time="2024-11-07T08:26:59.8124497+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:59.7964874+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top A from tls://8.8.4.4:853" time="2024-11-07T08:26:59.8145499+08:00" level=debug msg="re-creating the http client due to requesting https://doh.dns.sb:443/dns-query: Get \"https://doh.dns.sb:443/dns-query?dns=AAABAAABAAAAAAAABWhrLTAxBHp6amMDdG9wAAABAAE\": context deadline exceeded" time="2024-11-07T08:26:59.8140266+08:00" level=debug msg="[DNS] dns.alidns.com --> [198.20.0.5] A from udp://223.5.5.5:53" time="2024-11-07T08:26:59.8155714+08:00" level=debug msg="[https://doh.dns.sb:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.8140266+08:00" level=debug msg="[DNS] resolve doh.pub AAAA from udp://223.5.5.5:53" time="2024-11-07T08:26:59.8140266+08:00" level=debug msg="[DNS] cache hit doh.pub --> [198.20.0.4] A, expire at 2024-11-07 08:27:00" time="2024-11-07T08:26:59.8129648+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top AAAA from https://dns.alidns.com:443/dns-query" time="2024-11-07T08:26:59.8155714+08:00" level=debug msg="re-creating the http client due to requesting https://doh.dns.sb:443/dns-query: Get \"https://doh.dns.sb:443/dns-query?dns=AAABAAABAAAAAAAABWhrLTAxBHp6amMDdG9wAAABAAE\": context deadline exceeded" time="2024-11-07T08:26:59.8140266+08:00" level=debug msg="[DNS] resolve doh.pub AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:59.8160834+08:00" level=debug msg="[DNS] hijack udp:223.5.5.5:53 from 192.168.3.40:50344" time="2024-11-07T08:26:59.8150579+08:00" level=debug msg="re-creating the http client due to requesting https://dns.twnic.tw:443/dns-query: Get \"https://dns.twnic.tw:443/dns-query?dns=AAABAAABAAAAAAAABWhrLTAxBHp6amMDdG9wAAABAAE\": context deadline exceeded" time="2024-11-07T08:26:59.8171066+08:00" level=debug msg="[https://dns.twnic.tw:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.8165955+08:00" level=debug msg="[DNS] resolve dns.alidns.com AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:59.8171066+08:00" level=debug msg="[DNS] hijack udp:119.29.29.29:53 from 192.168.3.40:50345" time="2024-11-07T08:26:59.8165955+08:00" level=debug msg="[DNS] resolve dns.alidns.com AAAA from udp://223.5.5.5:53" time="2024-11-07T08:26:59.8176188+08:00" level=debug msg="re-creating the http client due to requesting https://dns.twnic.tw:443/dns-query: Get \"https://dns.twnic.tw:443/dns-query?dns=AAABAAABAAAAAAAABWhrLTAxBHp6amMDdG9wAAABAAE\": context deadline exceeded" time="2024-11-07T08:26:59.8171066+08:00" level=debug msg="[DNS] doh.pub --> [] AAAA from udp://223.5.5.5:53" time="2024-11-07T08:26:59.8145499+08:00" level=debug msg="re-creating the http client due to requesting https://dns.cloudflare.com:443/dns-query: Get \"https://dns.cloudflare.com:443/dns-query?dns=AAABAAABAAAAAAAABWhrLTAxBHp6amMDdG9wAAABAAE\": context deadline exceeded" time="2024-11-07T08:26:59.8181322+08:00" level=debug msg="[DNS] hijack udp:119.29.29.29:53 from 192.168.3.40:50346" time="2024-11-07T08:26:59.8181322+08:00" level=debug msg="[DNS] doh.pub --> [] AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:59.8165955+08:00" level=debug msg="[DNS] cache hit dns.alidns.com --> [198.20.0.5] A, expire at 2024-11-07 08:27:00" time="2024-11-07T08:26:59.8186777+08:00" level=debug msg="[DNS] hijack udp:223.5.5.5:53 from 192.168.3.40:50347" time="2024-11-07T08:26:59.8165955+08:00" level=debug msg="[https://doh.dns.sb:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.8186777+08:00" level=debug msg="[https://dns.cloudflare.com:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.8196992+08:00" level=debug msg="[DNS] dns.alidns.com --> [] AAAA from udp://223.5.5.5:53" time="2024-11-07T08:26:59.8191875+08:00" level=debug msg="[DNS] dns.alidns.com --> [] AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:59.8186777+08:00" level=debug msg="[https://dns.twnic.tw:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.822598+08:00" level=debug msg="re-creating the http client due to requesting https://dns.cloudflare.com:443/dns-query: Get \"https://dns.cloudflare.com:443/dns-query?dns=AAABAAABAAAAAAAABWhrLTAxBHp6amMDdG9wAAABAAE\": context deadline exceeded" time="2024-11-07T08:26:59.8236557+08:00" level=debug msg="[https://dns.cloudflare.com:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.8191875+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:59.8236557+08:00" level=debug msg="[Rule] use default rules" time="2024-11-07T08:26:59.824169+08:00" level=warning msg="[TCP] dial 🚀 节点选择 (match DstPort/80) 192.168.3.40:6542 --> 198.18.2.44:80 error: hk-01.zzjc.top:34561 connect error: dns resolve failed: couldn't find ip" time="2024-11-07T08:26:59.824169+08:00" level=warning msg="[TCP] dial 🚀 节点选择 (match DstPort/443) 192.168.3.40:6529 --> 198.18.0.192:443 error: hk-01.zzjc.top:34561 connect error: dns resolve failed: couldn't find ip" time="2024-11-07T08:26:59.824169+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top A from https://doh.pub:443/dns-query" time="2024-11-07T08:26:59.824169+08:00" level=debug msg="[DNS] resolve hk-01.zzjc.top A from https://dns.alidns.com:443/dns-query" time="2024-11-07T08:26:59.8365016+08:00" level=debug msg="[DNS] resolve doh.pub error: couldn't find ip" time="2024-11-07T08:26:59.8365016+08:00" level=debug msg="re-creating the http client due to requesting https://doh.pub:443/dns-query: Get \"https://doh.pub:443/dns-query?dns=AAABAAABAAAAAAAAA2RvaANwdWIAAAEAAQ\": context deadline exceeded" time="2024-11-07T08:26:59.8365016+08:00" level=debug msg="re-creating the http client due to requesting https://dns.alidns.com:443/dns-query: Get \"https://dns.alidns.com:443/dns-query?dns=AAABAAABAAAAAAAAA2RvaANwdWIAAAEAAQ\": context deadline exceeded" time="2024-11-07T08:26:59.8370454+08:00" level=debug msg="[https://dns.alidns.com:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.8365016+08:00" level=debug msg="[DNS] resolve doh.pub AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:59.8370454+08:00" level=debug msg="re-creating the http client due to requesting https://dns.alidns.com:443/dns-query: Get \"https://dns.alidns.com:443/dns-query?dns=AAABAAABAAAAAAAAA2RvaANwdWIAABwAAQ\": context deadline exceeded" time="2024-11-07T08:26:59.8370454+08:00" level=debug msg="[https://doh.pub:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.8375589+08:00" level=debug msg="[https://dns.alidns.com:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.8375589+08:00" level=debug msg="re-creating the http client due to requesting https://doh.pub:443/dns-query: Get \"https://doh.pub:443/dns-query?dns=AAABAAABAAAAAAAAA2RvaANwdWIAABwAAQ\": context deadline exceeded" time="2024-11-07T08:26:59.8380747+08:00" level=debug msg="[https://doh.pub:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.8385866+08:00" level=debug msg="re-creating the http client due to requesting https://doh.pub:443/dns-query: Get \"https://doh.pub:443/dns-query?dns=AAABAAABAAAAAAAAA2RvaANwdWIAABwAAQ\": context deadline exceeded" time="2024-11-07T08:26:59.8380747+08:00" level=debug msg="re-creating the http client due to requesting https://dns.alidns.com:443/dns-query: Get \"https://dns.alidns.com:443/dns-query?dns=AAABAAABAAAAAAAAA2RvaANwdWIAABwAAQ\": context deadline exceeded" time="2024-11-07T08:26:59.8380747+08:00" level=debug msg="[DNS] resolve dns.alidns.com error: couldn't find ip" time="2024-11-07T08:26:59.8365016+08:00" level=debug msg="[DNS] resolve dns.alidns.com AAAA from udp://223.5.5.5:53" time="2024-11-07T08:26:59.8365016+08:00" level=debug msg="[DNS] resolve dns.alidns.com AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:59.8375589+08:00" level=debug msg="[DNS] hijack udp:119.29.29.29:53 from 192.168.3.40:50349" time="2024-11-07T08:26:59.8391311+08:00" level=debug msg="[https://dns.alidns.com:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.8365016+08:00" level=debug msg="[DNS] cache hit dns.alidns.com --> [198.20.0.5] A, expire at 2024-11-07 08:27:00" time="2024-11-07T08:26:59.8365016+08:00" level=debug msg="[DNS] resolve doh.pub AAAA from udp://223.5.5.5:53" time="2024-11-07T08:26:59.8385866+08:00" level=debug msg="[https://doh.pub:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.8365016+08:00" level=debug msg="[DNS] cache hit doh.pub --> [198.20.0.4] A, expire at 2024-11-07 08:27:00" time="2024-11-07T08:26:59.8401554+08:00" level=debug msg="[DNS] cache hit dns.alidns.com --> [198.20.0.5] A, expire at 2024-11-07 08:27:00" time="2024-11-07T08:26:59.8396419+08:00" level=debug msg="[DNS] hijack udp:119.29.29.29:53 from 192.168.3.40:50351" time="2024-11-07T08:26:59.8401554+08:00" level=debug msg="re-creating the http client due to requesting https://doh.pub:443/dns-query: Get \"https://doh.pub:443/dns-query?dns=AAABAAABAAAAAAAAA2RvaANwdWIAAAEAAQ\": context deadline exceeded" time="2024-11-07T08:26:59.8411797+08:00" level=debug msg="[https://doh.pub:443/dns-query] using HTTP/2 for this upstream: <nil>" time="2024-11-07T08:26:59.8396419+08:00" level=debug msg="[DNS] doh.pub --> [] AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:59.8401554+08:00" level=debug msg="[DNS] resolve doh.pub AAAA from https://dns.twnic.tw:443/dns-query" time="2024-11-07T08:26:59.8411797+08:00" level=debug msg="[DNS] dns.alidns.com --> [] AAAA from udp://119.29.29.29:53" time="2024-11-07T08:26:59.8391311+08:00" level=debug msg="[DNS] hijack udp:223.5.5.5:53 from 192.168.3.40:50350"
验证步骤
操作系统
Windows
系统版本
Windows 11 专业版/22H2/22621.4317
Mihomo 版本
Mihomo Meta v1.18.7 windows amd64 with go1.22.5 Sun Jul 28 05:48:59 UTC 2024 Use tags: with_gvisor
配置文件
描述
开启tun(system)后,向default-nameserver(如119.29.29.29:53)的DNS请求,会被DNS劫持并返回fakeip,导致请求死循环了。
重现方式
开启tun(system)即可复现
日志