引入 clash 基础配置,放弃对系统 dns 的依赖,使用 clash 自己的 dns server

This commit is contained in:
2025-12-02 15:58:01 +08:00
parent 3295720457
commit 887636c422
3 changed files with 22 additions and 339 deletions

20
clash_base.yaml Normal file
View File

@@ -0,0 +1,20 @@
mixed-port: 7890
allow-lan: true
bind-address: '*'
mode: rule
log-level: info
external-controller: '127.0.0.1:9090'
dns:
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'