Update documentations
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
`dns` inbound is a DNS server.
|
||||
|
||||
### Structure
|
||||
|
||||
```json
|
||||
{
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "dns",
|
||||
"tag": "dns-in",
|
||||
|
||||
"listen": "::",
|
||||
"listen_port": 5353,
|
||||
"network": "udp"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
!!! note ""
|
||||
|
||||
There are no outbound connections by the DNS inbound, all requests are handled internally.
|
||||
|
||||
### Listen Fields
|
||||
|
||||
#### listen
|
||||
|
||||
==Required==
|
||||
|
||||
Listen address.
|
||||
|
||||
#### listen_port
|
||||
|
||||
==Required==
|
||||
|
||||
Listen port.
|
||||
|
||||
### DNS Fields
|
||||
|
||||
#### network
|
||||
|
||||
Listen network, one of `tcp` `udp`.
|
||||
|
||||
Both if empty.
|
||||
@@ -23,7 +23,6 @@
|
||||
| `tun` | [Tun](./tun) |
|
||||
| `redirect` | [Redirect](./redirect) |
|
||||
| `tproxy` | [TProxy](./tproxy) |
|
||||
| `dns` | [DNS](./dns) |
|
||||
|
||||
#### tag
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
"inet6_address": "fdfe:dcba:9876::1/128",
|
||||
"mtu": 1500,
|
||||
"auto_route": true,
|
||||
"hijack_dns": true,
|
||||
|
||||
"sniff": true,
|
||||
"sniff_override_destination": false,
|
||||
@@ -49,10 +48,6 @@ Set the default route to the Tun.
|
||||
|
||||
To avoid traffic loopback, set `route.auto_detect_interface` or `route.default_interface` or `outbound.bind_interface`
|
||||
|
||||
#### hijack_dns
|
||||
|
||||
Hijack TCP/UDP DNS requests to the built-in DNS adapter.
|
||||
|
||||
### Listen Fields
|
||||
|
||||
#### sniff
|
||||
|
||||
Reference in New Issue
Block a user