How to Flush DNS Cache in Windows Using CMD

How to Flush DNS Cache in Windows Using CMD

Learn how to flush the DNS cache in Windows using both Command Prompt (CMD) and PowerShell. This tutorial covers viewing your current DNS cache and clearing it to fix DNS-related issues. Commands shown work on Windows 10 and Windows 11. Commands Used: CMD: ipconfig /displaydns, ipconfig /flushdns PowerShell: Get-DnsClientCache, Clear-DnsClientCache Timestamps 00:00 - Intro 00:06 - Why You Need to Clear DNS Cache 00:13 - View DNS Cache with ipconfig /displaydns 00:22 - Clear DNS Cache with ipconfig /flushdns 00:59 - Flush DNS Cache Using Windows PowerShell #windows #dns #cmd #windows10 #windows11 #windowsserver