Best DNS for Your Connection: How to Choose
In this article
The best DNS for your connection is usually a fast, privacy-respecting public resolver like Cloudflare (1.1.1.1), Google Public DNS (8.8.8.8), or Quad9 (9.9.9.9) — but the true “best” depends on your location, your ISP, and whether you prioritize speed, privacy, or content filtering. Below we explain how DNS works, how to test which resolver is fastest for you, and how to switch safely.
What DNS Actually Does
DNS (Domain Name System) is the phonebook of the internet. When you type a domain like example.com, your device asks a DNS resolver to translate that name into an IP address (e.g., 93.184.216.34). Your ISP provides a default resolver, but it is not always the fastest or most private. Public resolvers are operated by companies like Cloudflare, Google, and Quad9, and they often have globally distributed servers that can respond faster than your ISP’s.
How to Find the Fastest DNS for Your Location
Speed varies by network and geography. A resolver that is fast for someone in New York may be slower for someone in Sydney. To find your best option, use a free DNS benchmarking tool:
- DNSPerf – online global speed rankings of major public DNS providers.
- Namebench – an open-source tool that tests your connection against dozens of resolvers.
- GRC DNS Benchmark – a Windows utility that runs hundreds of tests and ranks resolvers.
Run the test at different times of day (peak vs. off-peak) to get a reliable average. Also note that your ISP’s DNS may be configured to block certain sites or redirect misspelled domains – a public resolver will not do that unless you choose a filtering service.
Top Public DNS Providers Compared
Here are the most popular public resolvers and their key features:
- Cloudflare 1.1.1.1 – Known for speed and privacy. Does not log IP addresses, supports DNS-over-HTTPS and DNS-over-TLS. No filtering by default.
- Google Public DNS 8.8.8.8 – Fast and reliable, but logs some data (anonymized after 24 hours). No filtering by default.
- Quad9 9.9.9.9 – Blocks malicious domains by default, which can protect against phishing and malware. Slightly slower in some regions, but privacy-friendly.
- OpenDNS (208.67.222.222) – Offers optional content filtering (family, adult) and is popular for parental controls.
- Comodo Secure DNS – Includes malware blocking, but has had mixed reviews on speed.
For most users, Cloudflare or Google are the best starting points. If you want built-in security, choose Quad9.
How to Change Your DNS Settings
You can change DNS at the router level (affects all devices) or per device. Here are the general steps:
On Windows 10/11
- Open Settings → Network & Internet → Wi-Fi (or Ethernet).
- Click on your connection name, then Edit under DNS server assignment.
- Choose Manual, enable IPv4, and enter the primary and secondary DNS addresses (e.g., 1.1.1.1 and 1.0.0.1).
- Save and restart your browser.
On macOS
- Go to System Settings → Network → select your connection → Details.
- Click DNS → the + button to add a server.
- Enter the IP addresses and click OK.
On a Router
- Log into your router’s admin page (usually 192.168.1.1 or 192.168.0.1).
- Find the Internet/WAN settings.
- Change DNS from “Obtain automatically” to “Use these DNS servers” and enter the addresses.
- Save and reboot the router.
Always write down your current DNS settings before changing, so you can revert if needed.
Common Problems and Misconceptions
“Changing DNS speeds up my internet.” – DNS affects how fast a domain name is resolved, not your download speed. If you visit many new sites, a faster resolver can make pages load quicker, but streaming and downloads are unaffected.
“Public DNS is less secure.” – Actually, many public resolvers support encryption (DoH/DoT) which prevents your ISP from seeing your DNS queries. Your ISP’s default DNS often lacks this.
“I can just use 8.8.8.8 and it’s always best.” – Not necessarily. Some ISPs have peering agreements that make their own DNS faster for local content. Always test.
“DNS changes can break my internet.” – Rarely, but if you mistype an IP address, you’ll lose resolution. That’s why you keep the old settings handy.
Security and Privacy Considerations
When you use a public DNS, that provider sees your browsing history (unless they log nothing, like Cloudflare). If privacy is a top concern, choose a resolver with a clear no-logging policy and enable DNS-over-HTTPS or DNS-over-TLS in your browser or OS. Note that some ISPs block DNS-over-HTTPS traffic – if you experience issues, you may need to use the provider’s dedicated app or configure a different port.
Also be aware that DNS filtering (like Quad9) can occasionally block legitimate sites. You can usually whitelist domains in the provider’s dashboard if you create an account.
Alternatives to Public DNS
If you want more control, you can run your own DNS server (like Pi-hole) on a Raspberry Pi. This gives you ad-blocking and network-wide filtering, but requires technical knowledge and maintenance. Another option is to use a VPN, which encrypts all your traffic, including DNS queries – but the VPN provider then sees your DNS requests.
Frequently Asked Questions
Does changing DNS affect my ping in games?
No. DNS resolution happens once when you connect to a game server; after that, the connection uses the IP address directly. Your ping is determined by your route to the server, not your DNS resolver.
Can I use different DNS for different devices?
Yes. You can set one DNS on your phone and another on your PC. However, for consistency, it’s easier to set it at the router so all devices use the same resolver.
Is it safe to use Google DNS?
Yes, Google Public DNS is safe and widely used. It logs anonymized data for 24–48 hours for debugging, but does not tie queries to your identity. If you prefer no logging, choose Cloudflare.
Why is my ISP’s DNS so slow?
ISPs often have under-provisioned DNS servers, especially during peak hours. They may also do extra processing for legal logging or ad injection. Public resolvers are built for scale and speed.
What is DNS-over-HTTPS (DoH)?
DoH encrypts your DNS queries inside normal HTTPS traffic, making them invisible to eavesdroppers. It is supported by most modern browsers (Chrome, Firefox, Edge) and can be enabled in their settings.