Use concrete feature names per design spec: "Legacy Address Filter Fields", "Legacy `strategy` DNS rule action option", "Legacy `ip_accept_any` DNS rule item", "Legacy `rule_set_ip_cidr_accept_empty` DNS rule item" for deprecated features, and "Response Match Fields" for the new response matching section.
52 lines
896 B
Markdown
52 lines
896 B
Markdown
!!! question "自 sing-box 1.8.0 起"
|
|
|
|
!!! quote "sing-box 1.9.0 中的更改"
|
|
|
|
:material-plus: [store_rdrc](#store_rdrc)
|
|
:material-plus: [rdrc_timeout](#rdrc_timeout)
|
|
|
|
### 结构
|
|
|
|
```json
|
|
{
|
|
"enabled": true,
|
|
"path": "",
|
|
"cache_id": "",
|
|
"store_fakeip": false,
|
|
"store_rdrc": false,
|
|
"rdrc_timeout": ""
|
|
}
|
|
```
|
|
|
|
### 字段
|
|
|
|
#### enabled
|
|
|
|
启用缓存文件。
|
|
|
|
#### path
|
|
|
|
缓存文件路径,默认使用`cache.db`。
|
|
|
|
#### cache_id
|
|
|
|
缓存文件中的标识符。
|
|
|
|
如果不为空,配置特定的数据将使用由其键控的单独存储。
|
|
|
|
#### store_fakeip
|
|
|
|
将 fakeip 存储在缓存文件中。
|
|
|
|
#### store_rdrc
|
|
|
|
将拒绝的 DNS 响应缓存存储在缓存文件中。
|
|
|
|
[旧版地址筛选字段](/zh/configuration/dns/rule/#旧版地址筛选字段) 的检查结果将被缓存至过期。
|
|
|
|
#### rdrc_timeout
|
|
|
|
拒绝的 DNS 响应缓存超时。
|
|
|
|
默认使用 `7d`。
|