mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2025-01-20 17:51:40 +03:00
5fe3b0c50a
* Translate into English #3 * Update trojan.md * Update
32 lines
1.1 KiB
Markdown
32 lines
1.1 KiB
Markdown
# DNS
|
|
|
|
DNS is an outbound protocol used for intercepting and forwarding DNS queries.
|
|
|
|
This outbound protocol can only handle DNS traffic, including queries based on UDP and TCP protocols. Other types of traffic will result in an error.
|
|
|
|
When handling DNS queries, this outbound protocol will forward IP queries (A and AAAA) to the built-in [DNS server](../dns.md). Other types of query traffic will be forwarded to their original destination addresses.
|
|
|
|
## OutboundConfigurationObject
|
|
|
|
```json
|
|
{
|
|
"network": "tcp",
|
|
"address": "1.1.1.1",
|
|
"port": 53
|
|
}
|
|
```
|
|
|
|
> `network`: "tcp" | "udp"
|
|
|
|
Modifies the transport layer protocol for DNS traffic. The possible values are `"tcp"` and `"udp"`. When not specified, the original transport method will be retained.
|
|
|
|
> `address`: address
|
|
|
|
Modifies the DNS server address. When not specified, the original address specified in the source will be retained.
|
|
|
|
> `port`: number
|
|
|
|
Modifies the DNS server port. When not specified, the original port specified in the source will be retained.
|
|
|
|
## DNS Configuration Example <Badge text="WIP" type="warning"/>
|