当前的订阅配置里关于dns的配置是下面
dns:
enable: true
prefer-h3: false
use-hosts: true
use-system-hosts: true
ipv6: false
listen: 0.0.0.0:53
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- "*.lan"
- "*.local"
- "*.localhost"
- 'time.*.com'
- 'ntp.*.com'
- "*.ntp.org"
- "*.msftncsi.com"
- "localhost.ptlogin2.qq.com"
- "+.stun.*.*"
- "+.stun.*.*.*"
- "+.stun.*.*.*.*"
- "+.stun.*.*.*.*.*"
- "lens.l.google.com"
- "stun.l.google.com"
- "www.msftconnecttest.com"
# 用于解析 nameserver 中 DoH/DoT 域名的 DNS(必须是国内可直连的 IP)
default-nameserver:
- 223.5.5.5 # 阿里 DNS
- 119.29.29.29 # 腾讯 DNS
# 主 DNS 服务器
nameserver:
- https://223.5.5.5/dns-query # 阿里 DoH
- https://doh.pub/dns-query # 腾讯 DoH
- 223.5.5.5 # 阿里 UDP
- 119.29.29.29 # 腾讯 UDP
# DNS 分流策略
nameserver-policy:
# 国内域名和私有域名走国内 DNS
"geosite:cn,private":
- https://223.5.5.5/dns-query
- https://doh.pub/dns-query
- 223.5.5.5
- 119.29.29.29
# GFW 列表域名走国外 DNS(通过代理)
"geosite:gfw":
- https://1.1.1.1/dns-query
- https://dns.google/dns-query
# 非中国大陆域名走国外 DNS(通过代理)
"geosite:geolocation-!cn":
- https://1.1.1.1/dns-query
- https://dns.google/dns-query
# 防污染回退 DNS(国外 DNS,用于验证解析结果)
fallback:
- https://1.1.1.1/dns-query # Cloudflare DoH
- https://dns.google/dns-query # Google DoH
- tls://8.8.4.4:853 # Google DoT
- tls://1.0.0.1:853 # Cloudflare DoT
# 回退过滤规则
fallback-filter:
geoip: true
geoip-code: CN
ipcidr:
- 240.0.0.0/4
- 0.0.0.0/32
- 127.0.0.1/32
domain:
- "+.google.com"
- "+.facebook.com"
- "+.youtube.com"
- "+.twitter.com"
- "+.github.com"
# 代理服务器域名解析专用 DNS(国内 DNS,用于解析代理服务器地址)
proxy-server-nameserver:
- https://223.5.5.5/dns-query
- https://doh.pub/dns-query
但是一旦开启这个配置里面的dns复写
网络里面的dns就会被自动改为114.114.114.114
不知道各位佬们遇到过这个问题没?

