mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #3417] Feature Request: Add DNS Protocol Option in Routing Rules #2324
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#2324
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gnz1123 on GitHub (Sep 4, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3417
Is your feature request related to a problem?
I noticed that in the current 3X-UI panel, the Routing → Protocol dropdown does not include the dns option, even though the Xray/V2Ray core supports protocol: ["dns"] as a valid rule.
Because of this limitation, users cannot easily configure DNS traffic to be routed through a specific outbound (e.g., to forward DNS queries to a remote resolver or to avoid DNS leaks) using the UI alone. Right now, the only workaround is to manually edit the JSON configuration, which is less convenient and can confuse non-advanced users.
👉 Suggestion: Please add dns as a selectable protocol in the Routing Rule editor, alongside http, tls, bittorrent, and quic.
This small addition would make DNS traffic handling more flexible and user-friendly, and help prevent DNS leaks when using relay setups.
Describe the solution you'd like
Currently, the routing rule editor in 3X-UI does not allow selecting dns under the Protocol field.
However, Xray/V2Ray core supports protocol: ["dns"].
This makes it difficult to properly route DNS traffic (e.g., sending DNS queries to a remote outbound to avoid DNS leaks). The only workaround is editing JSON manually.
👉 Suggestion: Please add dns as an option in the Protocol dropdown.
This would improve usability and help users configure DNS traffic routing more easily.
Thanks for your great work!
Describe alternatives you've considered
No response
Checklist