[GH-ISSUE #3903] Feature Request: DNSTT Protocol Support (MultiDNS) Integration #2638

Closed
opened 2026-10-31 20:26:54 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @kaktaknet on GitHub (Mar 9, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3903

Feature Request: Add DNSTT DNS Tunnel Protocol Support

Summary

Request DNSTT protocol integration into 3X-UI for easy DNS tunnel setup (DoH/DoT/UDP). Bypasses DPI/censorship without external scripts.

DNSTT: mature open-source (bamsoftware.com/software/dnstt). Used in TorGuard (2026), dnstt_xyz_app (Android leader). MultiDNS client-ready.

Describe the solution you'd like

Why 3X-UI?

  • DPI-proof: Masquerades as DNS traffic (beats VLESS/VMess blocks)
  • Simple UI: Like Hysteria2/REALITY inbounds
  • Demand: RU/CN/IR growth (Habr, Reddit)
  • Edge: Xray plugins exist, but no friendly UI

Implementation

1. Xray Inbound (DNSTT-server):

dnstt-server -udp :5300 -privkey-file server.key tunnel.example.com 127.0.0.1:8000
  • Binary: Download/compile dnstt-server
  • Keys: dnstt-keygen -privkey-file server.key -pubkey-file server.pub
  • iptables: UDP 53 -> REDIRECT 5300

2. UI Fields:

Domain: tunnel.example.com
Private Key: [upload/generate]
Public Key: [display for clients]
Local Address: 127.0.0.1:8000 (Xray SOCKS/VMess)
MTU: 1400 (auto)
UDP Relay: [toggle]

3. Client Outbound:

Pubkey + domain
MultiDNS: Cloudflare DoH, Google DoH, custom list

4. Dependencies:

  • Embed dnstt binary OR curl auto-install
  • Auto NS/TXT DNS records

Workflow Example

3X-UI → DNSTT inbound → Xray SOCKS (127.0.0.1:8000)
Client (dnstt_xyz/Nekobox) → MultiDNS DoH → tunnel.example.com

Resources

Alternative: "One-click DNSTT" button (runs bugfloyd script).

Ready for PoC/testing/code contribs! 🚀

Priority: High
Difficulty: Medium

Describe alternatives you've considered

No response

Checklist

  • This feature report is written entirely in English.
Originally created by @kaktaknet on GitHub (Mar 9, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3903 ### Is your feature request related to a problem? ## Feature Request: Add DNSTT DNS Tunnel Protocol Support ### Summary Request **DNSTT protocol integration** into 3X-UI for easy DNS tunnel setup (DoH/DoT/UDP). Bypasses DPI/censorship without external scripts. DNSTT: mature open-source (bamsoftware.com/software/dnstt). Used in TorGuard (2026), dnstt_xyz_app (Android leader). MultiDNS client-ready. ### Describe the solution you'd like ### Why 3X-UI? - DPI-proof: Masquerades as DNS traffic (beats VLESS/VMess blocks) - Simple UI: Like Hysteria2/REALITY inbounds - Demand: RU/CN/IR growth (Habr, Reddit) - Edge: Xray plugins exist, but no friendly UI ### Implementation **1. Xray Inbound (DNSTT-server):** ``` dnstt-server -udp :5300 -privkey-file server.key tunnel.example.com 127.0.0.1:8000 ``` - Binary: Download/compile dnstt-server - Keys: `dnstt-keygen -privkey-file server.key -pubkey-file server.pub` - iptables: `UDP 53 -> REDIRECT 5300` **2. UI Fields:** ``` Domain: tunnel.example.com Private Key: [upload/generate] Public Key: [display for clients] Local Address: 127.0.0.1:8000 (Xray SOCKS/VMess) MTU: 1400 (auto) UDP Relay: [toggle] ``` **3. Client Outbound:** ``` Pubkey + domain MultiDNS: Cloudflare DoH, Google DoH, custom list ``` **4. Dependencies:** - Embed dnstt binary OR curl auto-install - Auto NS/TXT DNS records ### Workflow Example ``` 3X-UI → DNSTT inbound → Xray SOCKS (127.0.0.1:8000) Client (dnstt_xyz/Nekobox) → MultiDNS DoH → tunnel.example.com ``` ### Resources - [Official DNSTT](https://www.bamsoftware.com/software/dnstt/) - [Deploy Script](https://github.com/bugfloyd/dnstt-deploy) - [Client App](https://github.com/dnstt-xyz/dnstt_xyz_app) - [Protocol Docs](https://www.bamsoftware.com/software/dnstt/protocol.html) **Alternative:** "One-click DNSTT" button (runs bugfloyd script). Ready for PoC/testing/code contribs! 🚀 **Priority:** High **Difficulty:** Medium ### Describe alternatives you've considered _No response_ ### Checklist - [x] This feature report is written entirely in English.
bsakaguchi 2026-10-31 20:26:54 +07:00
Author
Owner

@sngvy commented on GitHub (Mar 10, 2026):

Useless request because public DNS resolvers (ex. Yandex DNS) have a rate limits, it isn't working while "White lists" is enabled on DPI. What does DNSTT have to do with the Xray core? A similar XDNS mode has already been implemented in the latest kernel releases, so it's looks like AI shit.

<!-- gh-comment-id:4031592236 --> @sngvy commented on GitHub (Mar 10, 2026): Useless request because public DNS resolvers (ex. Yandex DNS) have a rate limits, it isn't working while "White lists" is enabled on DPI. What does DNSTT have to do with the Xray core? A similar XDNS mode has already been implemented in the latest kernel releases, so it's looks like AI shit.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#2638
No description provided.