From 2fe85cffd9b9c35eafbc577d2ad7e392d69b54f8 Mon Sep 17 00:00:00 2001 From: zhanglixing Date: Sat, 23 May 2026 16:50:51 +0800 Subject: [PATCH] =?UTF-8?q?DNS=20=E6=A8=A1=E5=9D=97=E6=95=B4=E4=BD=93?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=EF=BC=8C=E6=94=B9=E7=94=A8=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=20DNS=20+=20sniffer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除 dns 段,让 Windows/路由器 DNS 接管,避免节点域名解析受 mihomo DNS 配置影响 - 保留 sniffer 从 TLS SNI/HTTP Host/QUIC 嗅域名,保证基于域名的分流照常生效 - 代理流量在境外节点自行解析国外域名,本地污染无所谓 via [HAPI](https://hapi.run) Co-Authored-By: Claude Opus 4.7 (1M context) Co-Authored-By: HAPI --- clash_base.yaml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/clash_base.yaml b/clash_base.yaml index a0302a5..9e59a91 100644 --- a/clash_base.yaml +++ b/clash_base.yaml @@ -5,16 +5,17 @@ mode: rule log-level: info external-controller: '127.0.0.1:9090' -dns: +sniffer: enable: true - listen: '127.0.0.1:9053' - default-nameserver: - - 223.5.5.5 - - 223.6.6.6 - - 119.29.29.29 - enhanced-mode: fake-ip - fake-ip-range: 198.18.0.1/16 - nameserver: - - 'https://223.5.5.5/dns-query' - - 'https://223.6.6.6/dns-query' - - 'https://doh.pub/dns-query' + override-destination: true + sniff: + HTTP: + ports: [80, 8080-8880] + override-destination: true + TLS: + ports: [443, 8443] + QUIC: + ports: [443, 8443] + skip-domain: + - 'Mijia Cloud' + - '+.push.apple.com'