You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`route` inherits the classic rule behavior of routing DNS requests to the specified server.
24
+
25
+
#### server
26
+
27
+
==Required==
28
+
29
+
Tag of target server.
30
+
31
+
#### disable_cache/rewrite_ttl/client_subnet
32
+
33
+
!!! failure "Deprecated in sing-box 1.11.0"
34
+
35
+
Legacy route options is deprecated and will be removed in sing-box 1.12.0, check [Migration](/migration/#migrate-legacy-dns-route-options-to-rule-actions).
36
+
37
+
### route-options
38
+
39
+
```json
40
+
{
41
+
"action": "route-options",
42
+
"disable_cache": false,
43
+
"rewrite_ttl": null,
44
+
"client_subnet": null
45
+
}
46
+
```
47
+
48
+
#### disable_cache
49
+
50
+
Disable cache and save cache in this query.
51
+
52
+
#### rewrite_ttl
53
+
54
+
Rewrite TTL in DNS responses.
55
+
56
+
#### client_subnet
57
+
58
+
Append a `edns0-subnet` OPT extra record with the specified IP prefix to every query by default.
59
+
60
+
If value is an IP address instead of prefix, `/32` or `/128` will be appended automatically.
61
+
62
+
Will overrides `dns.client_subnet` and `servers.[].client_subnet`.
63
+
64
+
### reject
65
+
66
+
```json
67
+
{
68
+
"action": "reject",
69
+
"method": "default", // default
70
+
"no_drop": false
71
+
}
72
+
```
73
+
74
+
`reject` reject DNS requests.
75
+
76
+
#### method
77
+
78
+
-`default`: Reply with NXDOMAIN.
79
+
-`drop`: Drop the request.
80
+
81
+
#### no_drop
82
+
83
+
If not enabled, `method` will be temporarily overwritten to `drop` after 50 triggers in 30s.
Copy file name to clipboardExpand all lines: docs/configuration/outbound/block.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,14 @@
1
-
`block` outbound closes all incoming requests.
1
+
---
2
+
icon: material/delete-clock
3
+
---
4
+
5
+
!!! failure "Deprecated in sing-box 1.11.0"
6
+
7
+
Legacy special outbounds are deprecated and will be removed in sing-box 1.13.0, check [Migration](/migration/#migrate-legacy-special-outbounds-to-rule-actions).
Copy file name to clipboardExpand all lines: docs/configuration/outbound/dns.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,11 @@
1
+
---
2
+
icon: material/delete-clock
3
+
---
4
+
5
+
!!! failure "Deprecated in sing-box 1.11.0"
6
+
7
+
Legacy special outbounds are deprecated and will be removed in sing-box 1.13.0, check [Migration](/migration/#migrate-legacy-special-outbounds-to-rule-actions).
0 commit comments