Skip to content

Updated

DNS Different From Proxy IP:
Why It Happens, When to Fix

  1. A DNS test reports the resolver that looked up its test names, which is a different address from your exit IP, so the two can sit in different countries and still be normal.
  2. Per the Chromium docs, Chrome leaves name lookup to the proxy for both HTTP and SOCKS5 proxies, so the resolver shown is on the proxy side.
  3. It is worth fixing only when the resolver is your own network's, meaning the lookup bypassed the proxy, for example curl with socks5:// instead of socks5h://.

Check it right after buyingExample output

curl -x http://USER:PASS@HOST:PORT https://ipinfo.io/json

ip
203.0.113.24
country
US
Matches the country you picked
Day 15
203.0.113.24
Same address for the whole term
Example addresses (203.0.113.0/24), not real exits
01 / 08The 3 most common reasons

Why a DNS test can name another country than your proxy IP, and a four-step check for the cases that do need a fix.

The 3 most common reasons

1. The two addresses are different things. The exit IP is where websites see your traffic come from. The resolver is the server that turns a name like example.com into an address. A DNS test shows the resolver, so it can name another country, or another company, than the exit IP.

2. The lookup happened on your own side. Tools that resolve the name locally and send the proxy only an address, such as curl with socks5://, show your network's resolver. This is the case worth fixing.

3. Something outside the proxy is answering. A program or system service that ignores the proxy settings, or a second tool that does its own lookups, can show a resolver unrelated to the proxy. Which resolver the proxy side uses is not something you choose per request, and we do not promise it matches the exit country.

Who looks up the hostname

Who looks up the hostname
ItemName lookup done bySource
Chrome through an HTTP proxyThe proxyChromium net/docs/proxy.md
Chrome through a SOCKS5 proxyThe proxyChromium net/docs/proxy.md
curl with socks5://Your computercurl manual, --socks5
curl with socks5h://The proxycurl manual, --socks5-hostname

Source: Chromium net/docs/proxy.md and the curl 8.7.1 manual, read on 6 December 2026. Other programs differ: check each one's own documentation.

When it matters and when it does not

If the resolver shown belongs to the proxy side, nothing leaked: the name was looked up where the traffic leaves. A different country is expected and needs no change, and you cannot pick the resolver country per request anyway.

If the resolver shown is your own provider or office network, the lookup went around the proxy. Then a site that compares the two could see that your name lookups come from your home network while your traffic exits elsewhere. Fix the tool so it hands the name to the proxy. Browser leaks of the real IP through WebRTC are a separate problem with its own test.

Check it in 4 steps

  1. Step 1: Note the exit IP

    Run the first command in the code block below and write down the country.

    Expected result JSON with the exit IP and country.

  2. Step 2: Run a DNS test through the same proxy

    Open a DNS leak test page in the browser that uses the proxy, and note the country and network name of the resolver it shows.

  3. Step 3: Decide

    If the resolver is a network you do not recognise as your own, the lookup happened proxy side and you can stop. If it is your own provider, go to Step 4.

  4. Step 4: Hand the name lookup to the proxy

    In curl or in code, change socks5:// to socks5h://. In a browser, use an HTTP or SOCKS5 proxy set in the browser or system proxy settings. Then repeat Step 2.

Same proxy, two ways to resolve

# Exit IP and country
curl -sS -m 20 -x socks5h://LOGIN:PASSWORD@HOST:PORT https://ipinfo.io/json

# The name is looked up on your computer, then only an address goes to the proxy
curl -sS -m 20 -x socks5://LOGIN:PASSWORD@HOST:PORT https://ipinfo.io/json

# The name is sent to the proxy, which looks it up
curl -sS -m 20 -x socks5h://LOGIN:PASSWORD@HOST:PORT https://ipinfo.io/json

Example only: replace LOGIN, PASSWORD, HOST and PORT with the values in My assets. The three lines differ only in socks5 versus socks5h; the output looks the same, so check the resolver with a DNS test.

With Proxy302

On the gateway, HTTP uses port 2222 and SOCKS5 uses port 3333; copy HOST, PORT, USERNAME and PASSWORD from My assets. For a tool where you control the lookup, use socks5h://. Chrome and Edge cannot log in to a SOCKS5 proxy, so for a browser buy an HTTP IP.

A static ISP IP costs US$0.50 for 1 day and US$7.99 for 30 days, about US$0.27 a day (7.99 ÷ 30), the same in every country. Which countries are in stock is shown on the order page. There is no free trial; the smallest purchase is one IP for one day.

DNS and proxy IP questions

Why does my DNS show a different country than my proxy IP?

A DNS test shows the resolver, not the exit IP. They are two addresses and can be in different countries without anything being wrong.

Is a DNS leak the same as a WebRTC leak?

No. A DNS leak is a name lookup that went around the proxy. A WebRTC leak is the browser exposing an address through its media feature. Each has its own test.

Does Chrome resolve names locally when I use a proxy?

The Chromium docs say name resolution is deferred to the proxy for HTTP proxies and always done proxy side for SOCKSv5.

What is the difference between socks5 and socks5h?

With socks5:// curl looks the name up on your computer; with socks5h:// the proxy looks it up.

Can I choose the country of the DNS resolver?

Not per request on Proxy302, and we do not promise the resolver country matches the exit country.

Further reading

Setup guides Proxy302 publishes on GitHub on the same topic:

Reference links

3
  1. Chromium docs: Proxy support in Chrome (net/docs/proxy.md)

    Official documentation · Confirmed on:

    Read on 6 December 2026: for SOCKSv5, name resolution is always done proxy side; for HTTP proxies name resolution is always deferred to the proxy; for SOCKSv4 it is done client side; no authentication methods are supported for SOCKSv5 in Chrome.

  2. curl manual: --socks5 and --socks5-hostname

    Official documentation · Confirmed on:

    Read in the curl 8.7.1 manual on 6 December 2026: --socks5 uses the SOCKS5 proxy but resolves the host name locally; --socks5-hostname lets the proxy resolve the host name, and the same is set with the socks5h:// prefix in -x.

  3. Proxy302 product facts and price list

    Product observation · Confirmed on:

    Static ISP per-IP lease prices (US$0.50 for 1 day, US$7.99 for 30 days), gateway ports (HTTP 2222, SOCKS5 3333) and no free trial, read from the product facts file on 6 December 2026.

Ready to try it?

Create an account, top up once, then pick rotating residential, static ISP or datacenter IPs and have one running in your browser within minutes.