At a glance

Use this guide when you have a working Shadowrocket configuration and latency tests return results, but your browser can't load pages. First, distinguish DNS resolution failures from connection timeouts, then check the network, DNS, rules, and outbound route. This guide assumes you already have a provider and subscription; get subscription links from your provider.

1. Normal latency doesn't mean the entire web connection is working

A latency test result applies only to its target, method, and time. A successful TCP handshake means a connection was established to a port at a particular address. Even a test that includes an HTTP request can't confirm that other websites resolve, complete TLS handshakes, and load their resources correctly. Don't treat a single latency figure as a full browser test.

When you open a webpage, its domain usually has to resolve to an address before the connection follows the current rules for a direct or proxy route. Resolution may happen on the device or remotely, depending on the configuration and protocol behavior. The steps below describe troubleshooting layers; they don't mean that every request is always resolved locally on the device.

Domain request Resolution and routing Outbound connection TLS handshake Resource loading

If the error says the host can't be found, check DNS first. If the domain resolves but the connection times out, check the outbound route, port, and network. If text loads but images or video don't, check the domains serving those resources separately. A webpage may rely on several domains, so loading the homepage doesn't mean every resource follows the same route.

53
Common ports for traditional DNS; queries may use UDP or TCP
443
The standard HTTPS port used by DNS over HTTPS
A / AAAA
Query IPv4 and IPv6 address records separately

2. Record what happens, then make one change at a time

Before changing anything, save a copy of your current configuration. Note the selected connection on Home, the current Global Routing mode, and the active configuration in Config. If the problem started after an update, keep track of what changed. Don't switch connections, change DNS, replace rules, and refresh a subscription all at once; even if things start working, you won't know which change helped.

  1. Use a consistent test target

    Choose a full URL that used to work and note when it fails and the browser's exact error. Pick another known-good site for comparison. Use the same URLs for every test, and don't rely only on tabs that were already open.

  2. Note the current settings

    Check the connection and Global Routing on Home, then confirm the active file in Config. In Settings → DNS, note the current resolution settings. Keep screenshots for your own records; don't share sensitive information.

  3. Compare networks

    If cellular data is available, compare Wi-Fi with cellular. After switching networks, wait for the connection to stabilize, reconnect, and open the same page. If the problem occurs on only one network, check that network's DNS reachability and authentication first.

  4. Check the connection toggle

    If a test requires temporarily disconnecting, first note the state of Settings → On Demand and pause its triggers if needed. Otherwise, the system may reconnect automatically, invalidating the before-and-after comparison. Restore the original state when you're done.

  5. Retest after each change

    Change one setting at a time. Save it, reconnect, and try the webpage again. Record five details: network, connection, routing mode, DNS settings, and error text. If there's no improvement, restore the previous setting before checking the next one.

3. Tell DNS errors apart from connection failures

Error messages vary by browser, system language, and request component. The examples below show common error text; they aren't guaranteed to appear exactly this way in Shadowrocket. Check the requested domain, time of failure, and connection records rather than assuming that a page spinning means DNS is at fault.

Error: A server with the specified hostname could not be found.

Cause: The request didn't get a usable host address. The domain may be misspelled, the DNS response may be invalid, or the resolver may be unreachable. Fix: Check the domain, compare it with other domains on the same network, and verify the DNS settings currently in effect.

Error: NXDOMAIN

Cause: The DNS response says the queried domain doesn't exist, though a filtering policy may also return this result. Fix: Check the full domain and the service status. If only one domain fails, verify that domain first instead of resetting the entire configuration.

Error: SERVFAIL

Cause: The resolver couldn't complete the query, possibly because of an upstream problem or a validation failure. Fix: Back up your settings, then compare using another trusted DNS configuration you already have. If the problem persists, note when it occurred and report it to the relevant service provider.

Error: The request timed out.

Cause: The request didn't complete in time. The timeout could occur during DNS resolution, connection setup, or the server response. Fix: First check whether an address was returned. If so, investigate the connection and outbound route instead of treating every timeout as a DNS error.

A certificate error doesn't necessarily mean there's a DNS problem. An incorrect device clock, an expired website certificate, or a redirected connection can all cause TLS verification to fail. If you see a certificate warning, check the time and domain; don't hide the problem by disabling certificate verification.

4. Check system DNS, custom DNS, and DoH

Check the DNS settings in Settings, then review DNS-related entries in the active file under Config. Changing a setting in Settings alone doesn't prove that requests are using that value. File settings, DNS-related rules, and whether requests are handled remotely can all affect the final route. Use the active configuration and connection records for your test; don't assume that settings in the interface or file always take priority.

SettingWhat it depends onWhat to check first if it fails
System DNSThe resolution path provided by the current network or systemDoes it fail only on a particular Wi-Fi network? Has the network been authenticated?
Custom DNSWhether the specified resolver is reachable and returns a valid responseIs the address correct? Does the network restrict UDP/TCP port 53?
DNS over HTTPSDoHWhether the HTTPS endpoint URL is correct and its domain can be resolved initially

The [General] section of a configuration file can contain dns-server. The line below indicates that system DNS is in use. It's an example for identifying an existing setting, not a recommendation to give every configuration the same value. Edit an existing entry in a copy to avoid duplicate keys, and don't overwrite other settings required by your provider.

[General]
dns-server = system

DNS over HTTPS sends DNS queries over HTTPS. It doesn't automatically use the current proxy or guarantee faster resolution than system DNS. If the endpoint uses a domain name, that name usually has to resolve before the HTTPS connection can be established. If this depends on a DNS path that's already failing, resolution may get stuck at the initial step.

5. Check rules and outbound routing with Global Routing

Even after DNS responds, check that the connection is taking the right route. Proxy, Direct, Config, and Scene under Home → Global Routing serve different purposes. Note the original mode, switch it briefly for a comparison, then restore it. Don't treat a temporary test mode as a permanent fix.

ModeWhat it helps you checkWhat the result does—and doesn't—tell you
ConfigRoutes traffic according to the rules in the active configurationA failure may involve rule order, policy selection, or the resolution path
ProxyUse it to compare the proxy routeIf access returns, check the rules further; this doesn't prove DNS is working correctly
DirectUse it to compare the direct connection routeThe destination may not be suitable for a direct connection; failure alone doesn't prove the configuration is wrong
SceneUse it to manage routing behavior by scenarioCheck the active scenario conditions and effective settings before interpreting the test

For example, if Config fails but Proxy works, check whether the destination domain matches DIRECT earlier than expected and whether its resource domains match different rules. If both modes fail, check the resolution records to determine whether the DNS request failed, the proxy server's domain couldn't be resolved, or the server connection itself is unavailable. A successful mode switch alone doesn't prove that a particular DNS setting caused the problem.

[Rule]
DOMAIN-SUFFIX,example.com,DIRECT
IP-CIDR,192.168.0.0/16,DIRECT,no-resolve
GEOIP,CN,DIRECT
FINAL,PROXY

Also check the proxy server's Address. If it's a domain name, establishing the proxy connection may itself depend on DNS. Don't replace Address with an old IP without checking first; the server certificate, TLS Server Name, and actual endpoint may each have specific requirements. Follow the configuration instructions for your existing service.

6. Check caches, IPv6, and changes after subscription updates

After a settings change, browser, system, and resolver caches may continue returning old results. Caches can also retain a temporary failure. Save the configuration, reconnect, and make a fresh request. If needed, close the existing tab and compare in a new browsing session. A new session doesn't necessarily clear the system DNS cache, so use fresh request records to confirm what happened.

Don't repeatedly import the same subscription while troubleshooting. Duplicate entries make it harder to tell which one is selected. If you need to verify a link, get it from your provider and confirm that it's valid. Subscription URL tokens, server passwords, and UUIDs are sensitive; never share them in full when reporting a problem.

Does entering a website's IP address prove there's a DNS problem?

No, not by itself. HTTPS websites usually rely on the domain name for certificate verification and virtual host selection. Visiting an IP directly may show a certificate error or a different site. Check the domain lookup, connection target, and stage of failure together; whether the IP does or doesn't load isn't conclusive on its own.

Will reinstalling Shadowrocket fix the problem?

Work through the comparisons above first. Reinstalling won't fix network restrictions, invalid domains, or remote service outages, and it may remove local settings. Save a recoverable copy of your configuration, identify the scope of the problem, and then decide whether further action is needed.

7. Finish troubleshooting with a successful retest

After access is restored, retest the original full URL and check that all page resources load. If you temporarily used Proxy, paused On Demand, or changed the DNS method, restore each setting to its intended state. Troubleshooting is complete only when access works consistently on the target network and in the expected routing mode.

  1. Record the last change that worked—for example, “On the same Wi-Fi and connection, changing DNS alone restored access”—instead of just writing “reconnecting fixed it.”
  2. Keep the times, domains, Global Routing mode, and exact error text for both failed and successful tests. Separate what you observed from what you suspect caused it.
  3. If the problem persists, report proxy connection or server parameter issues to your provider. If the domain itself continues returning abnormal results, contact the relevant website or DNS provider.
  4. Before sharing connection records, redact subscription links, tokens, passwords, UUIDs, and personal address information. Include only what's needed to diagnose the problem.