mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-10-04 04:48:17 +03:00
xdns
This commit is contained in:
@@ -381,17 +381,36 @@ Salamander 混淆。(来自 Hysteria2)
|
||||
"type": "xdns",
|
||||
// [!field focus]
|
||||
"settings": {
|
||||
"domains": ["t.example.com"],
|
||||
"resolvers": ["t.example.com+udp://8.8.8.8:53"]
|
||||
"domains": [
|
||||
{
|
||||
"name": "t.example.com",
|
||||
"lenLimit": 255,
|
||||
"labelLimit": 63,
|
||||
"types": [1, 5, 16, 28], // 1:A 5:CNAME 16:TXT 28:AAAA
|
||||
"edns0": 1232
|
||||
}
|
||||
],
|
||||
"resolvers": [
|
||||
{
|
||||
"type": "udp",
|
||||
"settings": {
|
||||
"addr": "127.0.0.1:53"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
`domains`: 服务端使用,域名列表。支持指定查询类型 `domain:method`,method 可为 `txt`、`a`、`aaaa`,不指定则不限制查询类型。
|
||||
`domains[n].lenLimit`: 0-255
|
||||
|
||||
`resolvers`: 客户端使用,DNS 解析器列表。格式为 `domain[:method]+udp://server:port`,method 可为 `txt`(默认)、`a`、`aaaa`。
|
||||
`domains[n].labelLimit`: 0-63
|
||||
|
||||
`domains` 与 `resolvers` 至少填写一个。
|
||||
`domains[n].edns0`: 0-4096
|
||||
|
||||
仅可搭配 kcp,推荐设置 tti 200,仅服务端需要配置 mtu,参考 mtu,CNAME 计算比较复杂,一般在 AAAA 与 TXT 之间
|
||||
- edns0 为 512 时,A 39 TXT 215 AAAA 117
|
||||
- edns0 为 1232 时,A 174 TXT 763 AAAA 492
|
||||
|
||||
### xicmp
|
||||
|
||||
|
||||
Reference in New Issue
Block a user