Sing-box 配置示例
config.json
"dns": {
"servers": [
{
"tag": "google",
"address": "8.8.8.8"
},
{
"tag": "dns-unlock",
"address": "https://xxx/dns-query",
"address_resolver": "google"
}
]
"rules": [
{
"rule_set": "globalmedia",
"server": "dns-unlock"
}
]
}
...
"route": {
"rule_set": [
{
"type": "remote",
"tag": "globalmedia",
"format": "binary",
"url": "https://github.com/MetaCubeX/meta-rules-dat/raw/sing/bm7/GlobalMedia.srs"
// See https://github.com/MetaCubeX/meta-rules-dat/issues/40
}
]
}
config.json
"dns": {
"servers": [
{
"tag": "google",
"address": "8.8.8.8"
},
{
"tag": "dns-unlock",
"address": "https://xxx/dns-query",
"address_resolver": "google"
}
]
"rules": [
{
"domain_suffix": [
"netflix.com",
"disney.com",
"以此类推"
],
"server": "dns-unlock"
}
]
}
最后更新于
这有帮助吗?