The best DNS servers for gaming are Cloudflare (1.1.1.1), Google DNS (8.8.8.8), and Quad9 (9.9.9.9). We explain what DNS actually does for gaming, what it can't fix, and how to set it up on PS5, Xbox, and PC with real benchmark data.
If you've ever lost a match because of lag, you already know how frustrating it is. Shots not registering. Characters teleporting across the screen. Your squad pointing fingers at your Wi-Fi.
Sometimes the real problem isn't your internet speed. It's how quickly your device actually finds the game server in the first place. That's the job of DNS.
Here's the thing, though. Most "best DNS for gaming" guides won't be upfront about this: DNS plays a very specific, limited role in gaming performance. It speeds up the initial connection to a game server, but it won't magically lower your in-game ping once you're already connected. Knowing the difference will save you a lot of wasted troubleshooting.
This guide (updated for February 2026) breaks down the six best DNS servers for gaming, what DNS can and can't actually do for your gameplay, step-by-step setup on PS5, Xbox Series X, PC, and Mac, plus how to benchmark DNS servers yourself so you're not just guessing.
DNS (Domain Name System) works like the internet's phonebook. When you connect to a game server, your device asks a DNS server: "What's the IP address for this server?" The DNS server fires back a numerical address (something like 172.217.7.46), and your device connects. This lookup happens once, right when you first connect. After that, DNS steps out of the picture entirely.
Every online game you play, whether it's Fortnite, Valorant, Call of Duty, or Roblox, needs to translate server names into IP addresses before you can actually get in. Your device sends this request to a DNS server (usually your ISP's default one), which hands back the IP address so you can connect.
A slow or flaky DNS server delays this initial lookup. A fast one handles it in milliseconds. Your device also caches the result afterwards, so the DNS lookup really only matters the first time you connect to a particular server.
Honest disclaimer: A lot of DNS gaming articles overstate what changing your DNS can do. We'd rather be straight with you here, because misleading advice wastes your time and doesn't actually fix your lag.
What a better DNS server CAN do:
What DNS CANNOT do:
The bottom line: Think of DNS as the front desk of a hotel. It gets you to your room faster, but once you're inside, the front desk has zero control over the experience. If you're lagging during gameplay, DNS is almost certainly not the culprit.
Cloudflare consistently takes the top spot in independent DNS speed benchmarks. Testing across North America, Europe, Asia, and Oceania shows response times between 8 and 12ms, compared to Google's 10 to 20ms range. They use Anycast routing to automatically send you to the nearest server, and their network spans 300+ cities globally. If you're only going to change one thing, this is the one to try first.
Google DNS is the most widely used public DNS service on the planet, backed by Google's enormous infrastructure across 100+ countries. It's a touch slower than Cloudflare on average, but its near-perfect uptime and consistent performance make it an excellent fallback. A popular setup is Cloudflare as primary and Google as secondary.
Quad9 pulls in real-time threat intelligence from 25+ cybersecurity organisations to automatically block access to known malicious domains. That includes phishing sites, malware distribution servers, and DNS-based attacks. If you regularly download game mods from unofficial sources or find yourself gaming on public Wi-Fi, Quad9 adds a real security layer without giving up much speed.
OpenDNS (now part of Cisco) gives you custom filtering options, letting you control what kinds of content are accessible on your network. That makes it a solid fit for families or shared setups where kids are using the same connection. You also get phishing and DNS-based threat protection, plus optional usage analytics if you want to see what's happening on your network.
NextDNS takes customisation further than any other option on this list. You get per-device configurations, custom blocklists, detailed analytics, and the ability to bypass filtering for specific games while locking everything else down. The free tier handles 300,000 queries per month, which is more than enough for most gamers. It does take a bit more setup than plug-and-play options like Cloudflare, but the flexibility is genuinely hard to beat.
AdGuard DNS blocks ads, trackers, phishing attempts, and adult content right at the DNS level, before any of it reaches your device. This cuts down on wasted bandwidth and keeps game launchers, store pages, and web-based interfaces cleaner. It's a bit slower than Cloudflare, but the filtering benefits are worth it if intrusive ads bother you.
This takes under two minutes. Here's the process:
Recommended DNS for PS5:
Recommended DNS for Xbox Series X:
Quick tip: After changing DNS on any console, do a full restart. This flushes the old DNS cache and makes sure the new settings actually kick in right away.
To flush your DNS cache after making changes: Open Command Prompt as Administrator and type ipconfig /flushdns, then press Enter.
To flush DNS cache on Mac: Open Terminal and run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Here's something worth knowing: the "best" DNS server depends on where you are, which ISP you're on, and your local network setup. What's fastest in London might not be fastest in Singapore. So instead of just taking our word for it, test it yourself with these free tools:
ping 1.1.1.1 or ping 8.8.8.8. Lower response time means faster DNS from your location.Our suggestion: Run GRC's DNS Benchmark before you change anything. It takes about 5 minutes and gives you hard, location-specific numbers instead of guesswork. Try to run it during your normal gaming hours for the most relevant results.
"Private DNS" means your DNS queries are encrypted, so your ISP, network admin, or anyone snooping on your Wi-Fi can't see which servers you're connecting to. The main private DNS options for gamers:
Does private DNS lower ping? Nope. It improves privacy and security, but it doesn't touch latency or in-game performance. The encryption adds maybe 1 to 2ms of overhead, which is basically undetectable in practice.
When private DNS matters for gaming: If you game on public Wi-Fi (airports, cafés, university networks), private DNS stops your DNS queries from being intercepted or redirected. It also helps in countries where ISPs block certain gaming domains at the DNS level.
Changed your DNS and still lagging? The issue is almost certainly somewhere else. Here's what to look at:
DNS and a VPN do different jobs, but they work well together. DNS handles the initial connection lookup. A VPN protects everything that happens after that.
VPN - Super Unlimited Proxy offers unlimited bandwidth, 10Gbps servers, and 80+ global locations, which makes it a strong option for gamers who want both privacy and performance. The free plan includes unlimited data and 25+ server locations, so you can test how it affects your gaming setup before committing to anything.
Only during the initial connection to a game server (the lookup phase). Once you're actually in the game, DNS is no longer involved. Your in-game ping depends on how far away the server is, your ISP's routing, and network congestion.
Cloudflare (1.1.1.1) is the fastest public DNS resolver as of 2026, averaging around 10ms globally. Google DNS (8.8.8.8) comes in at roughly 20ms. That said, the fastest server for your specific location might be different. Use GRC's DNS Benchmark to find out for sure.
Cloudflare (Primary: 1.1.1.1, Secondary: 1.0.0.1) is the go-to for the fastest connections. Google DNS (8.8.8.8 / 8.8.4.4) is a solid alternative if you want maximum reliability above all else.
Cloudflare (1.1.1.1 / 1.0.0.1) for speed, or Quad9 (9.9.9.9 / 149.112.112.112) if you want built-in security filtering on top of good performance. Both are widely recommended for Xbox.
No. DNS servers are only involved in the initial connection lookup and don't affect the data path during gameplay. Packet loss comes from network congestion, poor ISP routing, or Wi-Fi interference, not from DNS.
Private DNS (encrypted DNS like DoH or DoT) is great for privacy and security, but it won't improve gaming performance. It's a smart move if you game on public Wi-Fi or you're in a country where ISPs block gaming domains.
No. DNS only affects how quickly your device resolves domain names into IP addresses. It doesn't change your download or upload speed at all. Your internet speed comes down to your ISP plan and network conditions.
They do different things, and you can use both at the same time. DNS speeds up initial connections. A VPN encrypts all your traffic, shields you from DDoS attacks, gets around ISP throttling, and can sometimes improve routing. For the best setup, use a fast DNS server and a good gaming VPN together.
How to Browse Anonymously: 9 Practical Steps That Actually Work (2026)Learn how to browse the internet anonymously with a VPN, Tor, private search engines, and more. We cover what actually works, what doesn't, and how to layer your tools for real privacy in 2026.