Shadowrocket DNS: Encrypted DNS, Mapping and Logs
What you want to do
- send domain lookups over encrypted DNS;
- make a domain always resolve to an address you choose;
- see which domains your apps are looking up, to troubleshoot connections.
What we’ve verified
The DNS-related items in the App Store description are:
- Support DNS over HTTPS, DNS over TLS, DNS over QUIC;
- Local DNS Mapping;
- Record and display HTTP, HTTPS, DNS requests.
Where to set it
Menu names come from the US App Store screenshots and may differ in your version.
- Local DNS mapping: on the Config tab, tap the config file in use; it has Hosts and Add Hosts. Enter the domain and the address it should map to, for example
test.example.comto your own test server (an example domain). The exact fields are untested. - Encrypted DNS (DoH, DoT, DoQ): the screenshots don’t show where to enter an encrypted DNS server. Where to set it is untested, so we won’t give exact steps until we’ve checked.
- DNS logs: the Data tab has DNS under Logging; open it to see DNS requests (what it shows is untested).
What to watch out for
- A wrong server breaks everything: a mistyped DNS server can make every site fail to load. Back up your config first. If you changed the default config, Restore Default Config puts it back to its original content; for any other config file, restore it from your backup.
- Use a DNS provider you trust: the provider can see every domain you look up. Pick one you trust rather than an address you found online.
- Local mappings override normal lookups: a wrong mapping makes that site fail or open the wrong place. Remove test mappings when you’re done.
- Server problems aren’t fixed here: if a server won’t connect, work through Shadowrocket not connecting first; changing DNS usually won’t help.
For config basics, see Shadowrocket config files.