DNS 模块整体移除,改用系统 DNS + sniffer

- 删除 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) <noreply@anthropic.com>
Co-Authored-By: HAPI <noreply@hapi.run>
This commit is contained in:
2026-05-23 16:50:51 +08:00
parent 96ac1a9f40
commit 2fe85cffd9

View File

@@ -5,16 +5,17 @@ mode: rule
log-level: info log-level: info
external-controller: '127.0.0.1:9090' external-controller: '127.0.0.1:9090'
dns: sniffer:
enable: true enable: true
listen: '127.0.0.1:9053' override-destination: true
default-nameserver: sniff:
- 223.5.5.5 HTTP:
- 223.6.6.6 ports: [80, 8080-8880]
- 119.29.29.29 override-destination: true
enhanced-mode: fake-ip TLS:
fake-ip-range: 198.18.0.1/16 ports: [443, 8443]
nameserver: QUIC:
- 'https://223.5.5.5/dns-query' ports: [443, 8443]
- 'https://223.6.6.6/dns-query' skip-domain:
- 'https://doh.pub/dns-query' - 'Mijia Cloud'
- '+.push.apple.com'