Originally published: 2025-11-08
Technical update: 22 October 2026. Clearing a local DNS cache can make a computer query old answers again. It does not repair authoritative records, clear the ISP’s cache or solve every connection problem.
Use the documented commands in Command Prompt or PowerShell to inspect and flush the cache:
ipconfig /displaydns
ipconfig /flushdns
If permission is denied, check whether an elevated session is needed. The Microsoft ipconfig reference describes the options. /release and /renew are different operations and can interrupt remote network access.
The procedure depends on the resolver. On a system using systemd-resolved, inspect its state first:
resolvectl status
sudo resolvectl flush-caches
The resolvectl documentation defines flushing for that local service. Not every Linux system runs it; do not stop random network services when the command is absent.
Secure DNS, corporate VPNs and application resolvers can use different lookup paths. An OS cache flush does not reset all those layers. Compare results with authoritative records when one hostname is affected.
Verify the new destination through web, TLS and application checks. Account for old TTLs and mail records during hosting migration. A domain registration transfer is a separate task, not a cache flush.