Best Free Public DNS Servers
Every address of Google, Cloudflare, Quad9, OpenDNS, AdGuard and Control D, what each one blocks, and which is fastest from where you are.
The best free public DNS servers are Cloudflare (1.1.1.1, 1.0.0.1), Google Public DNS (8.8.8.8, 8.8.4.4), Quad9 (9.9.9.9, which also blocks malicious sites), OpenDNS (208.67.222.222) and AdGuard DNS (94.140.14.14, which blocks ads). All are free and need no account; which one is fastest depends on where you are, so test it below.
Which DNS server is best for you? Test it
Measures each provider's encrypted DNS service (DNS over HTTPS) from your browser: the median of 5 lookups, after one warm-up. Plain DNS can't be tested from a web page, but uses the same nearby servers. Nothing is sent to our server. How it works
For cached and uncached times, Control D and CleanBrowsing, and your current DNS timed next to them, run the full DNS speed test.
The Best Free Public DNS Servers
Enter the two addresses of one provider as your primary and secondary DNS server: the IPv4 ones work everywhere, add the IPv6 ones if your connection has IPv6.
| Provider | IPv4 (primary · secondary) | IPv6 | Filters |
|---|---|---|---|
| Cloudflare | 1.1.1.1 · 1.0.0.1 | 2606:4700:4700::1111 2606:4700:4700::1001 | Nothing |
| Google Public DNS | 8.8.8.8 · 8.8.4.4 | 2001:4860:4860::8888 2001:4860:4860::8844 | Nothing |
| Quad9 | 9.9.9.9 · 149.112.112.112 | 2620:fe::fe 2620:fe::9 | Malware and phishing domains |
| OpenDNS (Cisco) | 208.67.222.222 · 208.67.220.220 | 2620:119:35::35 2620:119:53::53 | Phishing; more with a free account |
| AdGuard DNS | 94.140.14.14 · 94.140.15.15 | 2a10:50c0::ad1:ff 2a10:50c0::ad2:ff | Ads, trackers and phishing |
| Control D (free resolvers) | 76.76.2.0 · 76.76.10.0 | 2606:1a40:: 2606:1a40:1:: | Nothing; its other free versions block malware or ads (below) |
All six support encrypted DNS and run servers on several continents under the same addresses, so your lookups go to the nearest one. Addresses from each provider's own documentation, checked 22 November 2026.
Which Public DNS Should You Use?
Pick by what you want: speed alone, protection from malicious sites, a family filter, or fewer ads.
| You want | Use | Addresses |
|---|---|---|
| Fast, nothing blocked | Cloudflare or Google | 1.1.1.1 · 8.8.8.8 |
| Malicious sites blocked | Quad9, or Cloudflare for Families | 9.9.9.9 · 1.1.1.2 |
| Adult content blocked too | Cloudflare for Families, OpenDNS FamilyShield or AdGuard Family | 1.1.1.3 · 208.67.222.123 · 94.140.14.15 |
| Fewer ads and trackers | AdGuard DNS | 94.140.14.14 |
| Your own block lists and logs | NextDNS or OpenDNS, with a free account | Your own (NextDNS) · 208.67.222.222 |
NextDNS works differently: there's no address everyone shares. A free account gives you your own addresses and a dashboard to choose what to block and see what was looked up. It's free up to 300,000 queries a month; past that it keeps answering as a plain DNS server, without filtering or logs, until the next month.
Changing DNS doesn't hide your IP address or your location: websites still see your connection's address. For that you need a VPN; see how to hide your IP.
How to Check Which DNS Is Best for You
The best DNS server is the one that answers fastest from your connection and blocks what you want blocked: measure it with the speed test above, then confirm it after switching.
- Measure: run the speed test at the top of this page, ideally twice, at different times of day. Differences of a few milliseconds don't matter; a provider that is two or three times slower than the others does.
- Choose by need: the fastest one if you only want speed, or the fastest of the filtering versions if you want malware, adult content or ads blocked (table above).
- Switch: on the router for every device, or on one device (how to switch).
- Confirm: run our DNS leak test; it shows which provider now answers your lookups. If it still shows your internet provider, the change didn't apply (a VPN, the router or the browser may override it).
- Live with it for a day: if a site or a provider service stops working, switch back or try the next one.
Best DNS Settings
Use the primary and secondary address of one provider, add its IPv6 addresses if you have IPv6, and turn on encrypted DNS where your device or browser offers it.
| Setting | Best choice |
|---|---|
| Primary / secondary DNS | Both from the same provider (for example 1.1.1.1 and 1.0.0.1), so blocking and privacy stay the same when the second one answers |
| IPv6 DNS | The same provider's IPv6 addresses, if your connection has IPv6 (check); otherwise IPv6 lookups may still go to your provider |
| Encrypted DNS | On: Private DNS on Android, DNS over HTTPS in Windows 11 and browsers, with the hostnames and URLs above |
| Where to set it | On the router to cover every device, including consoles and TVs; on a laptop or phone too if it travels to other networks |
| When to keep "automatic" | On work or school networks, hotel and airport Wi-Fi (their login pages need their DNS), and for a few provider TV services |
Best DNS for Gaming: PS5, Xbox and Switch
The best DNS for gaming is the one that answers fastest from your connection, usually Cloudflare (1.1.1.1) or Google (8.8.8.8); it speeds up sign-ins, matchmaking lookups and downloads, but it doesn't lower your ping in a match.
- What DNS changes: how quickly the console finds the game's servers, the store and the download servers, and which download servers it's sent to.
- What it doesn't: your ping during a match, which depends on the distance and route to the game server. To see and lower that, read What Is Latency? and run a ping test.
- NAT type (strict, moderate, Type 3) has nothing to do with DNS: it comes from port forwarding or from CGNAT.
PS5
Settings › Network › Settings › Set Up Internet Connection › your network › Advanced Settings ›
DNS Settings › Manual › Primary 1.1.1.1, Secondary 1.0.0.1 › OK.
Xbox Series X|S and Xbox One
Settings › General › Network settings › Advanced settings › DNS settings › Manual › enter the primary and secondary addresses.
Nintendo Switch
System Settings › Internet › Internet Settings › your network › Change Settings › DNS Settings › Manual › enter the primary and secondary DNS › Save.
Setting the DNS on the router changes it for every console at once.
Filtering Versions: Block Malware, Adult Content or Ads
Most providers run several resolvers that differ only in what they block: use the addresses of the version you want.
| Resolver | IPv4 | IPv6 | Blocks |
|---|---|---|---|
| Cloudflare for Families | 1.1.1.2 · 1.0.0.2 | 2606:4700:4700::1112 2606:4700:4700::1002 | Malware |
| Cloudflare for Families | 1.1.1.3 · 1.0.0.3 | 2606:4700:4700::1113 2606:4700:4700::1003 | Malware and adult content |
| Quad9, no blocking | 9.9.9.10 · 149.112.112.10 | 2620:fe::10 2620:fe::fe:10 | Nothing, no DNSSEC validation (Quad9: for experts) |
| Quad9 with ECS | 9.9.9.11 · 149.112.112.11 | 2620:fe::11 2620:fe::fe:11 | Malware; passes part of your subnet so streaming servers nearby are picked |
| OpenDNS FamilyShield | 208.67.222.123 · 208.67.220.123 | 2620:119:35::123 2620:119:53::123 | Adult content |
| AdGuard Family | 94.140.14.15 · 94.140.15.16 | 2a10:50c0::bad1:ff 2a10:50c0::bad2:ff | Ads, trackers, adult content; turns on Safe Search |
| AdGuard Non-filtering | 94.140.14.140 · 94.140.14.141 | 2a10:50c0::1:ff 2a10:50c0::2:ff | Nothing |
| Control D, malware | 76.76.2.1 · 76.76.10.1 | 2606:1a40::1 2606:1a40:1::1 | Malware |
| Control D, ads & tracking | 76.76.2.2 · 76.76.10.2 | 2606:1a40::2 2606:1a40:1::2 | Ads and trackers |
A family filter on the router covers every device at home, including consoles and smart TVs. A child can still get around it with a VPN or another DNS setting on their own device, so use the device's parental controls too.
Encrypted DNS: Addresses for DoH, DoT and Private DNS
Encrypted DNS hides the names you look up from your network and your provider: use the hostname for Android's Private DNS and DNS over TLS, and the URL for DNS over HTTPS in browsers and Windows 11.
DNS over TLS (DoT, RFC 7858) and Android's Private DNS use the hostname; DNS over HTTPS (DoH, RFC 8484) uses the URL (what DNS over HTTPS is, and how to turn it on). Classic DNS (RFC 1035) sends the same questions unencrypted on port 53.
| Provider | Private DNS / DoT hostname | DNS over HTTPS URL |
|---|---|---|
| Cloudflare | one.one.one.one | https://cloudflare-dns.com/dns-query |
| Cloudflare, malware | security.cloudflare-dns.com | https://security.cloudflare-dns.com/dns-query |
| Cloudflare, malware + adult | family.cloudflare-dns.com | https://family.cloudflare-dns.com/dns-query |
| dns.google | https://dns.google/dns-query | |
| Quad9 | dns.quad9.net | https://dns.quad9.net/dns-query |
| OpenDNS | dns.opendns.com | https://doh.opendns.com/dns-query |
| OpenDNS FamilyShield | — (DoH only) | https://doh.familyshield.opendns.com/dns-query |
| AdGuard | dns.adguard-dns.com | https://dns.adguard-dns.com/dns-query |
| AdGuard Family | family.adguard-dns.com | https://family.adguard-dns.com/dns-query |
| Control D | p0.freedns.controld.com | https://freedns.controld.com/p0 |
Your DNS provider still sees the names, but your Wi-Fi network, your internet provider and anyone in between don't. To check which DNS server your device really uses, run our DNS leak test.
How to Switch to a Public DNS Server
Change it on your router to cover every device at home, or on one device in its network settings; it takes effect in a few seconds.
- Router (every device): open your router's page (find its address), look for DNS in the internet (WAN) or DHCP settings, enter the two addresses and save. Some provider routers don't allow it: then change it on each device.
- One device: the steps for Windows, Mac, iPhone, Android, Linux and ChromeOS are in How to Change DNS. On Windows 11, it's Settings › Network & internet › Wi-Fi (or Ethernet) › your connection's properties › DNS server assignment › Edit.
- Browser only: Chrome (Settings › Privacy and security › Security › Use secure DNS), Edge (Settings › Privacy, search, and services › Security › Use secure DNS) and Firefox (Settings › Privacy & Security › DNS over HTTPS) can use one of the URLs above for the browser alone.
- Check it worked: run the DNS leak test; it shows the provider that now answers your lookups.
Public DNS or Your Provider's DNS?
Your provider's DNS is set automatically and is usually close to you; a public resolver is worth it if yours is slow or unreliable, if you want filtering or encryption, or if your provider redirects mistyped names to ad pages.
- Speed: a DNS lookup only happens at the start of a visit and is cached afterwards, so a faster resolver makes new sites open sooner but doesn't change your download speed.
- Reliability: if sites sometimes fail to open with "DNS server not responding", a public resolver often fixes it for good.
- Privacy: some providers log lookups or use them for advertising; the public resolvers publish privacy policies, and encrypted DNS keeps the lookups away from your provider.
- Local content: a few provider services (TV apps, captive portals) expect the provider's DNS; switch back if one stops working.
Our DNS lookup compares the answer and speed of the public resolvers from our server for any domain.
How the Quick DNS Speed Check Works
Your browser sends the same DNS question (the address of example.com) to each provider's encrypted DNS service, once to open the connection and five more times to time it, and shows the median.
- The question is a standard DNS-over-HTTPS request (RFC 8484). The page only measures how long each server takes to answer; it doesn't read or store the answers.
- example.com is cached by every resolver, so the time is the distance to the provider's nearest server, not how fast it searches the internet.
- Encrypted DNS and plain DNS (port 53) are answered by the same nearby servers, so the fastest one here is usually the fastest one in your network settings too. Your provider's own DNS isn't in this list; the DNS speed test times it through your system, uncached, next to the others.
- "No answer" means the provider didn't reply within 4 seconds or is blocked on your network (some workplaces and countries block encrypted DNS).
Frequently Asked Questions
What is the best free DNS server?
What is 1.1.1.1?
What are 8.8.8.8 and 8.8.4.4?
Is public DNS safe?
Is public DNS faster than my provider's DNS?
How do I check which DNS is best for me?
What is the best DNS for gaming?
Is NextDNS free?
Can I use two different DNS providers?
Next steps