DNS Setup
To change the DNS on your desired operating system, follow these OS guides:DNS and Proxies
When you connect to a proxy, websites see the proxy’s IP address, not your real one. But DNS (the system that converts hostnames like example.com into IP addresses) can still leak information about:- Which domains do you visit
- Your approximate location, if DNS is resolved by your ISP or local network
How Proxies Resolve DNS
It depends on the type of proxy and how your tool is configured:HTTP/HTTPSproxies- In typical setups, your app sends the hostname (e.g., example.com) to the proxy.
- The proxy then resolves DNS and connects to the site.
- DNS appears to come from the proxy location.
SOCKS5proxies- There are two types, controlled by your tool configuration:
SOCKS5: many tools resolve DNS locally and send only the IP to the proxy.SOCKS5h: tools send the hostname (not the IP) to the proxy, so DNS is resolved on the proxy.
- Whether DNS is local or remote depends on how your software uses SOCKS5, not just the proxy itself.
- There are two types, controlled by your tool configuration:
If you care about avoiding local DNS leaks, use
HTTP(S) or SOCKS5h where possible, or configure your DNS on the device to use a trusted resolver (see our device guides).DNS Leaks
In the context of proxies, a DNS leak is when your queries are being resolved by your ISP or local network, even though your traffic itself is going through a proxy. In other words: the party that should no longer see which domains you visit (e.g. your ISP), still does, because your device is sending DNS queries outside of the proxy path. What may not be a DNS leak:- DNS is resolved by a public resolver (Google, Cloudflare, etc.) in a country different from:
- your real country
- the proxy server you’re connecting to
- DNS tests show a location that belongs to our DNS provider, a CDN, or a large anycast network, not exactly the proxy IP/location.
Reduce DNS issues
If you want more control and consistency over DNS, you can:- Set a trusted DNS resolver on your device, such as:
- Google DNS:
8.8.8.8and8.8.4.4 - Cloudflare DNS:
1.1.1.1and1.0.0.1
- Google DNS:
- Prefer proxy modes that resolve DNS on the proxy, such as:
HTTP/HTTPSproxiesSOCKS5H
Support
Need help or just want to say hello? Our support is available 24/7.
You can also reach us anytime via email at support@decodo.com.
You can also reach us anytime via email at support@decodo.com.
Feedback
Can’t find what you’re looking for? Request an article!
Have feedback? Share your thoughts on how we can improve.
Have feedback? Share your thoughts on how we can improve.