Skip to content

Commit 75c5d10

Browse files
committed
add dns & resolve doc
1 parent 0a2f1b1 commit 75c5d10

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

doc/configuration.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
- Support `tcp_nodelay` and `tcp_keepalive_interval`
99
- Can only be processed once by `route`.
1010

11+
### resolve
12+
13+
- `resolve` is a special `out`, which is used to resolve domain
14+
- can be routed
15+
1116
### out
1217

1318
- Can be processed multiple times by `route`.
@@ -29,6 +34,17 @@
2934
"uid": 0, // invalid by default, only support linux
3035
"gid": 1110 // invalid by default, only support linux
3136
},
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+
},
3248
"in": [
3349
{
3450
"tag": "socks5_client",
@@ -78,6 +94,17 @@
7894
"protocol": "http",
7995
"address": "1.2.3.4:10802",
8096
"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
81108
}
82109
],
83110
"route": [
@@ -95,6 +122,7 @@
95122
"sport": [],
96123
"daddr": [],
97124
"dport": [],
125+
"dns_domain": [], // same as addr, only support udp dns packet
98126
"jump": ""
99127
}
100128
]

0 commit comments

Comments
 (0)