回滚 DNS 配置到 fake-ip
redir-host + 国外 DoH 在国内裸连不可达,节点域名解析失败导致所有线路不通 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:
@@ -5,36 +5,16 @@ mode: rule
|
|||||||
log-level: info
|
log-level: info
|
||||||
external-controller: '127.0.0.1:9090'
|
external-controller: '127.0.0.1:9090'
|
||||||
|
|
||||||
sniffer:
|
|
||||||
enable: true
|
|
||||||
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'
|
|
||||||
|
|
||||||
dns:
|
dns:
|
||||||
enable: true
|
enable: true
|
||||||
listen: '127.0.0.1:9053'
|
listen: '127.0.0.1:9053'
|
||||||
ipv6: false
|
|
||||||
enhanced-mode: redir-host
|
|
||||||
default-nameserver:
|
default-nameserver:
|
||||||
- 223.5.5.5
|
- 223.5.5.5
|
||||||
|
- 223.6.6.6
|
||||||
- 119.29.29.29
|
- 119.29.29.29
|
||||||
|
enhanced-mode: fake-ip
|
||||||
|
fake-ip-range: 198.18.0.1/16
|
||||||
nameserver:
|
nameserver:
|
||||||
- 'https://223.5.5.5/dns-query'
|
- 'https://223.5.5.5/dns-query'
|
||||||
|
- 'https://223.6.6.6/dns-query'
|
||||||
- 'https://doh.pub/dns-query'
|
- 'https://doh.pub/dns-query'
|
||||||
proxy-server-nameserver:
|
|
||||||
- 'https://1.1.1.1/dns-query'
|
|
||||||
- 'https://8.8.8.8/dns-query'
|
|
||||||
nameserver-policy:
|
|
||||||
'geosite:cn,private':
|
|
||||||
- 'https://223.5.5.5/dns-query'
|
|
||||||
- 'https://doh.pub/dns-query'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user