Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto
Networking

DNS for gaming: what it changes and how to pick a resolver

Does DNS affect gaming? What a resolver can and cannot change, how to test one yourself, and how to set DNS on PS5, PS4, Xbox, Switch and Windows.

CloudSat teamNovember 18, 20267 min read
A signpost made of glowing arrows standing at a crossroads of light trails, with a small game controller resting at its base.
On this pageWhat DNS does during a game

Lists of the "best DNS for gaming" promise lower ping, and that promise is mostly wrong. DNS is the internet's phone book: it turns names like a game's login or matchmaking service into IP addresses. Once your console or PC has the address, game traffic flows straight to the server, and DNS is no longer involved. A different resolver can still help in specific ways, though, and it costs nothing to try. This guide explains what DNS changes, how to test resolvers from your own connection, and where to set DNS on each platform.

What DNS does during a game

When you start a game, the client looks up the names of the services it needs: authentication, matchmaking, the store, voice chat and the content delivery networks that serve downloads and patches. Each answer comes with a lifetime, and your device caches it, so most lookups happen at launch and when you switch modes, not during a match.

That has a clear consequence. The delay you see in a match, your ping, is the round trip between you and the game server, and it depends on distance, your connection and routing. DNS is not on that path.

What changing DNS can and cannot do

Can help with Cannot change
Logins and stores that fail because your provider's resolver is down or slow Ping to the game server
Sites or services your provider's resolver blocks or redirects Packet loss or jitter on your line
Filtering malware, ads or adult content for the whole household Your console's NAT type
Encrypted lookups that your provider cannot read Lag caused by an overloaded server
Sometimes, download speeds, through which CDN location you get Wi-Fi interference

The download point needs a word of explanation. Big CDNs use the location of the resolver, or a hint about your network that some resolvers attach to the query, to choose the server you download from. A resolver far from you, or one that sends no location hint, can occasionally point you to a more distant CDN node. Cloudflare's 1.1.1.1 deliberately leaves that hint out for privacy, while Google Public DNS includes it. If your game downloads crawl after switching, this is the first thing to test.

Well-known public resolvers

These are the large public services most people compare. All of them are free; the difference is in what they filter and how they handle privacy.

Service IPv4 IPv6 Notes
Cloudflare 1.1.1.1, 1.0.0.1 2606:4700:4700::1111, 2606:4700:4700::1001 No filtering; 1.1.1.2 blocks malware, 1.1.1.3 also adult content
Google Public DNS 8.8.8.8, 8.8.4.4 2001:4860:4860::8888, 2001:4860:4860::8844 No filtering
Quad9 9.9.9.9, 149.112.112.112 2620:fe::fe, 2620:fe::9 Blocks known malicious domains
OpenDNS 208.67.222.222, 208.67.220.220 2620:119:35::35, 2620:119:53::53 FamilyShield variant on 208.67.222.123
AdGuard DNS 94.140.14.14, 94.140.15.15 2a10:50c0::ad1:ff, 2a10:50c0::ad2:ff Blocks ads and trackers

Your internet provider's own resolver belongs on the list too. It is often the closest one to you, and when it works well, it may be the fastest.

Test resolvers from your own connection

Which resolver is fastest depends on your provider and your location, so measure instead of trusting a list. On Windows, this PowerShell loop times one lookup against each resolver:

foreach ($server in '1.1.1.1', '8.8.8.8', '9.9.9.9', '208.67.222.222') {
    $time = Measure-Command { Resolve-DnsName -Name 'www.playstation.com' -Server $server -DnsOnly | Out-Null }
    '{0,-16} {1:N0} ms' -f $server, $time.TotalMilliseconds
}

On Linux or macOS, dig prints the query time directly:

for s in 1.1.1.1 8.8.8.8 9.9.9.9 208.67.222.222; do
  echo -n "$s  "; dig @"$s" www.xbox.com | grep "Query time"
done

Run each test several times and at different hours. The first query for a name can be slow while the resolver fetches it, and later ones come from its cache. Most good resolvers land within a few milliseconds of each other, a difference you will never feel in a game, so reliability and the features you want matter more than the fastest single number.

Set DNS on your console or PC

PlayStation 5

Go to Settings > Network > Settings > Set Up Internet Connection, highlight your current connection and press the Options button. Choose Advanced Settings, set DNS Settings to Manual, enter the primary and secondary addresses, and select OK.

PlayStation 4

Go to Settings > Network > Set Up Internet Connection and choose Use Wi-Fi or Use a LAN Cable, then Custom. Select your network if you are on Wi-Fi, then set IP Address Settings to Automatic, DHCP Host Name to Do Not Specify and DNS Settings to Manual. Enter both addresses, keep MTU Settings on Automatic and Proxy Server on Do Not Use, then run Test Internet Connection.

Xbox Series X and S, and Xbox One

Press the Xbox button, then go to Profile & system > Settings > General > Network settings > Advanced settings > DNS settings > Manual, and enter the primary and secondary IPv4 addresses.

Nintendo Switch

Open System Settings > Internet > Internet Settings, select your network, choose Change Settings, set DNS Settings to Manual, enter the primary and secondary DNS, then Save.

Windows 11

Open Settings > Network & internet, pick Wi-Fi or Ethernet, then your connection's properties. Next to DNS server assignment, choose Edit, switch to Manual, turn on IPv4 and enter the addresses. Windows 11 can also encrypt lookups with DNS over HTTPS for resolvers it knows. From an administrator PowerShell, the same change is:

Set-DnsClientServerAddress -InterfaceAlias 'Ethernet' -ServerAddresses 1.1.1.1, 1.0.0.1
ipconfig /flushdns

The router, for every device at once

Setting DNS in your router's DHCP or internet settings changes it for every device that joins your network, consoles included, without touching each one. It is also the easiest way to bring filtering or encrypted DNS to consoles, which do not offer encrypted DNS themselves.

Do not forget IPv6

If your provider gives you IPv6, devices also learn DNS servers through IPv6, usually from your router's announcements. Change only the IPv4 entries and a PC can quietly keep asking your provider's IPv6 resolver, which makes a test look as if nothing changed. Set the IPv6 addresses from the table above alongside the IPv4 ones, or change DNS on the router for both protocols.

Running your own resolver

A resolver of your own, such as Pi-hole, AdGuard Home or Technitium DNS Server, gives you filtering, per-device logs and control over which upstream services you trust. At home it runs on a small always-on device. Some people run one on a rented server instead, so filtering follows their devices everywhere over encrypted DNS; AdGuard Home and Technitium are both available as CloudSat one-click apps (AdGuard Home, Technitium) for that setup.

Two rules apply to any self-hosted resolver. Never leave plain DNS on port 53 open to the whole internet, because open resolvers are abused to amplify DDoS attacks; restrict it to your own addresses, or offer only encrypted DNS with authentication. And pick a location close to you, because every uncached lookup travels to the resolver and back.

FAQ

Will a gaming DNS lower my ping?

No. Ping is the round trip to the game server, and DNS is not involved once your device knows the server's address. Lower ping comes from a wired connection, a closer server region and a less congested line.

Can changing DNS fix a strict NAT type?

No. NAT type depends on your router: UPnP, port forwarding and whether you sit behind a second router or your provider's shared address. DNS settings have no effect on it.

Which DNS is best for PS4 or PS5?

The one that tests fastest and most reliably from your connection, which varies by provider and region. Run the tests above from a computer on the same network, then enter the winner on the console.

Is it safe to use a public resolver?

The large services publish privacy policies describing what they log and for how long; read the one you choose. Filtering variants add protection against malicious domains, and encrypted DNS stops others on the network from reading your lookups.

Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.