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.
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.
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.
-
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.
-
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.
-
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.
-
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.
-
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.
| Setting | What it depends on | What to check first if it fails |
|---|---|---|
| System DNS | The resolution path provided by the current network or system | Does it fail only on a particular Wi-Fi network? Has the network been authenticated? |
| Custom DNS | Whether the specified resolver is reachable and returns a valid response | Is the address correct? Does the network restrict UDP/TCP port 53? |
| DNS over HTTPS | DoH | Whether 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.
- Enter the full DoH URL specified by the DNS provider. A domain name or IP address alone isn't a DoH endpoint URL.
- Don't replace the endpoint with an arbitrary IP address to bypass DNS. HTTPS certificate and hostname verification still need to match, and replacing the endpoint may cause a new TLS error.
- Don't conclude that DoH is unavailable just because opening its endpoint in a browser shows a blank page or an error. Regular webpage requests use a different format from DNS queries.
- Compare system DNS, custom DNS, and DoH one at a time. Adding several addresses at once creates more variables and doesn't guarantee that queries will follow the order entered.
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.
| Mode | What it helps you check | What the result does—and doesn't—tell you |
|---|---|---|
| Config | Routes traffic according to the rules in the active configuration | A failure may involve rule order, policy selection, or the resolution path |
| Proxy | Use it to compare the proxy route | If access returns, check the rules further; this doesn't prove DNS is working correctly |
| Direct | Use it to compare the direct connection route | The destination may not be suitable for a direct connection; failure alone doesn't prove the configuration is wrong |
| Scene | Use it to manage routing behavior by scenario | Check 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.
- Fails on only some networks: Compare address reachability on Wi-Fi and cellular. If the issue changes with the network, check the network's DNS, authentication, and access restrictions first; don't rush to rebuild the subscription.
- The domain resolves, but the page keeps waiting: Check whether the response includes A records, AAAA records, or both. A successful AAAA lookup only means an IPv6 address was returned; it doesn't mean the current network has working IPv6 connectivity. Compare the address families in the records rather than treating IPv6 as something to disable by default.
- The main page loads, but resources are missing: Note the domain of each failed resource. It may resolve differently from the main site or match different routing rules, so test that resource domain separately.
- The problem started after a subscription update: Check whether the selected connection on Home changed, and whether the relevant server's Address, Port, or protocol settings changed. Updating a subscription and updating a Config file are not the same thing; refreshing the connection list doesn't necessarily fix DNS rules.
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.
- 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.”
- 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.
- 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.
- Before sharing connection records, redact subscription links, tokens, passwords, UUIDs, and personal address information. Include only what's needed to diagnose the problem.