DNS & OptimizationLow Severity

Best DNS Servers for Gaming (2026): Lowest Ping for PS5, Xbox & PC

Reviewed By: RouterVia Engineering Group
Last Reviewed: July 2026
Last Verified: July 2026
Compatibility: All standard modern router platforms

Upgrading your DNS server is the fastest, free network change you can make for gaming. The right DNS provider reduces matchmaking times, speeds up lobby loading, and improves connection reliability — without changing your internet plan or hardware. This guide ranks the best DNS servers for gaming by latency, privacy, and platform compatibility, with step-by-step setup guides for PS5, Xbox, Nintendo Switch, and PC.

DNS Does Not Replace a Good Internet Connection

Changing DNS servers improves name resolution speed and matchmaking times, but it does not increase your download/upload bandwidth, reduce physical ping to distant game servers, or fix packet loss. For those issues, check your connection quality, router QoS settings, and ISP line quality.

Gaming DNS Authority Guide

When you launch a game, your console or PC sends DNS queries to find the IP addresses of matchmaking servers, content delivery networks, and game services. If your ISP's DNS is slow or overloaded, these lookups add 50–200ms of invisible delay to every session start. Switching to a faster DNS provider like Cloudflare or Google eliminates this delay.

AI Overview Summary

Best DNS Servers for Gaming — Ranked by Latency

DNS ProviderPrimarySecondaryAvg. LatencyBest For
Cloudflare1.1.1.11.0.0.1~11 msGaming (Recommended)
Google Public DNS8.8.8.88.8.4.4~20 msReliability + Uptime
Quad99.9.9.9149.112.112.112~18 msSecurity + malware blocking
OpenDNS208.67.222.222208.67.220.220~25 msParental controls + filtering
AdGuard DNS94.140.14.1494.140.15.15~28 msAd blocking + tracker filtering

Cloudflare (1.1.1.1) is the top recommendation for gaming due to its globally lowest average query time, DNSSEC validation, and strict no-logging policy.

DNS Setup Guide by Platform

Step-by-step instructions to configure the best DNS for each gaming platform:

PlayStation 5 (PS5)
  1. Go to Settings → Network → Settings.
  2. Select Set Up Internet Connection.
  3. Choose your Wi-Fi or LAN and press Options.
  4. Select Advanced Settings.
  5. Set DNS Settings → Manual.
  6. Primary: 1.1.1.1, Secondary: 1.0.0.1.
  7. Select Done and test the connection.
→ PS5 Network Optimization Guide
Xbox Series X/S
  1. Go to Settings → General → Network Settings.
  2. Select Advanced Settings.
  3. Select DNS Settings → Manual.
  4. Primary: 1.1.1.1, Secondary: 1.0.0.1.
  5. Press B to save and test your connection.
→ Xbox Open NAT Guide
Nintendo Switch
  1. Go to System Settings → Internet → Internet Settings.
  2. Select your Wi-Fi network → Change Settings.
  3. Select DNS Settings → Manual.
  4. Primary: 1.1.1.1, Secondary: 1.0.0.1.
  5. Tap Save.
Windows PC
  1. Go to Settings → Network & Internet → Advanced Network Settings.
  2. Click your active adapter → Edit.
  3. Select Manual → IPv4 → On.
  4. Preferred DNS: 1.1.1.1, Alternate: 1.0.0.1.
  5. Click Save.

DNS Provider Comparison for Gaming

Cloudflare — 1.1.1.1 (Recommended for Gaming)~11 ms

Cloudflare's 1.1.1.1 is the world's fastest public DNS resolver according to DNSPerf benchmarks. Built on Anycast infrastructure across 300+ cities, every query is routed to the nearest PoP (Point of Presence). Cloudflare processes DNS queries in ~11ms globally and maintains a strict no-logging policy — your IP address is never stored.

Pros
  • Fastest average global DNS
  • No query logging / full privacy
  • DNSSEC and DoH / DoT support
  • Free malware filter at 1.1.1.2
Cons
  • Rare: some ISPs throttle Cloudflare traffic
Google Public DNS — 8.8.8.8~20 ms

Google's public DNS is the most widely used resolver in the world. It benefits from Google's massive global network infrastructure, excellent routing, and high cache hit rates for popular gaming domains. Average latency is ~20ms globally, making it slightly slower than Cloudflare but with exceptional uptime and redundancy.

Pros
  • Excellent uptime and global coverage
  • Fast caching for popular domains
  • IPv6 support
  • DNSSEC validation
Cons
  • Logs some query data for diagnostics
  • Slightly slower than Cloudflare
Quad9 — 9.9.9.9 (Best for Security)~18 ms

Quad9 is operated by the Quad9 Foundation (a non-profit) and is headquartered in Switzerland under strict privacy laws. It automatically blocks queries to known malicious domains using threat intelligence from 25+ cybersecurity organizations. Average latency of ~18ms makes it competitive with Google for gaming.

Pros
  • Automatic malware domain blocking
  • Non-profit with strict privacy policy
  • No data sold to advertisers
  • DNSSEC support
Cons
  • May block some legitimate domains by mistake
  • Slightly slower than Cloudflare

What DNS Does (and Does Not) Do for Gaming

✅ What DNS Improves
  • Matchmaking speed: Faster server lookups reduce lobby connection time.
  • Game launch times: Quicker CDN resolution means faster patch downloads.
  • Store loading: PS Store, Xbox Game Pass, Steam load faster.
  • Party/friends list: Faster DNS means quicker social server connections.
  • Privacy: No-log DNS hides browsing habits from ISP monitoring.
❌ What DNS Does NOT Fix
  • In-game ping: Server distance determines latency once connected.
  • Packet loss: Poor physical link quality causes packet loss, not DNS.
  • Bandwidth: DNS does not increase download or upload speeds.
  • NAT type: Strict NAT requires port forwarding, not DNS changes.
  • Jitter/stuttering: Network instability requires QoS or hardware fix.

Set DNS on Your Router (Applies to All Gaming Devices)

The most efficient way to upgrade DNS for all gaming devices simultaneously is to configure it at the router level. Every device connected to your Wi-Fi or LAN will automatically use the faster DNS:

Router BrandLogin AddressDNS Menu Location
TP-Linktplinkwifi.netAdvanced → Network → DHCP Server
ASUSrouter.asus.comWAN → Internet Connection → WAN DNS Setting
NETGEARrouterlogin.netBasic → Internet → DNS Address
D-Link192.168.0.1Setup → Internet → DNS Settings
Linksys192.168.1.1Connectivity → Internet Settings → DNS

For the full brand-by-brand guide, see our How to Change DNS on Router guide.

Security DNS Options for Gamers

If you want both fast DNS and added security (such as blocking phishing sites or malware during gaming), consider these specialized options:

Cloudflare for Families
Primary: 1.1.1.3
Secondary: 1.0.0.3

Blocks malware and adult content. Suitable for family gaming setups.

Cloudflare Malware Only
Primary: 1.1.1.2
Secondary: 1.0.0.2

Blocks malware domains only. Good for gamers who want protection without content filtering.

Quad9 Secured
Primary: 9.9.9.9
Secondary: 149.112.112.112

Blocks 25+ threat intelligence feeds. Swiss privacy law protection.

Related Gaming Network Guides

Related DNS Guides

Quick Fix Checklist

  • 1Set Cloudflare (1.1.1.1 / 1.0.0.1) as Primary and Secondary DNS on your router or console.
  • 2Configure DNS on both the router (global) and the specific console (device override) for best results.
  • 3Always fill both Primary and Secondary DNS fields — never leave Secondary blank.
  • 4Flush DNS cache after changes: run 'ipconfig /flushdns' on Windows or power cycle your console.
  • 5Run a DNS speed benchmark before and after to measure the improvement.
  • 6For PS5: configure DNS under Advanced Settings in the Set Up Internet Connection wizard.
  • 7For Xbox: go to Settings → General → Network Settings → Advanced Settings → DNS Settings.

Common Root Causes

Slow ISP Default DNS

ISP-provided DNS servers are often overcrowded and geographically distant, adding 50–150ms to every resolution query and slowing lobby loads.

No DNS Caching at ISP Level

ISP DNS servers sometimes skip caching for popular domains, forcing full resolution on every query rather than serving a cached result.

DNS Hijacking

Some ISPs intercept DNS queries and redirect them to their own search portal, leaking browsing data and causing unexpected delays.

IPv6 DNS Not Configured

Devices with IPv6 enabled will bypass custom IPv4 DNS settings and fall back to ISP default IPv6 resolvers if IPv6 DNS is not also configured.

Step-by-Step Diagnostic Resolution Flow

  1. 1

    Find the DNS Settings on Your Gaming Device or Router

    DNS for gaming can be configured at the router level (applies to all devices) or directly on each console. For router-level setup, log in to your router admin panel at 192.168.1.1 or 192.168.0.1. For device-level setup, go to Network Settings on your PS5, Xbox, Switch, or PC.

    Expert Tip: Setting DNS on your router affects all devices simultaneously. Setting DNS on a specific console overrides the router setting only for that device.
  2. 2

    Choose the Right DNS Provider for Your Region

    Cloudflare (1.1.1.1) is consistently the fastest DNS globally with average query times under 12ms. Google (8.8.8.8) provides excellent reliability and uptime. Quad9 (9.9.9.9) offers built-in malware filtering with ~18ms average latency.

    Expert Tip: DNS speed varies by geographic region. Run a DNS benchmark tool like DNS Benchmark (Windows) or namebench to test which provider is fastest from your exact location.
  3. 3

    Enter Primary and Secondary DNS Addresses

    For Cloudflare: Primary 1.1.1.1 / Secondary 1.0.0.1. For Google: Primary 8.8.8.8 / Secondary 8.8.4.4. For Quad9: Primary 9.9.9.9 / Secondary 149.112.112.112. Always configure both Primary and Secondary for automatic failover.

    Expert Tip: A common trick: use Cloudflare 1.1.1.1 as Primary and Google 8.8.4.4 as Secondary — this gives you the fastest primary and a highly reliable fallback from a different infrastructure.
  4. 4

    Save Settings and Test Your Connection

    Save the new DNS settings and run your console's network test. On PS5: Settings → Network → Connection Status → Test Internet Connection. On Xbox: Settings → General → Network Settings → Test Network Connection. Reboot the router after changing DNS there.

    Expert Tip: After saving, run a DNS speed test using nslookup google.com in Command Prompt. The Server field should now show your new DNS provider's IP address.

When To Contact Your ISP

Contact your ISP if you suspect DNS hijacking — where DNS queries are redirected to an ISP search page even after changing your DNS settings. Enable DNS over HTTPS (DoH) in your browser or router to bypass this. If custom DNS settings are automatically overwritten by the ISP gateway, the ISP may be enforcing their DNS at the modem level.

Expert Q&A & Troubleshooting Insights

What is the best DNS for gaming in 2026?

Cloudflare (1.1.1.1 / 1.0.0.1) is the best DNS for gaming in 2026. It has the lowest average global response time (~11ms), a strict no-logging policy, full DNSSEC support, and runs on Anycast infrastructure for the fastest regional routing. Google (8.8.8.8) is the best alternative for reliability, especially in regions where Cloudflare has fewer PoPs.

Does DNS affect ping in games?

DNS does not directly reduce your in-game ping to game servers. Your ping (round-trip time to the server) is determined by physical routing paths and server distance. However, DNS speed affects matchmaking speed, lobby loading, and the time it takes to connect to servers at game launch. Faster DNS means faster server discovery, reducing initial connection delays by 50-200ms on slow ISP DNS.

Should I change DNS on my router or directly on my PS5/Xbox?

Changing DNS on your router applies it to every device (PS5, Xbox, PC, phone) automatically. Changing it directly on a console overrides the router setting just for that device. If you want all gaming devices to benefit, change it at the router. If you want the fastest possible setup without touching the router, configure each console individually.

What is the best DNS server for PS5?

The best DNS servers for PS5 are Cloudflare (Primary: 1.1.1.1, Secondary: 1.0.0.1). These provide the fastest PSN connection times and lowest DNS resolution latency. To configure: Settings → Network → Settings → Set Up Internet Connection → press Options → Advanced Settings → DNS Settings → Manual → enter 1.1.1.1 and 1.0.0.1.

What is the best DNS server for Xbox Series X/S?

The best DNS servers for Xbox are Cloudflare (1.1.1.1 / 1.0.0.1) or Google (8.8.8.8 / 8.8.4.4). To configure on Xbox: Settings → General → Network Settings → Advanced Settings → DNS Settings → Manual → enter your preferred primary and secondary addresses. Both options significantly outperform the default ISP DNS assigned by most routers.

Can changing DNS fix packet loss in games?

No. DNS affects name resolution speed, not data routing. Packet loss is caused by poor quality links, congested network segments, or a weak Wi-Fi signal. If you are experiencing packet loss, check your physical connection (use a wired Ethernet cable), check for router firmware updates, and review your ISP's line quality. See our Packet Loss Fix guide for detailed diagnostics.

Does Google DNS or Cloudflare DNS give lower ping for gaming?

Cloudflare (1.1.1.1) generally has lower DNS resolution times globally, averaging ~11ms vs. Google's ~20ms. For actual in-game ping, the difference is negligible after the initial connection is established. Cloudflare is recommended for gaming because its faster resolution speeds up matchmaking, PSN/Xbox Live sign-ins, and game server discovery.

Is Cloudflare DNS free?

Yes. Cloudflare's 1.1.1.1 DNS resolver is completely free for everyone. It offers standard DNS (1.1.1.1), malware-blocking DNS (1.1.1.2), and malware + adult content filtering (1.1.1.3). Cloudflare also provides DNS over HTTPS (DoH) and DNS over TLS (DoT) for free at cloudflare-dns.com.