DNS does not change your game ping
A DNS server answers one question before your game connects: which address belongs to a name. The round trip your game measures starts after that answer, on a path the DNS server is not part of.
Updated
What DNS does
Your device knows a game service by its name; the internet delivers packets by address. A DNS server translates the one into the other. The DNS standard, RFC 1034, has resolvers keep each answer for a time the name's owner sets, the time to live, so your device does not ask again for every packet.
Why your ping does not include it
Once the game has the server's address, its packets travel from your device through your router and your provider to that address and back. The DNS server sits off to the side of that path, so a faster DNS server has no way to shorten it. Distance, routing and your home network decide the round trip.
Our test works the same way. Its first request to each test point covers the DNS lookup and the opening of the connection, and the test throws that request away. Only the 10 requests after it count, so a change of DNS server cannot move a figure in your result either.
Where DNS does play a part
- Connecting. A DNS server that fails or answers slowly can delay a login or a server list, or stop a connection from opening. That happens before the match, not during it.
- Old answers. Flushing the DNS cache makes your device ask again. It fixes a stored answer that went stale; it does not shorten a round trip.
- Publisher advice. Riot suggests a public DNS server for the stability and reliability of a League of Legends connection. The page does not say it lowers in-game latency, and Riot's main troubleshooting guide names physical distance to its servers as the largest factor in latency.
What to change instead
Run the test and let the verdict pick the fix. Each one points at a part of the path DNS never touches.
| Verdict | What to change |
|---|---|
| Close and stable | Nothing at home. If the game still lags, check its own ping display and status page. |
| Close but unstable | The home network: a cable, the 5 GHz band, background downloads, router QoS. |
| Far from the servers | The route from your provider to the region: when the route is the problem. |
| Cross region | The region you play on, if your game, friends and account allow a nearer one. If not, see VPN or game booster. |
Questions about DNS and ping
Does a public DNS server lower ping?
Why do some guides say to flush DNS?
Can DNS cause lag spikes in a match?
Sources
- IETF (RFC Editor): RFC 1034: Domain Names, Concepts and Facilities, read
- Riot Games: Increasing connection quality through public DNS servers, read
- Riot Games: Basic Connections Troubleshooting Guide, read