Update routing-with-dns.md
parent
abd9299e6c
commit
d62c86f56b
|
@ -92,18 +92,19 @@ sock、http 入站时,请求的就是域名,到了路由后,路由中非 A
|
||||||
"tag": "dns-proxy"
|
"tag": "dns-proxy"
|
||||||
},
|
},
|
||||||
"routing": {
|
"routing": {
|
||||||
|
"domainStrategy": "具体取决于你的需求",
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
// DNS模块标记的走直连解析
|
// 为 DNS 查询本身进行路由
|
||||||
"inboundTag": ["dns-direct"],
|
"inboundTag": ["dns-direct"],
|
||||||
"outboundTag": "direct"
|
"outboundTag": "direct"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// DNS模块标记的走代理解析
|
// 为 DNS 查询本身进行路由
|
||||||
"inboundTag": ["dns-proxy"],
|
"inboundTag": ["dns-proxy"],
|
||||||
"outboundTag": "proxy"
|
"outboundTag": "proxy"
|
||||||
}
|
}
|
||||||
// 你的分流规则...
|
// 你的分流规则,按你的需求利用 domain 和/或 ip 来分流...
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
// 其它忽略,按需配置...
|
// 其它忽略,按需配置...
|
||||||
|
@ -145,18 +146,19 @@ realIp 透明代理环境,你甚至可以在劫持 DNS 后,设置 domainStra
|
||||||
"tag": "dns-proxy"
|
"tag": "dns-proxy"
|
||||||
},
|
},
|
||||||
"routing": {
|
"routing": {
|
||||||
|
"domainStrategy": "必须是非 AsIs,具体取决于你的需求",
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
// DNS模块标记的走直连解析
|
// 为 DNS 查询本身进行路由
|
||||||
"inboundTag": ["dns-direct"],
|
"inboundTag": ["dns-direct"],
|
||||||
"outboundTag": "direct"
|
"outboundTag": "direct"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// DNS模块标记的走代理解析
|
// 为 DNS 查询本身进行路由
|
||||||
"inboundTag": ["dns-proxy"],
|
"inboundTag": ["dns-proxy"],
|
||||||
"outboundTag": "proxy"
|
"outboundTag": "proxy"
|
||||||
}
|
}
|
||||||
// 你的分流规则...
|
// 你的分流规则,按你的需求利用 domain 和/或 ip 来分流...
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
// 其它忽略,按需配置...
|
// 其它忽略,按需配置...
|
||||||
|
|
Loading…
Reference in New Issue