dns: Add timeout configuration
This commit is contained in:
@@ -9,7 +9,8 @@ icon: material/new-box
|
||||
|
||||
!!! quote "Changes in sing-box 1.14.0"
|
||||
|
||||
:material-plus: [resolve.disable_optimistic_cache](#disable_optimistic_cache)
|
||||
:material-plus: [resolve.disable_optimistic_cache](#disable_optimistic_cache)
|
||||
:material-plus: [resolve.timeout](#timeout)
|
||||
|
||||
!!! quote "Changes in sing-box 1.12.0"
|
||||
|
||||
@@ -285,6 +286,7 @@ Timeout for sniffing.
|
||||
"disable_cache": false,
|
||||
"disable_optimistic_cache": false,
|
||||
"rewrite_ttl": null,
|
||||
"timeout": "",
|
||||
"client_subnet": null
|
||||
}
|
||||
```
|
||||
@@ -319,6 +321,14 @@ Disable optimistic DNS caching in this query.
|
||||
|
||||
Rewrite TTL in DNS responses.
|
||||
|
||||
#### timeout
|
||||
|
||||
!!! question "Since sing-box 1.14.0"
|
||||
|
||||
Override the DNS query timeout for this lookup.
|
||||
|
||||
Will override `dns.timeout`.
|
||||
|
||||
#### client_subnet
|
||||
|
||||
!!! question "Since sing-box 1.12.0"
|
||||
|
||||
@@ -9,7 +9,8 @@ icon: material/new-box
|
||||
|
||||
!!! quote "sing-box 1.14.0 中的更改"
|
||||
|
||||
:material-plus: [resolve.disable_optimistic_cache](#disable_optimistic_cache)
|
||||
:material-plus: [resolve.disable_optimistic_cache](#disable_optimistic_cache)
|
||||
:material-plus: [resolve.timeout](#timeout)
|
||||
|
||||
!!! quote "sing-box 1.12.0 中的更改"
|
||||
|
||||
@@ -277,6 +278,7 @@ UDP 连接超时时间。
|
||||
"disable_cache": false,
|
||||
"disable_optimistic_cache": false,
|
||||
"rewrite_ttl": null,
|
||||
"timeout": "",
|
||||
"client_subnet": null
|
||||
}
|
||||
```
|
||||
@@ -311,6 +313,14 @@ DNS 解析策略,可用值有:`prefer_ipv4`、`prefer_ipv6`、`ipv4_only`、
|
||||
|
||||
重写 DNS 回应中的 TTL。
|
||||
|
||||
#### timeout
|
||||
|
||||
!!! question "自 sing-box 1.14.0 起"
|
||||
|
||||
覆盖此查询的 DNS 查询超时时间。
|
||||
|
||||
将覆盖 `dns.timeout`。
|
||||
|
||||
#### client_subnet
|
||||
|
||||
!!! question "自 sing-box 1.12.0 起"
|
||||
|
||||
Reference in New Issue
Block a user