X
X
Worldwide (English) GBP 0

Welcome

Sign in

Clearing DNS Caches on Windows and Linux

HomepageArticlesClearing DNS Caches on Windows and Linux
Network device, connections and network diagram
Illustrative image · HostTurka

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.

Windows

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.

Linux

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.

Browser and VPN layers

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.

After hosting migration

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.

ABOUT THE AUTHOR

Computer Programmer | Hostturka

A 2009 Kadir Has University graduate and owner of CND Medya, working in hosting, server administration, networking and web software.

Education, projects and professional background →

Copyright © 2026 All Rights Reserved
Top