
The difference between SOCKS5 vs SOCKS5h usually comes down to where a hostname is resolved into an IP address:
socks5:// commonly means the client resolves the hostname locally before asking the proxy to connect.socks5h:// commonly means the client sends the hostname to the proxy, allowing the proxy to resolve it remotely.The extra h means “hostname.” It is a client-side URL-scheme convention, most notably used by tools such as curl. It is not a separate SOCKS protocol version or an extension defined by the SOCKS5 specification.
This distinction matters because local DNS resolution can disclose the domains you intend to visit to your configured DNS resolver or local network. Remote resolution can move that lookup to the proxy side, but it does not make browsing anonymous, encrypt every connection, or prevent every other type of IP exposure.
Configuration also depends on the application. Using socks5h in curl does not automatically change how a browser, operating system, or another application handles DNS.
SOCKS5 is a proxy protocol defined in RFC 1928. A client connects to the SOCKS5 server, optionally authenticates, and requests an operation such as CONNECT.

For a TCP connection, the client can provide the target in several forms:
The important decision happens before the connection request is sent.
With a socks5:// proxy URL, many clients first ask the local operating system or configured DNS resolver for the address of a hostname.
For example, a client may want to reach:
example.net
The connection flow may look like this:
Client → local DNS resolver: What is example.net?
Client → SOCKS5 proxy: CONNECT 93.184.216.34:443
SOCKS5 proxy → destination: 93.184.216.34:443
The SOCKS5 proxy handles the TCP connection to the resolved IP address. However, the initial DNS lookup has already occurred outside the proxy path.
With socks5h://, a compatible client sends the domain name in its SOCKS5 CONNECT request instead of resolving it first.
Client → SOCKS5 proxy: CONNECT example.net:443
SOCKS5 proxy → its DNS path: What is example.net?
SOCKS5 proxy → destination: resolved-address:443
This is often described as SOCKS5 remote DNS or proxy DNS resolution. The DNS query is made from the proxy side, subject to the proxy server’s implementation, network configuration, and resolver settings.
The proxy must resolve the name somehow before it can make a TCP connection. RFC 1928 allows a domain-name address type in a request, but it does not specify which recursive resolver the proxy must use or how a commercial provider operates its DNS infrastructure.
DNS translates names such as www.example.net into IP addresses. Without an address, an application generally cannot initiate an ordinary TCP connection to a hostname.

In a local-resolution setup, the application uses DNS configured on the device, router, operating system, browser, or encrypted-DNS feature.
Depending on the device and network, a lookup may go to:
This lookup may occur before the application reaches the SOCKS5 proxy. As a result, the local resolver can potentially observe the queried domain, while the destination website sees the proxy exit IP for the proxied TCP connection.
In a remote-resolution setup, the SOCKS client supplies the hostname to the proxy. The proxy resolves it through its own available DNS path.
This can help prevent the local DNS resolver from receiving that particular lookup. It can also produce geographically different DNS answers. Content-delivery networks sometimes return different addresses based on the apparent location of the resolver, so resolving near the proxy may be useful when testing location-specific delivery behavior.
Remote DNS resolution is not automatically better in every environment. An internal hostname, such as printer.office.example, may resolve only through a company DNS server reachable from the local network. Sending that hostname to a remote proxy will likely fail or return a different result.
Even when the destination hostname is resolved remotely, the client may need to resolve the proxy server hostname locally before it can connect to the proxy.
For example:
socks5h://proxy.example-provider.net:1080
The device may first resolve proxy.example-provider.net through its usual DNS configuration. To avoid that lookup, some clients allow a proxy IP address instead of a hostname. This creates operational tradeoffs: provider endpoint changes, certificate validation requirements, load balancing, and IPv6 support may depend on using the provider’s hostname.
A SOCKS5 DNS leak occurs when domains or DNS traffic expected to use the proxy path instead use a local or otherwise unintended DNS path.

A leak is configuration-dependent. It is not proof that SOCKS5 itself is broken.
The most common cause is an application configured with a normal SOCKS5 proxy while resolving names before sending its CONNECT request.
This is expected behavior for some clients and configurations. Use a remote-DNS setting or a socks5h scheme only where the application explicitly supports it.
A device can run many networked processes at once. Configuring one browser or command-line tool does not proxy every application.
Common bypasses include:
localhost or internal domainsA browser IP check verifies only the browser tab used for the test. It does not prove that the operating system is fully proxied.
Modern browsers may use DNS-over-HTTPS (DoH). Instead of sending conventional DNS traffic to port 53, the browser can make HTTPS requests to a DNS provider.
This can reduce visibility to a local network observer, but it may still bypass the SOCKS5 proxy if the browser’s DoH connection is direct. In that case, there may be no visible UDP or TCP port 53 traffic, yet the browser may still be resolving domains outside the intended proxy route.
For a meaningful test, check both the proxy configuration and the browser’s encrypted-DNS settings. Behavior varies among browsers, versions, policies, and extensions.
A VPN, split tunnel, firewall policy, security agent, or virtual machine can route DNS differently from application traffic. For instance, the TCP connection may go through a SOCKS5 proxy while the device’s DNS remains directed to a corporate resolver.
IPv6 can create a similar mismatch. A test that checks only IPv4 does not prove that IPv6 traffic or IPv6 DNS behavior follows the same policy.
A provider may offer a SOCKS5 endpoint that supports TCP CONNECT but not every optional capability or client behavior. Remote hostname resolution for a TCP request is distinct from UDP relay support.
SOCKS5 also defines UDP ASSOCIATE, but support is implementation-dependent. A proxy that works for browser TCP traffic is not necessarily a UDP proxy. Likewise, a general UDP connectivity test does not prove that the proxy supports SOCKS5 UDP ASSOCIATE. For protocol details, see SOCKS5 UDP Associate: How UDP Proxying Works, Testing, and Troubleshooting.
Use these examples as patterns, then confirm the specific application’s documentation and test its behavior. Proxy capabilities, authentication methods, and remote-DNS support vary.
socks5:// versus socks5h://curl makes the distinction explicit.
Local resolution:
curl --proxy socks5://USERNAME:PASSWORD@PROXY_HOST:PORT https://example.net/
Remote resolution:
curl --proxy socks5h://USERNAME:PASSWORD@PROXY_HOST:PORT https://example.net/
With socks5h, curl passes the hostname to the SOCKS proxy. With socks5, curl resolves the target hostname locally by default.
Use URL encoding if a username or password includes reserved URL characters such as @, :, /, or #. Alternatively, use curl options designed for credentials rather than placing sensitive values directly in shell history.
For a SOCKS5 endpoint and connection details, consult the relevant ProxySocks5 SOCKS5 proxy page. Confirm the plan and endpoint documentation rather than assuming a particular authentication or DNS implementation.
Firefox has SOCKS proxy settings and a remote-DNS preference. In a test profile:
about:config, locate network.proxy.socks_remote_dns.true if your intended configuration requires proxy-side DNS.The exact settings layout can change between Firefox versions. Selecting SOCKS v5 alone should not be treated as proof that hostname lookups are remote.
Some applications support a SOCKS5 proxy host and port but do not provide a choice about hostname resolution. Others accept only HTTP proxy settings.
Do not assume that entering a SOCKS5 endpoint makes DNS remote. First determine whether the application:
For protocol-selection guidance, see Residential SOCKS5 Proxies vs HTTP(S): Compatibility Guide.
A reliable DNS test verifies the behavior of the exact client, profile, and network you plan to use. One successful webpage load is not enough.

Before changing settings, record the normal behavior:
This makes it easier to identify which change affected the path.
A connection to an IP address does not require a DNS lookup, so it cannot verify remote hostname resolution.
Use a hostname with the exact application configuration you intend to deploy. Then separately confirm that the destination connection appears from the expected proxy exit IP.
For curl, compare:
curl -v --proxy socks5://USER:PASS@PROXY_HOST:PORT https://example.net/
with:
curl -v --proxy socks5h://USER:PASS@PROXY_HOST:PORT https://example.net/
Verbose output can help diagnose proxy negotiation and connection failures. It does not necessarily show every DNS query made by the operating system or browser.
On a controlled network, capture or monitor local DNS activity while running the test.
Possible approaches include:
If a local resolver records a lookup for the test hostname while testing expected remote DNS, investigate further. The lookup may come from the target application, the operating system, browser prefetching, a security tool, or another process.
A lack of port 53 traffic is not conclusive if DoH or DNS-over-TLS is enabled. Check for encrypted DNS connections and browser-specific DNS behavior.
The strongest method is to use a unique hostname under a domain and authoritative DNS service you control. Review the authoritative query logs while testing.
A unique hostname reduces ambiguity from browser caches, DNS caches, prefetching, and unrelated user activity. For example, create a temporary hostname such as:
test-2026-unique.example.net
Then compare observations:
Authoritative DNS logs can show that a resolver queried the domain, but they do not always identify the individual client. Recursive resolvers cache answers and may use shared infrastructure.
DNS results may be cached by the application, operating system, router, recursive resolver, or browser. Cached results can make a later test appear to avoid DNS entirely.
Use a fresh, unique hostname for each test when possible. Avoid relying only on clearing a local cache because upstream caches may still contain the result.
A good test proxy DNS leak workflow also examines failures.
Try a deliberately nonexistent hostname and observe where the resulting lookup occurs. Then test a hostname that resolves only on your internal DNS, if applicable. This can reveal whether a client silently falls back to local DNS when remote resolution fails.
Do not assume fallback behavior is universal. It differs by client and configuration.
Remote DNS is one privacy control, not a complete security model.
SOCKS5 forwards connections; it does not itself encrypt application traffic between the client and proxy. HTTPS can protect web content between the browser and website, but it does not make every metadata field invisible.
Use secure protocols such as HTTPS, SSH, or other application-layer encryption where appropriate. Treat proxy credentials carefully as well: the username/password sub-negotiation described in RFC 1929 is not encryption.
For HTTPS connections, the destination hostname may be visible through mechanisms such as TLS Server Name Indication (SNI), although encrypted Client Hello support can change this in compatible environments. After TLS terminates at the destination, the HTTP request authority is visible to that destination: Host in HTTP/1.1 and :authority in HTTP/2 and HTTP/3.
Remote DNS prevents a local DNS resolver from receiving a specific lookup when correctly configured. It does not hide the hostname from the website being contacted.
A proxy may change the source IP observed by the destination, but websites can use cookies, login sessions, browser fingerprints, time zone, language, WebRTC behavior, and other signals.
Test WebRTC separately from DNS. WebRTC may create connectivity paths that do not match ordinary browser requests. See WebRTC Leak Test: Find and Reduce IP Exposure for a focused testing workflow.
With remote resolution, the proxy-side network or DNS resolver can potentially observe requested domain names. Consider who operates the proxy, how it authenticates clients, its applicable policies, and the sensitivity of the activity.
A DNS proxy may be relevant when DNS routing is the specific requirement, but its behavior should be evaluated using its documented configuration and testing in the intended client environment.
socks5 but not socks5hThe proxy-side resolver may be unable to resolve the name, the name may be private to the local network, or the proxy may reject the request. Test a public hostname first, then review proxy endpoint details and authentication.
Check whether the tested application actually supports remote resolution. Inspect browser DoH settings, extensions, background prefetching, and other processes. A visible proxy IP proves that the HTTP or TCP connection used the proxy; it does not independently prove the DNS path.
This can be normal. DNS responses can vary by resolver location, resolver policy, IP version, CDN routing, split-horizon DNS, and cached answers. Compare records and TTL values, and test from the same application configuration.
Do not switch to socks5h expecting it to enable UDP. Remote hostname resolution for TCP CONNECT and SOCKS5 UDP ASSOCIATE are different functions. Verify whether both the client and proxy explicitly support UDP relay if the application requires it.
SOCKS5h can reduce exposure of destination DNS queries to the local DNS path by sending the hostname to the proxy for resolution. It does not encrypt SOCKS5 traffic by itself, secure an unsafe application, or guarantee anonymity. Security depends on the application protocol, proxy transport, device configuration, and network environment.
No. SOCKS5 is defined by RFC 1928. `socks5h` is a proxy URL-scheme convention used by some clients, including curl, to request remote hostname resolution. Support is client-specific.
No. A client may still resolve the proxy hostname locally, use browser DNS-over-HTTPS directly, run background DNS lookups, or bypass the proxy for some traffic. Test the exact application, profile, and network configuration.
Not necessarily. SOCKS5h typically concerns how a client submits a hostname for a TCP `CONNECT` request. UDP proxying requires `UDP ASSOCIATE` support from both the client and proxy, which is implementation-dependent.
No. An IP-check website can show the apparent IP address of the connection reaching that website. It does not show where the hostname was resolved. Use resolver logs, controlled DNS testing, local traffic observation, and application-specific configuration checks.

Buy Proxy now HTTP Proxies or SOCKS5, Dedicated or Shared, Residential or Datacenter. Fully Anonymous and Premium.
Buy Proxy

We offer a unique proxy infrastructure, monitored 24/7 with a 99% uptime. In the rare event of a failure, we take immediate action to resolve the issue.
Our proxy servers are optimized for performance, powered by a 1Gb/s network. Whether you use our residential or datacenter proxies, you'll experience seamless performance.
Our static proxies and VPNs (residential or datacenter) ensure 100% anonymity without any IP or DNS leaks. We maintain a no-logs policy.
Select proxies by city, state, or country. Our static IP proxies, VPNs, residential or datacenter, can be filtered by your desired location. Residential proxies can also be filtered by ISP.
Our Dedicated, Shared, Residential Proxy, SOCKS5, Shadowsocks, and VPNs offer unlimited bandwidth, allowing you to use them as much as you need without any concerns.
We are supporting QUIC and UDP on SOCKS5, Shadowsocks, and WireGuard VPN for apps that need faster, real-time traffic.
We are offering Amnezia-based obfuscation for VPN users who need traffic to look more like regular HTTPS.
We offer static Proxies and VPNs with Windows as the default TCP fingerprint, plus MacOs, Linux, Android, and iOS options.
Purchase proxies with Instant Activation using a Card or PayPal. Transactions with cryptocurrencies require network confirmations.
Opt for username and password authentication, or authenticate by adding your IP address to our system. Access your proxy password or add your IP in your account.
We offer monthly proxies, both residential and datacenter. For long-term purchases, we provide the option to change proxies directly in your account.
We understand the importance of support. If you have questions about our services, contact us via Live Chat. For any issues, open a support ticket in your account.
Buy proxies with Card, PayPal, Bitcoin (BTC), Ethereum (ETH), Litecoin (LTC), Solana (SOL), TRON (TRX), Toncoin (TON), BNB, Polygon, Avalanche, XRP, Cardano, Dogecoin, USDT, USDC, DAI, EURT, and 70+ supported cryptocurrencies.
We offer a variety of static and dynamic IP solutions designed for legitimate business and technical use, with global coverage tailored to your project requirements.
Dream no more! Get acquainted with our products today: protected proxy-servers, at incredible speed and minimum cost from you. Still not convinced? Check our proxies features out: - work with any sites/programs - supports HTTP/HTTPS, SOCKS5, ShadowSocks, Trojan protocols - simple login: your proxy password or by your IP
With our proxies you get fast, stable and most important, an anonymous tool to get by on the internet. High quality proxies is our motto. Try our products today: spare 5 minutes from your time to gain continuos work-flow.
Buy Proxy

