mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-09-22 22:38:05 +03:00
DNS Outbound: Add userLevel
This commit is contained in:
@@ -13,6 +13,7 @@ DNS 是一个出站协议,主要用于拦截和转发 DNS 查询。
|
||||
"network": "tcp",
|
||||
"address": "1.1.1.1",
|
||||
"port": 53,
|
||||
"userLevel": 0,
|
||||
"nonIPQuery": "drop",
|
||||
"blockTypes": []
|
||||
}
|
||||
@@ -30,6 +31,12 @@ DNS 是一个出站协议,主要用于拦截和转发 DNS 查询。
|
||||
|
||||
修改 DNS 服务器端口。当不指定时,保持来源中指定的端口不变。
|
||||
|
||||
> `userLevel`: number
|
||||
|
||||
用户等级,连接会使用这个用户等级对应的 [本地策略](../policy.md#levelpolicyobject)。
|
||||
|
||||
userLevel 的值,对应 [policy](../policy.md#policyobject) 中 `level` 的值。如不指定,默认为 0。
|
||||
|
||||
> `nonIPQuery`: string
|
||||
|
||||
控制非 IP 查询(非 A 和 AAAA),`"drop"` 丢弃; `"skip"` 不由内置 DNS 服务器处理,将转发给目标; `"reject"` 返回一个 DNS reject 响应,直接显式拒绝请求,相比 `"drop"` 可以避免应用程序消耗过长时间等待 DNS 响应到超时。
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -13,6 +13,7 @@ DNS — это исходящий протокол, который в основ
|
||||
"network": "tcp",
|
||||
"address": "1.1.1.1",
|
||||
"port": 53,
|
||||
"userLevel": 0,
|
||||
"nonIPQuery": "drop",
|
||||
"blockTypes": []
|
||||
}
|
||||
@@ -30,6 +31,12 @@ DNS — это исходящий протокол, который в основ
|
||||
|
||||
Изменяет порт DNS-сервера. Если не указано, используется порт, указанный в источнике.
|
||||
|
||||
> `userLevel`: number
|
||||
|
||||
Уровень пользователя. Соединение будет использовать [локальную политику](../policy.md#levelpolicyobject), соответствующую этому уровню пользователя.
|
||||
|
||||
Значение `userLevel` соответствует значению `level` в [policy](../policy.md#policyobject). Если не указано, по умолчанию используется значение `0`.
|
||||
|
||||
> `nonIPQuery`: string
|
||||
|
||||
Управляет запросами, не относящимися к IP-адресам (не A и AAAA). `"drop"` — отклонять, `"skip"` — не обрабатывать встроенным DNS-сервером, а пересылать на целевой сервер. В отличие от `"drop"`, это позволяет избежать ситуации, когда приложение тратит слишком много времени в ожидании ответа DNS до тайм-аута.
|
||||
|
||||
Reference in New Issue
Block a user