mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-10-08 14:58:12 +03:00
DNS Outbound: Add userLevel
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user