[GH-ISSUE #3166] Inconsistent skipFallback Behavior in DNS Configuration Leading to Connectivity Issues #2130

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

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

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
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 - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:23:25 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SPIRIT-00 commented on GitHub (Jul 2, 2025):

I think better create issue here, it is xray core function, not panel.

<!-- gh-comment-id:3027987229 --> @SPIRIT-00 commented on GitHub (Jul 2, 2025): I think better create issue [here](https://github.com/XTLS/Xray-core/issues), it is xray core function, not panel.
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#2130
No description provided.