Does changing DNS lower your ping?
Last updated · 5 min read
Switching to a public DNS server is one of the most repeated tips for lowering ping. It rarely does, and the reason is simple once you know what DNS is for: it's used to find the game's server, not to reach it. There is one case where your choice of DNS does change where you're sent, and it's worth knowing which one.
What DNS does
Computers connect to addresses, not names. DNS is the internet's lookup service: when a program needs to reach a name such as a launcher's update server, your PC asks a DNS server (a resolver) which address goes with it, and the resolver answers with one or more addresses. Your provider runs a resolver for you by default; public ones, such as Cloudflare's 1.1.1.1 or Google's 8.8.8.8, are alternatives you can set in Windows or on your router.
Windows keeps the answers for a while, so the same name isn't looked up again every time. ipconfig /displaydns shows what's in that cache, and ipconfig /flushdns empties it. Microsoft's documentation describes the cache as a way to answer frequently used names quickly, before asking the DNS server at all.
Why it doesn't change your game's ping
A lookup happens before a connection starts. Once the game has its server's address, every packet goes straight to that address, and DNS plays no part in the round trip. The path those packets take is decided by the networks between you and the server, whichever resolver gave you the address. In many online games the match server's address isn't looked up by name at all: the game's matchmaking hands it to your client, though publishers rarely document how.
You can see this for yourself. ping to a name looks the name up once and then measures the round trip to the address it got. ping to an address skips the lookup entirely. Change your DNS server and ping the same address again, and the times won't move, because nothing on that path has changed.
A faster resolver does shorten the lookup itself, which is the moment before a page or a launcher starts loading. That happens once per name, and then the answer is cached. It isn't the delay you feel in a match. If your ping is high, the parts that set it are your home network, your line, the route and the distance: Why your ping is high on fast internet shows how to tell which of those is adding to yours.
The one case where it matters: which server you're sent to
Large download services, such as the content networks that deliver game updates, have servers in many places and want to send you to a near one. One common way is to answer the DNS lookup with the address of a server near the resolver that asked. That works well with your provider's resolver, which usually sits near you. A public resolver may answer from somewhere else, and then the service has to guess where you are.
Some public resolvers pass on part of your address to help with that guess, using an extension called EDNS Client Subnet. Google Public DNS sends it to services that support it, so they can return answers suited to your location. Cloudflare's 1.1.1.1 doesn't send it, as a matter of privacy, so services that rely on it see only where Cloudflare's resolver is. Many services don't depend on DNS for this at all and use anycast instead, where one address is answered from many places and the network itself carries you to a nearby one; for those, your choice of resolver makes no difference.
So in the worst case a resolver can send you to a farther download server, which can make an update slower. The same can apply to a game's login or matchmaking service if it chooses servers by DNS. It doesn't change the match server once you're in a game, and how a given game picks its servers isn't something its publisher usually documents. How to find which server you're playing on shows how to see where your match actually is.
When changing DNS is still worth it
- Your provider's resolver is slow or unreliable. If pages hang before they start loading, or names sometimes don't resolve, a different resolver fixes that. It's a fix for lookups, not for ping.
- Privacy or filtering. Some resolvers keep fewer logs, some block known malicious sites, and some offer encrypted lookups. Those are good reasons in their own right.
- Downloads land on a far server. If game updates download slowly on a public resolver, try your provider's own, or one that sends EDNS Client Subnet, and compare.
Measure with your game's own figures before and after. Lag and ping, game by game says where the games we've written about show them.
Where NoSpike fits
NoSpike doesn't touch DNS. It works on the route the game's packets take once the game has its server: it measures your ping to that server on your own connection and through each of its relays in Amsterdam, Copenhagen, Frankfurt, London, Madrid and Sweden, and by default it sends the game through a relay only when that route measured faster. When your own connection is the best way, it says so and routes nothing. It injects nothing into games, and many games on its list are betas whose servers are still being mapped, so routing for those isn't proven yet.
Without NoSpike Pro the app only measures: on a game's page, Measure routes puts its figure beside your own, so you can see whether the route is where your ping comes from before paying for anything.
Frequently asked questions
Is 1.1.1.1 or 8.8.8.8 better for gaming?
Neither changes your ping in a match. They differ in privacy and in how they help download services find a server near you: Google's sends part of your address on for that, Cloudflare's doesn't. If one gives you slower updates, try the other or your provider's own.
Does flushing the DNS cache lower ping?
No. It empties the list of names Windows has already looked up, so they're looked up again. That can fix a name that points at an old address, but the game's round trip doesn't use the cache.
Why did my ping change after I changed DNS?
Most likely you were sent to a different server, for example by a service that picks servers by where the resolver is, or the route changed at the same time for other reasons. Ping the same address before and after to tell the two apart.