DNS Outbound: Add userLevel

This commit is contained in:
Meow
2026-04-19 10:48:09 +08:00
parent 291770a5f0
commit 0f8ded11a1
3 changed files with 21 additions and 0 deletions
+7
View File
@@ -13,6 +13,7 @@ When processing DNS queries, this outbound protocol forwards IP queries (i.e., A
"network": "tcp",
"address": "1.1.1.1",
"port": 53,
"userLevel": 0,
"nonIPQuery": "drop",
"blockTypes": []
}
@@ -30,6 +31,12 @@ Modifies the DNS server address. When unspecified, the address specified in the
Modifies the DNS server port. When unspecified, the port specified in the source remains unchanged.
> `userLevel`: number
User level. Connections will use the [Local Policy](../policy.md#levelpolicyobject) corresponding to this user level.
The value of `userLevel` corresponds to the value of `level` in [policy](../policy.md#policyobject). If not specified, it defaults to 0.
> `nonIPQuery`: string
Controls non-IP queries (non-A and non-AAAA). `"drop"` means discard; `"skip"` means it is not processed by the built-in DNS server and is forwarded to the destination; `"reject"` returns a DNS reject response, explicitly refusing the request immediately. Compared to `"drop"`, this avoids applications waiting too long for a DNS response until timeout.