Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

This Itechguide teaches you how to flush DNS Windows 10. The guide covers steps for 2 methods to flush DNS Windows 10 – CMD and PowerShell.

Option 1: Flush DNS with CMD

How to Flush DNS on Windows 10 with CMD
  • Type cmd in the search box. Then, from the search results, click Command Prompt.
How to Flush DNS on Windows 10 with CMD
  • On command prompt, type the command below and press enter key on your keyboard.
ipconfig /flushdns
  • The command will return “Successfully flushed the DNS Resolver Cache.” – confirming that the command was successful.
  • To display the DNS client resolver cache, type this command and press enter.
ipconfig /displaydns
This command displays the client’s DNS client resolver cache for entries preloaded from the Hosts file on the computer. It also displays all recently obtained resource records for name queries resolved by the computer.
  • The last command will take a while to run – how long it takes to return a result depends the number of entries on the cache.
How to Flush DNS on Windows 10 with CMD
  • If you run the ipconfig /flushdns command and immediately run ipconfig /displaydns, the last command will NOT display any information – confirming that the DNS cache was cleared by the first command.

Option 2: Flush DNS with PowerShell

How to Flush DNS on Windows 10 with PowerShell
  • Search powershell and open Windows PowerShell. Then, click Windows PowerShell.
How to Flush DNS on Windows 10 with PowerShell
  • If you wish to display the current DNS cache, on the powershell command prompt, type this command and press the enter key on your keyboard.
Get-DnsClientCache
  • The command will display a list of all the DNS entries in the cache.
  • Then, to flush the DNS cache, type this command. Then, press the enter key.
Clear-DnsClientCache
  • The command runs very quickly and returns to the PowerShell prompt. It will appear that nothing happened.
  • To confirm that the DNS cache was flushed, run these two commands in quick succession…
Clear-DnsClientCache
Get-DnsClientCache
  • If the DNS cache was cleared successfully, the second command will NOT return any result. See the image below.
  • After some seconds, if you run the Get-DnsClientCache command, it will display results. This is because the PC would have updated its DNS resolver cache.

As you can see, it is very easy to flush DNS Windows 10! I hope you found this Itechguide helpful. If you found it helpful, click on “Yes” beside the “Was this page helpful” question below.

You may also express your thoughts and opinions by using the “Leave a Comment” form at the bottom of this page.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Finally, for more Windows 10 Itechguides, visit our Windows 10 How-To page.

Also popular on Amazon
UGREEN Cat 8 Ethernet Cable 15FT, High Speed Braided 40Gbps 2000Mhz Network Cord Cat8 RJ45 Shielded Indoor Heavy Duty LAN Cables Compatible with Gaming PC PS5 PS4 PS3 Xbox Modem Router 15FT
  • 40 Gbps 2000 Mhz High Speed: The Cat 8 ethernet cable support max. 40 Gbps data transfer and 2000 MHz Brandwith, ideal for gaming and streaming, greatly improving upload and download speed, sound, image and resolution quality
  • Excellent Anti-interference: The ethernet cable comes with 4 shielded foiled twisted pairs (F/FTP), pure copper core and gold-plated RJ45 connector, reducing interference, noise and crosstalk, making network speed faster and more stable
  • Marvelous Durability: Internet cable wrapped with quality cotton braided cord, which makes the LAN cable stronger and more durable. The test proves that this internet cable can be bent at least 10000 times without broken, very suitable for long-term use
  • PoE Supported: All lengths of ethernet cord can support the PoE power supply function except 65ft. You don't need additional power supply when installing a PoE camera, which is very convenient and safe
  • Wide Compatibility: With the RJ45 Connector, network cable can be perfectly compatible with computers, laptops, modems, routers, PS5, X-Box and other networking devices. It can also be fully backward compatible with Cat7, Cat6e, Cat6, Cat5e, Cat5
Also popular on Amazon
Ethernet Cable 15 ft, Cat7 High Speed Flat Shielded Internet Network Cable | Lan Cable with Gold Plated RJ45 Connector for Modem Switch Router, Compatible with Cat 8/Cat 6e/Cat6/Cat 5e Patch Cord-White
  • Hyper Speed Performance: Cat7 Ethernet Cable provides perfect performance of 600 MHz bandwidth and 10 Gbps high speed data transmission which is faster than Cat5 and Cat6. No worries about network delay when playing games, streaming 4K Videos, and downloading
  • Stability & Durability: Gold-plated RJ45 connectors are for higher sensitivity and better stability; 4 Pairs STP cable of 100% thick copper wire ensure faster Internet speed; Each twisted pair contain one ground wire which can effectively reduce noise & interference
  • Great Compatibility: Cat7 Ethernet cable can be used for Wi-Fi routers, Xbox one, Computer data center, Cloud Server, Network media players, PS4, Hubs and other device with RJ45 connectors. And also this could be backward compatible with Cat5e, Cat5, Cat6 and much more faster than them
  • Flexible Design: Unique flat cord makes this lan cable super flexible and allows for a cleaner and safer installation; It is much easier for you to make the network cable run along walls, follow edges & corners or slide it under a carpet; It can effectively avoid tangling and save space
  • Professional Certifiacted: All the Cat7 Ethernet cables pass analyzers tested; Manufactured with upgraded jacket, Folishine Cat 7 cables are waterproof, durable and pull-resistant for heavy duty work; Suitable for both outdoor and indoor use without rusting
Also popular on Amazon
UGREEN Cat 8 Ethernet Cable 10FT, High Speed Braided 40Gbps 2000Mhz Network Cord Cat8 RJ45 Shielded Indoor Heavy Duty LAN Cables Compatible with Gaming PC PS5 PS4 PS3 Xbox Modem Router 10FT
  • 40 Gbps 2000 Mhz High Speed: The Cat 8 ethernet cable support max. 40 Gbps data transfer and 2000 MHz Brandwith, ideal for gaming and streaming, greatly improving upload and download speed, sound, image and resolution quality
  • Excellent Anti-interference: The ethernet cable comes with 4 shielded foiled twisted pairs (F/FTP), pure copper core and gold-plated RJ45 connector, reducing interference, noise and crosstalk, making network speed faster and more stable
  • Marvelous Durability: Internet cable wrapped with quality cotton braided cord, which makes the LAN cable stronger and more durable. The test proves that this internet cable can be bent at least 10000 times without broken, very suitable for long-term use
  • PoE Supported: All lengths of ethernet cord can support the PoE power supply function except 65ft. You don't need additional power supply when installing a PoE camera, which is very convenient and safe
  • Wide Compatibility: With the RJ45 Connector, network cable can be perfectly compatible with computers, laptops, modems, routers, PS5, X-Box and other networking devices. It can also be fully backward compatible with Cat7, Cat6e, Cat6, Cat5e, Cat5
Popular on Amazon
Sale
UGREEN Cat 8 Ethernet Cable 6FT, High Speed Braided 40Gbps 2000Mhz Network Cord Cat8 RJ45 Shielded Indoor Heavy Duty LAN Cables Compatible with Gaming PC PS5 PS4 PS3 Xbox Modem Router 6FT
  • 40 Gbps 2000 Mhz High Speed: The Cat 8 ethernet cable support max. 40 Gbps data transfer and 2000 MHz Brandwith, ideal for gaming and streaming, greatly improving upload and download speed, sound, image and resolution quality
  • Excellent Anti-interference: The ethernet cable comes with 4 shielded foiled twisted pairs (F/FTP), pure copper core and gold-plated RJ45 connector, reducing interference, noise and crosstalk, making network speed faster and more stable
  • Marvelous Durability: Internet cable wrapped with quality cotton braided cord, which makes the LAN cable stronger and more durable. The test proves that this internet cable can be bent at least 10000 times without broken, very suitable for long-term use
  • PoE Supported: All lengths of ethernet cord can support the PoE power supply function except 65ft. You don't need additional power supply when installing a PoE camera, which is very convenient and safe
  • Wide Compatibility: With the RJ45 Connector, network cable can be perfectly compatible with computers, laptops, modems, routers, PS5, X-Box and other networking devices. It can also be fully backward compatible with Cat7, Cat6e, Cat6, Cat5e, Cat5

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi