Best public DNS servers 2026
Free public DNS resolvers — faster, more private and with optional ad blocking. Compare Cloudflare, Google, Quad9 and the MegaV DNS.

Public DNS comparison
Copy any address below into your router or device settings.
| Provider | IPv4 | Copy |
|---|---|---|
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 149.112.112.112 | |
AdGuard DNS | 94.140.14.14 94.140.15.15 | |
OpenDNS | 208.67.222.222 208.67.220.220 | |
NextDNS | 45.90.28.0 45.90.30.0 |
MegaV DNS
Our DNS resolver blocks ads, trackers and malware domains across every app on your device. No extensions required.
- Blocks ads and trackers system-wide
- Blocks malware and phishing domains
- Zero query logging
- Global anycast under 15 ms
What is DNS and why it matters
DNS (Domain Name System) translates human-readable domains like example.com into IP addresses that computers use. Using a fast, privacy-respecting DNS cuts page load times and stops your ISP from seeing your browsing.
Encrypts DNS queries through regular HTTPS — invisible to ISPs and censors.
Encrypts DNS over a dedicated TLS connection on port 853.
Traditional unencrypted DNS on port 53 — your ISP sees everything.

Setup guides
Change DNS in under a minute on any platform.
iOS / iPadOS
- 1Open Settings → Wi-Fi
- 2Tap the (i) next to your network
- 3Scroll to Configure DNS → Manual
Windows
- 1Open Network connections
- 2Properties of your adapter → IPv4
- 3Set preferred and alternate DNS
Linux
- 1Edit /etc/resolv.conf or NetworkManager
- 2Add nameserver entries
- 3Restart the network service
Router
- 1Open router admin panel
- 2Find WAN or DHCP DNS settings
- 3Enter new DNS for the whole network
Frequently asked questions
DNS basics explained.
What is a DNS server?
Why should I change my DNS?
Will changing DNS break anything?
DoH vs DoT — what's the difference?
Is MegaV DNS included in the VPN subscription?
Can I use public DNS without a VPN?
Fast DNS + ad blocking
MegaV VPN includes a DNS resolver that blocks ads, trackers and malware system-wide. No extensions needed.