Skip to content

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

Sites see your DNS

DNS leak tests show which servers looked up the name. They should be the SIM carrier's.

Carrier DNS

XProxy looks up names through each modem with its carrier's DNS, like a phone would.

socks5h

Your tool must send names to the proxy, not look them up itself.

Set it up

Step 1 of 2

Use the carrier DNS

Open General Settings → DNS Setting and go to DNS for Proxies.

  1. 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.
  2. Using the WireGuard or OpenVPN service? Also turn on Force modem DNS for VPN service too 2.
  3. Click Save.
With the first switch off, the proxies use the servers in DNS servers (for example 1.1.1.1). Those answer from a data center, often in another country than your SIM.

Remote DNS in your tools

Antidetect browsers send names to the proxy by themselves. Scripts and command-line tools need socks5h:

bash
# 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.org

Python 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

  1. Open the browser profile that uses the proxy.
  2. Go to browserleaks.com/dns and wait for the test.
  3. 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

SymptomFix
The leak test shows your home ISPYour tool looks up names itself. Use socks5h://, or turn on Force Server Resolve DNS.
The test shows Google or Cloudflare in another countryTurn on Force using DNS from SIM/modem/dongle (step 1).
VPN users show Google DNSTurn on Force modem DNS for VPN service too, then download the VPN files again.
The test shows Cloudflare or Google although modem DNS is onThe 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 DNSYour 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.

Use with AI

Still stuck?A technician can look at your device with a one-time PIN, or chat with us on Telegram.