Shadowrocket DNS Not Working? Fix Websites That Won’t Load Despite Normal Latency

Normal latency doesn’t rule out DNS issues. Check Shadowrocket’s DNS settings, the active config’s dns-server value, and rule matches to find why websites won’t load.

At a glance

Normal latency doesn’t confirm that the domain you’re troubleshooting resolved successfully. First note the browser error, then check dns-server in the active config and the Global Routing mode. If the domain has a valid address, check the matching rule and outbound connection instead. These steps use iPhone / iPad as an example; the same troubleshooting sequence applies to Mac (Apple silicon / Intel), Windows, Android, and Linux. Menu locations vary by platform.

Tell normal latency apart from DNS failures and connection timeouts

The latency shown in Home only confirms that the target and route used for that test responded. Loading a webpage also involves resolving its actual hostname, selecting an outbound policy, and establishing a connection. Even if the homepage loads, sign-in pages, images, or APIs may use different hostnames. Checking only the main domain in the address bar can miss the request that actually failed.

The steps below are checks involved in loading a webpage; they don’t imply that rule matching and DNS lookups always happen in a fixed order. Domain rules can match a hostname directly, while rules that evaluate an IP address may need a DNS result. Some proxy outbounds can also resolve hostnames remotely.

Webpage hostnameDNS resolutionPolicy matchingOutbound connectionWebpage response

ERR_NAME_NOT_RESOLVED

Why it happens: The browser couldn’t resolve the requested hostname to a usable address. This error alone doesn’t show which part of the resolution path failed.

What to do: Check the full hostname. In the same browser, test it alongside a domain that normally works to tell whether the issue affects one domain or DNS resolution more broadly.

DNS_PROBE_FINISHED_NXDOMAIN

Why it happens: The browser couldn’t find the hostname. Common causes include a typo, a removed subdomain, or a DNS environment that can’t resolve an internal hostname.

What to do: Check the URL first. If the issue affects only a company or campus intranet hostname, retest on a network that can resolve it. Don’t switch the intranet DNS to a public DNS server as your first step.

ERR_CONNECTION_TIMED_OUT

Why it happens: The connection didn’t complete in time. This error alone doesn’t establish that DNS failed.

What to do: If the log already shows a usable destination address, check the matched policy and outbound connection instead of continuing to rotate DNS resolvers.

These are examples of browser errors, not fixed messages from Shadowrocket. If the browser only says “This site can’t be reached,” note when it happened, the full hostname, and the network in use so you can compare them with request logs.

Reproduce the issue with the same network, config, and Global Routing mode

  1. Record the current setup

    Note the current selection in Home → Global Routing and the config in use under Config. Record whether you’re on Wi-Fi or cellular, and keep the original settings so you can restore them after testing.

  2. Test two domains

    In the same browser and on the same network, open the failing webpage and one that usually works. Note whether all domains fail, only one fails, or the page loads but some resources don’t. Don’t change proxy entries during this test.

  3. Check the connection state

    If you need to disconnect Shadowrocket for comparison but the connection reconnects automatically, check Settings → On Demand. Only if your device and network policies allow it, temporarily disable the relevant on-demand connection setting, then restore it after testing. Don’t submit sensitive information while testing without the proxy.

  4. Change one condition at a time

    Retest on the original network first, then switch between Wi-Fi and cellular separately while keeping the config and mode unchanged. If only Wi-Fi fails, check whether the network requires a sign-in page, then inspect the DNS settings it provides. Change only one thing at a time so you can identify what affected the result.

Check dns-server, system DNS, and encrypted DNS

In Config, open the active config and check dns-server under [General]. Don’t check only a recently downloaded or edited file: changes won’t affect this test if another config is active. The snippet below is for comparison with the system DNS settings, not a complete config:

[General]
dns-server = system
SettingWhat it doesWhat to check first
dns-server = systemUses system DNS for the corresponding lookups in the config instead of specifying custom servers here.On iPhone / iPad, check the current Wi-Fi settings under Settings → Wi-Fi → ⓘ → Configure DNS. This menu doesn’t change DNS for cellular networks.
Traditional DNS with specified IP addressesSends the relevant queries to the specified DNS servers. Traditional DNS usually uses UDP port 53, and can also use TCP port 53.Check for typos in the address and whether the server is reachable only from an intranet. If it stops working after switching networks, first check whether the new network can reach it.
DNS over HTTPS(DoH)Sends DNS queries over HTTPS, using port 443 by default.Check the complete endpoint, including its hostname and path. If the endpoint uses a hostname, its address must also be resolved before connecting. Endpoint resolution, connection, or certificate errors are different from the target website having no DNS record.
53
Default port for traditional DNS: UDP / TCP
443
Default port for DoH over HTTPS
A / AAAA
Returns IPv4 / IPv6 addresses respectively

Takeaway: If changing only the resolver reproduces the issue, check the resolver path first

On the same network and with the same config, if changing only the custom dns-server to system restores access—and switching it back causes the issue again—check whether the original resolver address or DoH endpoint is reachable. There’s no need to change routing rules at the same time.

If the browser has its own encrypted DNS enabled, its webpage lookups may not use the config’s dns-server setting. For a fair comparison, note the browser setting and keep it consistent. Test it separately only if network policy allows, then restore it. Also note that an A record without an AAAA record doesn’t mean DNS resolution failed.

Check rule matches: does Config or Proxy work?

In Home → Global Routing, Config routes traffic according to the active config; Proxy and Direct can be used as temporary comparisons for proxy and direct connections. If you use Scene, note which scene is active. If a webpage loads in one mode, that only shows that the overall route works in that mode—it doesn’t identify a specific rule or DNS lookup as the cause.

[Rule]
DOMAIN-SUFFIX,example.com,PROXY
FINAL,DIRECT
  • DOMAIN-SUFFIX,example.com,PROXY matches example.com and its subdomains, such as www.example.com, but not example.org. This example explains rule matching; don’t replace the ruleset you’re currently using with it.
  • FINAL,DIRECT sends requests that didn’t match earlier rules directly, so it should come after specific rules. Other hostnames required by a webpage may fall through to this rule if no earlier rule covers them. The page shell may load while its resources remain stuck.
  • IP-CIDR and GEOIP match against the destination address. When checking these rules, distinguish between a domain with no usable DNS result and a domain that resolved to an address matched by an unexpected rule. They require different fixes.
  • If Proxy works but Config fails, first check the rule matched by the failing hostname and its outbound route. Don’t add an overly broad domain rule. After making a change, switch back to the mode you normally need and test the same hostname again.

Retest and decide which changes to keep

After making one change, retest on the original failing network with the same browser and hostname. Reconnecting Shadowrocket can confirm whether the app is using the updated config, but it won’t necessarily clear all browser or upstream resolver caches. If the results still don’t match your notes, confirm the hostname and active config first, then decide whether to wait for the cache to expire.

  • Only one subdomain still fails: Check whether that subdomain exists and whether it must be resolved on a specific intranet. A working main domain doesn’t mean every subdomain has a DNS record.
  • The domain resolves to an address, but the webpage still fails: If the next error is a connection timeout or certificate error, check outbound connectivity, the destination port, and TLS. Don’t substitute a test using the bare HTTPS IP for a domain test; the certificate or site selection may depend on the original hostname.
  • Access works only in a temporary mode: Don’t treat the temporary mode as a fix. Restore your original Global Routing and On Demand settings, then retest the failing page and a site you use regularly to make sure the changes haven’t affected other traffic.
  • Need to continue troubleshooting? Note the failure time, network type, exact browser error, mode, active config, and results from changing one setting at a time. If the evidence points to an existing proxy outbound, share redacted details with your service provider. Get subscriptions from your service provider.
Download Shadowrocket for all platforms