|
8 | 8 | - Support `tcp_nodelay` and `tcp_keepalive_interval`
|
9 | 9 | - Can only be processed once by `route`.
|
10 | 10 |
|
| 11 | +### resolve |
| 12 | + |
| 13 | +- `resolve` is a special `out`, which is used to resolve domain |
| 14 | +- can be routed |
| 15 | + |
11 | 16 | ### out
|
12 | 17 |
|
13 | 18 | - Can be processed multiple times by `route`.
|
|
29 | 34 | "uid": 0, // invalid by default, only support linux
|
30 | 35 | "gid": 1110 // invalid by default, only support linux
|
31 | 36 | },
|
| 37 | + "resolve": { |
| 38 | + "tag": "resolve", // default resolve |
| 39 | + "server": ["8.8.8.8:53", "8.8.4.4", "system"], // default system, send to all servers at the same time, adopt the first reply, only support android, linux and windows |
| 40 | + "refresh_system": 3, // valid if server contains system, default 3 |
| 41 | + "udp_timeout": 5, // default 5 |
| 42 | + "cache_size": 1024, // default 1024 |
| 43 | + "refresh_cache": false, // default false |
| 44 | + "min_ttl": 60, // default 60 |
| 45 | + "max_ttl": 2147483647, // default 2147483647 |
| 46 | + "ipv6_first": false // default false |
| 47 | + }, |
32 | 48 | "in": [
|
33 | 49 | {
|
34 | 50 | "tag": "socks5_client",
|
|
78 | 94 | "protocol": "http",
|
79 | 95 | "address": "1.2.3.4:10802",
|
80 | 96 | "tcp_timeout": 300
|
| 97 | + }, |
| 98 | + { |
| 99 | + "tag": "dns", |
| 100 | + "protocol": "dns", |
| 101 | + "server": ["8.8.8.8:53", "8.8.4.4", "system"], // default system, send to all servers at the same time, adopt the first reply, only support android, linux and windows |
| 102 | + "refresh_system": 3, // valid if server contains system, default 3 |
| 103 | + "udp_timeout": 5, // default 5 |
| 104 | + "cache_size": 1024, // default 1024 |
| 105 | + "refresh_cache": false, // default false |
| 106 | + "min_ttl": 60, // default 60 |
| 107 | + "max_ttl": 2147483647 // default 2147483647 |
81 | 108 | }
|
82 | 109 | ],
|
83 | 110 | "route": [
|
|
95 | 122 | "sport": [],
|
96 | 123 | "daddr": [],
|
97 | 124 | "dport": [],
|
| 125 | + "dns_domain": [], // same as addr, only support udp dns packet |
98 | 126 | "jump": ""
|
99 | 127 | }
|
100 | 128 | ]
|
|
0 commit comments