← All articles

Published November 16, 2026 · Pingsivo

What Is a DNS Cache? How It Works and When to Clear It

TL;DR: A DNS cache temporarily stores answers about domain names so devices and resolvers can reuse them. Clear a local DNS cache when one device appears to be using an old answer, and check the upstream resolver if the same answer returns.

Home computer and a row of address cards beside a router
AI-generated 3D illustration.

What does a DNS cache store?

A DNS cache stores answers from earlier domain name lookups. For example, when your device opens a site, DNS can return the IPv4 or IPv6 address associated with that site’s name. Keeping the answer lets later lookups reuse it for a limited time instead of repeating the full lookup.

An answer can also say that a name does not exist. Under defined conditions, resolvers cache those negative answers too. A newly created name can therefore remain unavailable to a resolver that previously cached its absence. RFC 1034 explains DNS caching, and RFC 2308 describes negative caching.

How long does a DNS cache keep an answer?

A DNS record's time to live, or TTL, sets how long a cached copy can be kept under ordinary DNS caching rules. A TTL of 300 seconds is five minutes. If the source changes during that window, a resolver that still has the earlier answer may continue serving it until its cached copy expires.

Two computers with separate caches and a shared server in the distance
AI-generated 3D illustration.
What you see What it suggests checking
An old address on one computer That computer’s local DNS settings and cache
An old address on multiple devices sharing a resolver What the shared resolver is returning
The old address from the authoritative DNS server The published DNS record
A current address but an old page Browser or server content caches and the site configuration

How do you flush the DNS cache in Windows?

On Windows, run ipconfig /flushdns to clear the Windows DNS client resolver cache. To inspect what that cache currently holds, run ipconfig /displaydns. Test the same hostname again afterward, keeping the network and other settings the same so you can tell whether the change helped. Microsoft documents both commands.

Frequently asked questions

Is the DNS cache the same as the browser cache?

A DNS cache stores answers to name lookups. A browser content cache stores resources such as images and style sheets, so clearing one can leave the other unaffected.

Does flushing DNS change your DNS provider?

Flushing the local cache leaves your configured DNS provider in place. The next lookup can still receive an answer from that provider’s cache.

Will clearing DNS fix every connection problem?

Clearing DNS can help with a stale local lookup. It will not repair a disconnected cable, weak Wi-Fi signal, or unavailable web server.

Can different devices return different DNS answers?

Yes. Devices can use different resolvers, or their cached answers may expire at different times.

What should you check next?

Compare answers before and after clearing the local cache, then check whether the issue follows your device or network. See the NXDOMAIN diagnostic guide or the Ethernet connectivity guide if the symptoms point elsewhere.