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

Five lookups to each provider, from your browser. Takes a few seconds.

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.

ProviderIPv4 (primary · secondary)IPv6Filters
Cloudflare1.1.1.1 · 1.0.0.12606:4700:4700::1111
2606:4700:4700::1001
Nothing
Google Public DNS8.8.8.8 · 8.8.4.42001:4860:4860::8888
2001:4860:4860::8844
Nothing
Quad99.9.9.9 · 149.112.112.1122620:fe::fe
2620:fe::9
Malware and phishing domains
OpenDNS (Cisco)208.67.222.222 · 208.67.220.2202620:119:35::35
2620:119:53::53
Phishing; more with a free account
AdGuard DNS94.140.14.14 · 94.140.15.152a10:50c0::ad1:ff
2a10:50c0::ad2:ff
Ads, trackers and phishing
Control D (free resolvers)76.76.2.0 · 76.76.10.02606: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 wantUseAddresses
Fast, nothing blockedCloudflare or Google1.1.1.1 · 8.8.8.8
Malicious sites blockedQuad9, or Cloudflare for Families9.9.9.9 · 1.1.1.2
Adult content blocked tooCloudflare for Families, OpenDNS FamilyShield or AdGuard Family1.1.1.3 · 208.67.222.123 · 94.140.14.15
Fewer ads and trackersAdGuard DNS94.140.14.14
Your own block lists and logsNextDNS or OpenDNS, with a free accountYour 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.

  1. 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.
  2. 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).
  3. Switch: on the router for every device, or on one device (how to switch).
  4. 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).
  5. 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.

SettingBest choice
Primary / secondary DNSBoth 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 DNSThe same provider's IPv6 addresses, if your connection has IPv6 (check); otherwise IPv6 lookups may still go to your provider
Encrypted DNSOn: Private DNS on Android, DNS over HTTPS in Windows 11 and browsers, with the hostnames and URLs above
Where to set itOn 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.

ResolverIPv4IPv6Blocks
Cloudflare for Families1.1.1.2 · 1.0.0.22606:4700:4700::1112
2606:4700:4700::1002
Malware
Cloudflare for Families1.1.1.3 · 1.0.0.32606:4700:4700::1113
2606:4700:4700::1003
Malware and adult content
Quad9, no blocking9.9.9.10 · 149.112.112.102620:fe::10
2620:fe::fe:10
Nothing, no DNSSEC validation (Quad9: for experts)
Quad9 with ECS9.9.9.11 · 149.112.112.112620:fe::11
2620:fe::fe:11
Malware; passes part of your subnet so streaming servers nearby are picked
OpenDNS FamilyShield208.67.222.123 · 208.67.220.1232620:119:35::123
2620:119:53::123
Adult content
AdGuard Family94.140.14.15 · 94.140.15.162a10:50c0::bad1:ff
2a10:50c0::bad2:ff
Ads, trackers, adult content; turns on Safe Search
AdGuard Non-filtering94.140.14.140 · 94.140.14.1412a10:50c0::1:ff
2a10:50c0::2:ff
Nothing
Control D, malware76.76.2.1 · 76.76.10.12606:1a40::1
2606:1a40:1::1
Malware
Control D, ads & tracking76.76.2.2 · 76.76.10.22606: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.

ProviderPrivate DNS / DoT hostnameDNS over HTTPS URL
Cloudflareone.one.one.onehttps://cloudflare-dns.com/dns-query
Cloudflare, malwaresecurity.cloudflare-dns.comhttps://security.cloudflare-dns.com/dns-query
Cloudflare, malware + adultfamily.cloudflare-dns.comhttps://family.cloudflare-dns.com/dns-query
Googledns.googlehttps://dns.google/dns-query
Quad9dns.quad9.nethttps://dns.quad9.net/dns-query
OpenDNSdns.opendns.comhttps://doh.opendns.com/dns-query
OpenDNS FamilyShield— (DoH only)https://doh.familyshield.opendns.com/dns-query
AdGuarddns.adguard-dns.comhttps://dns.adguard-dns.com/dns-query
AdGuard Familyfamily.adguard-dns.comhttps://family.adguard-dns.com/dns-query
Control Dp0.freedns.controld.comhttps://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.

  1. 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.
  2. 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.
  3. 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.
  4. 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?
For most people, Cloudflare (1.1.1.1) or Google Public DNS (8.8.8.8): both are fast almost everywhere and filter nothing. Quad9 (9.9.9.9) is the best free choice if you also want known malicious sites blocked, and AdGuard DNS if you want ads blocked. The fastest one for you depends on where you are: the test on this page measures it.
What is 1.1.1.1?
Cloudflare's free public DNS resolver. Its addresses are 1.1.1.1 and 1.0.0.1 (IPv6 2606:4700:4700::1111 and 2606:4700:4700::1001). 1.1.1.2 also blocks malware, and 1.1.1.3 blocks malware and adult content.
What are 8.8.8.8 and 8.8.4.4?
The two addresses of Google Public DNS, Google's free DNS resolver. Use both, one as primary and one as secondary. Its IPv6 addresses are 2001:4860:4860::8888 and 2001:4860:4860::8844, and its encrypted DNS hostname is dns.google.
Is public DNS safe?
The big public resolvers are run by well-known companies and non-profits and publish privacy policies. The resolver you use sees every site name you look up, as your provider's DNS does, so pick one you trust. Encrypted DNS (DoH, DoT, Private DNS) hides the lookups from your network and your provider.
Is public DNS faster than my provider's DNS?
Often, but not always: your provider's DNS is close to you, and a public resolver is only faster if it has a server nearby and answers from its cache. A faster DNS speeds up the start of each visit to a new site, not your download speed. Run the test on this page to compare.
How do I check which DNS is best for me?
Run the speed test on this page: it times each provider's servers from your own connection and marks the fastest. Then pick that one, or the fastest one that also filters what you want blocked, and run our DNS leak test after switching to confirm your device really uses it.
What is the best DNS for gaming?
The one that answers fastest from your connection, usually Cloudflare (1.1.1.1) or Google (8.8.8.8). A faster DNS speeds up logins, matchmaking lookups and store downloads, but it doesn't lower your ping in a match: that depends on the route to the game server.
Is NextDNS free?
Yes, up to 300,000 queries a month, which covers most homes. You create a free account and get your own addresses and a dashboard to choose what to block. Past the limit it keeps answering as a plain DNS server, without filtering or logs, until the next month; a paid plan has no limit.
Can I use two different DNS providers?
You can, but it's better to use the primary and secondary address of the same provider: devices don't always try the first one first, so mixing a filtering resolver with a non-filtering one makes blocking unpredictable.

Next steps

Related Tools

DNS Leak Test
Which DNS server your device really uses.
DNS Lookup
Compare the public resolvers' answers for any domain.
DNS Propagation Checker
Is a DNS change live in every country?
DNS Speed Test
Cached and uncached times, and your current DNS.
Internet Speed Test
Your download and upload speed.

Related Guides

Guide What Is DNS?
How a name becomes an IP address.
Guide DNS Server Not Responding
Fix it step by step.
Guide How to Change DNS
On the router for every device at home, or one device.