DNS Leak Protection for Mobile Proxies
Before every visit, a name lookup (DNS) finds the website's address. If that lookup comes from your home ISP or from a server in another country, websites can tell the IP and the DNS do not belong together.
You need: any plan. Carrier DNS is on by default.
In short
DNS leak tests show which servers looked up the name. They should be the SIM carrier's.
XProxy looks up names through each modem with its carrier's DNS, like a phone would.
Your tool must send names to the proxy, not look them up itself.
Set it up
Step 1 of 2
Open General Settings → DNS Setting and go to DNS for Proxies.
- Turn on Force using DNS from SIM/modem/dongle 1. Every modem now looks up website names with its own carrier's DNS, through the same SIM.
- Using the WireGuard or OpenVPN service? Also turn on Force modem DNS for VPN service too 2.
- Click Save.
Remote DNS in your tools
Antidetect browsers send names to the proxy by themselves. Scripts and command-line tools need socks5h:
# good: the proxy looks up the name (no DNS leak)
curl -x socks5h://user:pass@192.168.1.10:4001 https://api.ipify.org
# leaks: your computer looks up the name with your own DNS first
# (with Force Server Resolve DNS on, the proxy refuses this instead)
curl -x socks5://user:pass@192.168.1.10:4001 https://api.ipify.orgPython requests (with pip install "requests[socks]") accepts the same socks5h:// address: see Python requests. Chrome, Playwright and Puppeteer always let the SOCKS5 proxy look up names, so plain socks5:// is right there. Scrapy needs an HTTP proxy or a SOCKS plugin: see Scrapy.
Test for a DNS leak
- Open the browser profile that uses the proxy.
- Go to browserleaks.com/dns and wait for the test.
- Every DNS server in the list should belong to the SIM carrier, or at least be in the same country as the proxy IP.
The panel tests this for you too: Check anonymity shows the DNS location next to the IP's country.
Troubleshooting
| Symptom | Fix |
|---|---|
| The leak test shows your home ISP | Your tool looks up names itself. Use socks5h://, or turn on Force Server Resolve DNS. |
| The test shows Google or Cloudflare in another country | Turn on Force using DNS from SIM/modem/dongle (step 1). |
| VPN users show Google DNS | Turn on Force modem DNS for VPN service too, then download the VPN files again. |
| The test shows Cloudflare or Google although modem DNS is on | The browser's own Secure DNS (DNS over HTTPS) is on. Turn it off in the browser profile. |
| Some sites stop loading after Force Server Resolve DNS | Your tool connects to bare IP addresses. Switch it to host names, or turn the option off for that tool. |
FAQ
Does XProxy support DNS over HTTPS (DoH)?
Not on the box: the proxies use the carrier's normal DNS, as a phone does. Your browser can still use DoH by itself, through the proxy.
What next?
Next, make sure UDP takes the same path.

