From f39d1cd2221cc485d8a6b69215511f41f80d26ff Mon Sep 17 00:00:00 2001 From: zhanglixing Date: Thu, 18 Jun 2026 12:17:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(clash):=20base=20=E8=A1=A5=E5=9B=9E?= =?UTF-8?q?=E5=90=84=E6=9C=BA=E5=9C=BA=E4=B8=93=E7=94=A8=20DNS=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=81=9A=E5=90=88=E8=AE=A2=E9=98=85=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 聚合工具丢弃订阅 dns 段导致 *.cloud-nodes.com / *.sankuaei.com 等 私有节点域名解析失败、节点全部超时。base 模板补回 hosts + dns, 含三套机场 nameserver-policy(redir-host 模式)。 via [HAPI](https://hapi.run) Co-Authored-By: HAPI --- clash_base.yaml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/clash_base.yaml b/clash_base.yaml index 9e59a91..e3fe14b 100644 --- a/clash_base.yaml +++ b/clash_base.yaml @@ -19,3 +19,48 @@ sniffer: skip-domain: - 'Mijia Cloud' - '+.push.apple.com' + +# === DNS === +# 聚合订阅必须保留各机场专用 DNS, 否则私有节点域名解析失败 → 节点全部超时。 +# 新增机场: 把该机场官方订阅 dns.nameserver-policy 里的 域名->解析服务器 照抄到下面。 +hosts: + mtalk.google.com: 108.177.125.188 + tagss13.pro: 104.26.5.84 + tagxx.vip: 103.135.249.37 + +dns: + enable: true + listen: '0.0.0.0:1053' + default-nameserver: [119.29.29.29, 223.5.5.5, 180.184.1.1] + enhanced-mode: redir-host + use-hosts: true + use-system-hosts: true + nameserver: ['https://223.6.6.6/dns-query', 'https://doh.pub/dns-query'] + nameserver-policy: + # cloud-nodes 机场 (anytls) —— 专用明文 DNS + '+.cloud-nodes.com': '124.221.68.73:1053' + # sankuaei / aixifan7498 / afdiancdn 机场 (ss+obfs) —— 专用 DoH (带端口/token 必须照抄) + '*.sankuaei.com': + - 'https://anycast.bytecdns.com/913b04c3' + - 'https://anycast.soufunimgs.com/5428ab28' + - 'https://anycast.jllyzx.com/8c28d4s7' + - 'https://anycast.pzwzs.com/3b04c545' + - 'https://anycast.qccnb.com/a192b791' + - 'https://anycast.xhspic.com/8c28d4s7' + - 'https://91c7e35b.qluomcd.com:4443/5428ab28' + '*.aixifan7498.com': + - 'https://anycast.bytecdns.com/913b04c3' + - 'https://anycast.soufunimgs.com/5428ab28' + - 'https://anycast.jllyzx.com/8c28d4s7' + - 'https://anycast.pzwzs.com/3b04c545' + - 'https://anycast.qccnb.com/a192b791' + - 'https://anycast.xhspic.com/8c28d4s7' + - 'https://91c7e35b.qluomcd.com:4443/5428ab28' + '*.afdiancdn.org': + - 'https://anycast.bytecdns.com/913b04c3' + - 'https://anycast.soufunimgs.com/5428ab28' + - 'https://anycast.jllyzx.com/8c28d4s7' + - 'https://anycast.pzwzs.com/3b04c545' + - 'https://anycast.qccnb.com/a192b791' + - 'https://anycast.xhspic.com/8c28d4s7' + - 'https://91c7e35b.qluomcd.com:4443/5428ab28'