[GH-ISSUE #3453] DNS support in WireGuard outbound #2348

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

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

Currently, the WireGuard outbound configuration does not allow specifying a DNS server.
Without this option, system or application resolvers may continue using the default DNS outside the tunnel, which can lead to DNS leaks. This undermines privacy and defeats one of the main purposes of using a VPN tunnel.

Describe the solution you'd like

Add support for a DNS field in the WireGuard outbound configuration, similar to the DNS option in the native WireGuard [Interface] section.
This would ensure DNS queries are routed through the tunnel, prevent leaks, and allow users to define custom/private resolvers (e.g., Unbound, AdGuardHome, encrypted DNS services).

Describe alternatives you've considered

No response

Checklist

  • This feature report is written entirely in English.
Originally created by @REZZSAR on GitHub (Sep 11, 2025). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3453 ### Is your feature request related to a problem? Currently, the WireGuard outbound configuration does not allow specifying a DNS server. Without this option, system or application resolvers may continue using the default DNS outside the tunnel, which can lead to DNS leaks. This undermines privacy and defeats one of the main purposes of using a VPN tunnel. ### Describe the solution you'd like Add support for a DNS field in the WireGuard outbound configuration, similar to the DNS option in the native WireGuard [Interface] section. This would ensure DNS queries are routed through the tunnel, prevent leaks, and allow users to define custom/private resolvers (e.g., Unbound, AdGuardHome, encrypted DNS services). ### Describe alternatives you've considered _No response_ ### Checklist - [x] This feature report is written entirely in English.
bsakaguchi 2026-10-31 20:24:53 +07:00
Author
Owner

@johnmcclane25 commented on GitHub (Sep 25, 2025):

+1, also noticed that this param is missed and nice to have it.

<!-- gh-comment-id:3333929174 --> @johnmcclane25 commented on GitHub (Sep 25, 2025): +1, also noticed that this param is missed and nice to have it.
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#2348
No description provided.