Replies: 3 comments
-
To avoid this duplication and filter based on whether a request was resolved using {
"dns": {
"servers": [
{
"address": "fakedns",
"domains": [
"geosite:github"
],
"tag": "fake-dns-in"
},
"223.5.5.5"
]
},
"fakedns": [
{
"ipPool": "198.18.0.0/15",
"poolSize": 10000
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"inboundTag": ["fake-dns-in"],
"outboundTag": "proxy",
"type": "field"
}
]
}
}
|
Beta Was this translation helpful? Give feedback.
-
@Diligence0743 From the protobuf config, it looks like "tag" is not at per-server level, but a global attribute for the whole dns config. Could you give some reference documentation about this per-server level configuration? |
Beta Was this translation helpful? Give feedback.
-
viable solution with current limitations: {
"routing": {
"rules": [
{
"ip": ["198.18.0.0/15"],
"outboundTag": "proxy",
"type": "field"
}
]
}
} |
Beta Was this translation helpful? Give feedback.
-
For example, when I have a mini config file like below, the "geosite:github" will be search twice for a fakedns request, one for fakedns resolve, another for routing decision.
Is there any way to write a RuleObject like this to avoid the duplication?
Beta Was this translation helpful? Give feedback.
All reactions