Update documentations

This commit is contained in:
世界
2022-07-23 09:29:37 +08:00
parent 884c0cf595
commit 187de6c738
10 changed files with 109 additions and 59 deletions

View File

@@ -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.

View File

@@ -23,7 +23,6 @@
| `tun` | [Tun](./tun) |
| `redirect` | [Redirect](./redirect) |
| `tproxy` | [TProxy](./tproxy) |
| `dns` | [DNS](./dns) |
#### tag

View File

@@ -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

View File

@@ -0,0 +1,22 @@
`dns` outbound is a DNS server.
### Structure
```json
{
"outbounds": [
{
"type": "dns",
"tag": "dns-out"
}
]
}
```
!!! note ""
There are no outbound connections by the DNS outbound, all requests are handled internally.
### Fields
No fields.

View File

@@ -20,6 +20,7 @@
| `socks` | [Socks](./socks) |
| `http` | [HTTP](./http) |
| `shadowsocks` | [Shadowsocks](./shadowsocks) |
| `dns` | [DNS](./dns) |
| `selector` | [Selector](./selector) |
| `urltest` | [URLTest](./urltest) |

View File

@@ -2,9 +2,10 @@ If enabled in the inbound, the protocol and domain name (if present) of by the c
#### Supported Protocols
| Network | Protocol | Domain Name |
|:---------:|:----------:|:-------------:|
| TCP | HTTP | Host |
| TCP | TLS | Server Name |
| UDP | QUIC | Server Name |
| UDP | STUN | / |
| Network | Protocol | Domain Name |
|:-------:|:--------:|:-----------:|
| TCP | HTTP | Host |
| TCP | TLS | Server Name |
| UDP | QUIC | Server Name |
| UDP | STUN | / |
| TCP/UDP | DNS | / |