[GH-ISSUE #3417] Feature Request: Add DNS Protocol Option in Routing Rules #2324

Closed
opened 2026-10-31 20:24:44 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @gnz1123 on GitHub (Sep 4, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3417

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

  • This feature report is written entirely in English.
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 - [x] This feature report is written entirely in English.
bsakaguchi 2026-10-31 20:24:44 +07:00
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#2324
No description provided.