Best Public DNS Servers: The Complete List
Looking for a reliable alternative to your ISP's default DNS? Below is our curated list of the best public DNS providers worldwide, including their primary and secondary IPv4 and IPv6 addresses.
These global Anycast networks (like Google and Cloudflare) automatically route you to their nearest data center for fast, secure browsing. If you are looking for servers specific to your exact country, scroll down to our Regional DNS Directory.
List of Global Public DNS Providers (96 IPs)
Want to test and find out the fastest Global DNS server? Download the DNSSpeedTester Desktop App to benchmark your default DNS against these providers using UDP, DoH, DoT, and Ping, measuring all results directly from your device for maximum accuracy. Just export these IPs using the Export All button below, or check the boxes next to specific providers for a custom list, and load them into the app! (You can also use the export icon on any individual card). Since these lists primarily contain IPv4 addresses (which use UDP), the Desktop App is required for full compatibility. For testing DoH (DNS over HTTPS), you can import the file directly into the Web App. You can also self-host the app on your own infrastructure to run private tests inside isolated networks. If you ever want to revert your test list back to the original domains and servers, just click Reset to Defaults in the app's settings.
Cloudflare
OpenDNS
Quad9
AdGuard
NextDNS
ControlD
CleanBrowsing
Mullvad
Yandex
Gcore
Level3 (Lumen)
Hurricane Electric
Comodo Secure DNS
Vercara (UltraDNS)
Digitale Gesellschaft
DNS for Family
DNS.SB
DNS4EU
DNSPod
Foundation for Applied Privacy
IIJ
LibreDNS
Mullvad Base
Restena
RethinkDNS
Switch
UncensoredDNS
DNS Servers by Continent
Select a region or country below to view the best public DNS servers available.
Africa
Asia
Europe
North America
Oceania
South America
How to Change DNS on Windows, Android, Mac, and iPhone
You can configure these IP addresses on your router to cover your entire home network, or you can configure them directly on your specific devices. For step-by-step instructions on updating your network settings, check out our comprehensive guide on How to Change DNS Settings.
*Note: Connection speeds to global Anycast providers will vary based on your physical proximity to their nearest data center and your local ISP's peering agreements.*
Frequently Asked Questions About Public DNS
What is the best public DNS server in the world?
Globally, Cloudflare (1.1.1.1) and Google Public DNS (8.8.8.8) consistently rank as the fastest due to their massive Anycast networks and edge data centers. However, Quad9 (9.9.9.9) is highly recommended if built-in malware blocking and privacy are your top priorities.
Should I use IPv4 or IPv6 DNS addresses?
If your ISP and router fully support IPv6, you should configure both. Modern operating systems prefer IPv6 and will use it to bypass older network translation layers (NAT), which can sometimes result in slightly faster query times. Always set the IPv4 addresses as a fallback.
Why should I change my DNS from my ISP default?
Default ISP DNS servers are often slow, poorly maintained, and sometimes used to log your browsing history or block websites. Switching to a premium public DNS can improve page load times, bypass basic censorship, and protect you from phishing domains.