sing-box/docs/configuration/dns/index.md
2022-08-25 21:08:29 +08:00

723 B

DNS

Structure

{
  "dns": {
    "servers": [],
    "rules": [],
    "final": "",
    "strategy": "",
    "disable_cache": false,
    "disable_expire": false
  }
}

Fields

Key Format
server List of DNS Server
rules List of DNS Rule

final

Default dns server tag.

The first server will be used if empty.

strategy

Default domain strategy for resolving the domain names.

One of prefer_ipv4 prefer_ipv6 ipv4_only ipv6_only.

Take no effect if server.strategy is set.

disable_cache

Disable dns cache.

disable_expire

Disable dns cache expire.