DNS Resolution and Routing#
{
"servers": [
{
"address": "https+local://doh.pub/dns-query",
"port": 443,
"domains": [
"geosite:cn"
],
"expectIPs": [
"geoip:cn"
]
},
{
"address": "https+local://1.1.1.1/dns-query",
"port": 443,
"domains": [
"geosite:geolocation-!cn",
"geosite:speedtest"
]
},
"1.1.1.1",
"localhost"
]
}
Routing Settings#
Before setting, download the geosite and geoip files from LoyalSodier's repository and replace them.
1. Block#
geosite:category-ads-all
2. Direct (Custom Domains)#
domain:cm.steampowered.com,
domain:steamserver.net
Mainly for direct connection to Steam login to prevent downloads from redirecting to foreign regions after login.
3. Direct (Supplement)#
geosite:private,
geosite:apple-cn,
geosite:tld-cn,
geosite:category-games@cn
This part is to supplement the cn part.
4. Proxy (Non-cn Traffic)#
geosite:geolocation-!cn
This part can route common foreign websites to the proxy.
5. Direct (cn)#
geosite:cn
geoip:cn,
geoip:private
Fallback direct connection rules.
6. Proxy (Match)#
Any domain/ip that does not match the above rules will go directly to the proxy.