2022-08-25 21:08:29 +08:00
|
|
|
# DNS
|
|
|
|
|
2022-07-08 17:01:38 +08:00
|
|
|
### Structure
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"dns": {
|
|
|
|
"servers": [],
|
|
|
|
"rules": [],
|
|
|
|
"final": "",
|
2022-07-09 09:26:50 +08:00
|
|
|
"strategy": "",
|
2022-07-08 17:01:38 +08:00
|
|
|
"disable_cache": false,
|
|
|
|
"disable_expire": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
### Fields
|
|
|
|
|
|
|
|
| Key | Format |
|
|
|
|
|----------|--------------------------------|
|
|
|
|
| `server` | List of [DNS Server](./server) |
|
|
|
|
| `rules` | List of [DNS Rule](./rule) |
|
|
|
|
|
|
|
|
#### final
|
|
|
|
|
2022-07-09 09:26:50 +08:00
|
|
|
Default dns server tag.
|
|
|
|
|
|
|
|
The first server will be used if empty.
|
2022-07-08 17:01:38 +08:00
|
|
|
|
|
|
|
#### strategy
|
|
|
|
|
|
|
|
Default domain strategy for resolving the domain names.
|
|
|
|
|
|
|
|
One of `prefer_ipv4` `prefer_ipv6` `ipv4_only` `ipv6_only`.
|
|
|
|
|
2022-08-22 12:43:21 +08:00
|
|
|
Take no effect if `server.strategy` is set.
|
|
|
|
|
2022-07-08 17:01:38 +08:00
|
|
|
#### disable_cache
|
|
|
|
|
|
|
|
Disable dns cache.
|
|
|
|
|
|
|
|
#### disable_expire
|
|
|
|
|
|
|
|
Disable dns cache expire.
|