mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #3166] Inconsistent skipFallback Behavior in DNS Configuration Leading to Connectivity Issues #2130
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#2130
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 @roadrout on GitHub (Jul 1, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3166
Describe the bug
When configuring multiple DNS servers within the dns section configuration, I've observed inconsistent and problematic behavior related to the skipFallback parameter. The expected behavior is that if skipFallback is set to false for a DNS server, should attempt the next DNS server in the list if the current one fails to resolve a domain or responds too slowly, thereby ensuring DNS fault tolerance.
However, based on my testing, the VPN connection consistently works stably only when the very first DNS server in the servers list explicitly has "skipFallback": true. If I set "skipFallback": false for the first DNS server (or if I omit the parameter, relying on its presumed default value, which seems to behave like false), the VPN connection either fails to establish or becomes highly unstable, despite subsequent DNS servers in the list being functional.
This issue effectively prevents the intended DNS resolution fallback from occurring, does not seem to properly switch to or utilize the backup DNS servers when the primary one is configured to allow fallback.
How to repeat the problem?
Configure the dns section with multiple DNS servers (e.g., Cloudflare, Google, Yandex, DNS.SB, OpenDNS).
For the first DNS server in your servers list, set "skipFallback": false.
Attempt to use the VPN (e.g., connect a client and try to browse websites).
Observe instability or a complete lack of internet connectivity through the VPN.
Change the skipFallback parameter for the first DNS server to "skipFallback": true".
Retry using the VPN.
Observe that the VPN now functions stably.
Expected action
When "skipFallback": false (or its default behavior if the parameter is omitted) is set for a DNS server, should:
Attempt to resolve the domain via the current DNS server.
If the current DNS server fails to respond within its timeout or returns an error, it should gracefully proceed to the next DNS server in the servers list.
Continue this process until the domain is successfully resolved or all available DNS servers have been exhausted.
Received action
No response
3x-ui Version
2.6.0
Xray-core Version
25.6.8
Checklist
@SPIRIT-00 commented on GitHub (Jul 2, 2025):
I think better create issue here, it is xray core function, not panel.