{"id":163597,"date":"2023-05-27T09:42:41","date_gmt":"2023-05-27T09:42:41","guid":{"rendered":"https:\/\/ded9.com\/?p=163597"},"modified":"2026-01-05T12:24:33","modified_gmt":"2026-01-05T12:24:33","slug":"how-to-clear-windows-11-dns-cache","status":"publish","type":"post","link":"https:\/\/ded9.com\/de\/how-to-clear-windows-11-dns-cache\/","title":{"rendered":"How to Clear Windows 11 DNS Cache for Faster and More Reliable Networking"},"content":{"rendered":"<p><span style=\"font-size: 12pt;\">If You&#8217;re Having Trouble Loading Websites Or Pinging Online Services With The Domain Name, You Probably Need To Flush The DNS Cache.<\/span><\/p>\n<p>If you&#8217;ve recently noticed that a particular website won&#8217;t load in Windows 11, a program that requires the Internet doesn&#8217;t work, or using tools like ping or nslookup shows the wrong destination IP address, it&#8217;s probably due to the local DNS cache. In this article, we will learn how to solve this problem.<\/p>\n<p>When browsing the web or using applications that rely on an Internet connection, the Windows 11 Networking Stack stores a copy of each domain name in the local cache, along with the corresponding IP address translations obtained from DNS, to speed up subsequent connections.<\/p>\n<p>The problem with this process is that the DNS cache can sometimes fail, preventing websites and apps from loading correctly. In such cases, clearing the DNS cache can resolve the issue; it resets the cache and starts fresh.<\/p>\n<h2><span style=\"font-size: 18pt;\">How to clear DNS cache from CMD in Windows 11<\/span><\/h2>\n<p>In such a situation, you can use different methods to clear the DNS cache in Windows 11. If you&#8217;re dealing with DNS-related issues, Windows 11 offers at least two ways to clear the DNS cache: via Command Prompt or PowerShell. In addition, browsers such as Microsoft Edge, Google Chrome, and Mozilla Firefox include tools to clear these network records, which can help resolve the issue.<\/p>\n<ul>\n<li>Search for Command Prompt in the Start menu and right-click on it. Now select Run as administrator.<\/li>\n<li>Enter the following command to flush the DNS cache in Windows 11 and press Enter:<\/li>\n<\/ul>\n<div class=\"BlockContainer__Root-i5s1rc-0 daTQRI\">\n<div class=\"BlockContainer__InnerArticleContainer-i5s1rc-1 dfnkIg\">\n<div class=\"box__BoxBase-sc-1ww1anb-0 dSOGQo NotificationBoxBlock__Root-jk5ekk-0 lopAaT\">\n<h3 class=\"typography__StyledDynamicTypographyComponent-t787b7-0 lddBNw ParagraphElement__ParagraphBase-a3nf1a-0 cSzQac\">ipconfig \/flushdns<\/h3>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"BlockContainer__Root-i5s1rc-0 daTQRI\">\n<div class=\"BlockContainer__InnerArticleContainer-i5s1rc-1 fdTcwx\">\n<figure class=\"SingleImage__Figure-nvivxv-1 eXNtCv\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-253200 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-11.webp\" alt=\"ipconfig \/flushdns\" width=\"1200\" height=\"822\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-11.webp 1200w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-11-300x206.webp 300w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-11-1024x701.webp 1024w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-11-768x526.webp 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n<\/div>\n<\/div>\n<div class=\"BlockContainer__Root-i5s1rc-0 daTQRI\">\n<div class=\"BlockContainer__InnerArticleContainer-i5s1rc-1 dfnkIg\">\n<ul class=\"BulletedListElement__BulletedListBase-sc-14gxm2r-0 cjABIx\">\n<li class=\"ListItemElement__ListItem-sc-1yc5ezr-0 kknMdx\">If you want, you can use the following command to view cached DNS records:<\/li>\n<\/ul>\n<div class=\"box__BoxBase-sc-1ww1anb-0 dSOGQo NotificationBoxBlock__Root-jk5ekk-0 lopAaT\">\n<h3 class=\"typography__StyledDynamicTypographyComponent-t787b7-0 lddBNw ParagraphElement__ParagraphBase-a3nf1a-0 cSzQac\">ipconfig \/displaydns<\/h3>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"BlockContainer__Root-i5s1rc-0 daTQRI\">\n<div class=\"BlockContainer__InnerArticleContainer-i5s1rc-1 fdTcwx\">\n<figure class=\"SingleImage__Figure-nvivxv-1 eXNtCv\"><img decoding=\"async\" class=\"aligncenter wp-image-253205 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-12.webp\" alt=\"ipconfig \/displaydns\" width=\"1200\" height=\"822\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-12.webp 1200w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-12-300x206.webp 300w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-12-1024x701.webp 1024w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-12-768x526.webp 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n<\/div>\n<\/div>\n<div class=\"BlockContainer__Root-i5s1rc-0 daTQRI\">\n<div class=\"BlockContainer__InnerArticleContainer-i5s1rc-1 dfnkIg\">\n<p class=\"typography__StyledDynamicTypographyComponent-t787b7-0 lddBNw ParagraphElement__ParagraphBase-xi3p5u-0 eqKOEI\">Once these steps are complete, a new DNS lookup will occur to restore the information when the system or an application attempts to access the network.<\/p>\n<div class=\"HeadingThree__Root-t7fw7a-0 geCMly\">\n<h2 id=\"646519df667af1afc7055ed6\" class=\"typography__StyledDynamicTypographyComponent-t787b7-0 eKJbdF HeadingThree__HeadingThreeBase-t7fw7a-1 jwqNER\"><span style=\"font-size: 18pt;\">How to clear DNS cache from PowerShell in Windows 11<\/span><\/h2>\n<\/div>\n<p class=\"typography__StyledDynamicTypographyComponent-t787b7-0 lddBNw ParagraphElement__ParagraphBase-xi3p5u-0 eqKOEI\">Follow these steps to flush DNS records with PowerShell commands:<\/p>\n<ul class=\"BulletedListElement__BulletedListBase-sc-14gxm2r-0 cjABIx\">\n<li class=\"ListItemElement__ListItem-sc-1yc5ezr-0 kknMdx\">Open the Start menu, search for PowerShell, then right-click it and select Run as administrator.<\/li>\n<li class=\"ListItemElement__ListItem-sc-1yc5ezr-0 kknMdx\">Now type the following command to clear the DNS cache and hit Enter:<\/li>\n<\/ul>\n<div class=\"box__BoxBase-sc-1ww1anb-0 dSOGQo NotificationBoxBlock__Root-jk5ekk-0 lopAaT\">\n<h3 class=\"typography__StyledDynamicTypographyComponent-t787b7-0 lddBNw ParagraphElement__ParagraphBase-a3nf1a-0 cSzQac\">Clear-DnsClientCache<\/h3>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"BlockContainer__Root-i5s1rc-0 daTQRI\">\n<div class=\"BlockContainer__InnerArticleContainer-i5s1rc-1 fdTcwx\">\n<figure class=\"SingleImage__Figure-nvivxv-1 eXNtCv\"><img decoding=\"async\" class=\"aligncenter wp-image-253210 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-13.webp\" alt=\"Clear-DnsClientCache\" width=\"1200\" height=\"822\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-13.webp 1200w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-13-300x206.webp 300w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-13-1024x701.webp 1024w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-13-768x526.webp 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n<\/div>\n<\/div>\n<div class=\"BlockContainer__Root-i5s1rc-0 daTQRI\">\n<div class=\"BlockContainer__InnerArticleContainer-i5s1rc-1 dfnkIg\">\n<ul class=\"BulletedListElement__BulletedListBase-sc-14gxm2r-0 cjABIx\">\n<li class=\"ListItemElement__ListItem-sc-1yc5ezr-0 kknMdx\">You can also run the following command to view cached DNS records:<\/li>\n<\/ul>\n<div class=\"box__BoxBase-sc-1ww1anb-0 dSOGQo NotificationBoxBlock__Root-jk5ekk-0 lopAaT\">\n<h3 class=\"typography__StyledDynamicTypographyComponent-t787b7-0 lddBNw ParagraphElement__ParagraphBase-a3nf1a-0 cSzQac\">Get-DnsClientCache<\/h3>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"BlockContainer__Root-i5s1rc-0 daTQRI\">\n<div class=\"BlockContainer__InnerArticleContainer-i5s1rc-1 fdTcwx\">\n<figure class=\"SingleImage__Figure-nvivxv-1 eXNtCv\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-253215 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-14.webp\" alt=\"Get-DnsClientCache\" width=\"1200\" height=\"822\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-14.webp 1200w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-14-300x206.webp 300w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-14-1024x701.webp 1024w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-14-768x526.webp 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n<\/div>\n<\/div>\n<div class=\"BlockContainer__Root-i5s1rc-0 daTQRI\">\n<div class=\"BlockContainer__InnerArticleContainer-i5s1rc-1 dfnkIg\">\n<p class=\"typography__StyledDynamicTypographyComponent-t787b7-0 lddBNw ParagraphElement__ParagraphBase-xi3p5u-0 eqKOEI\">After completing the above steps, the PowerShell command will clear and reset the DNS records in the device&#8217;s cache.<\/p>\n<div class=\"HeadingTwo__Root-sc-1rb1mkt-0 jpoqnj\">\n<h2 id=\"64651b256151f5578ede8396\" class=\"typography__StyledDynamicTypographyComponent-t787b7-0 koPLrU HeadingTwo__HeadingTwoBase-sc-1rb1mkt-1 iObJqC\"><span style=\"font-size: 18pt;\">How to clear the DNS cache through the browser<\/span><\/h2>\n<\/div>\n<p class=\"typography__StyledDynamicTypographyComponent-t787b7-0 lddBNw ParagraphElement__ParagraphBase-xi3p5u-0 eqKOEI\">As mentioned, Windows 11 and browsers such as Microsoft Edge, Google Chrome, and Mozilla Firefox also offer the option to clear the DNS cache.<\/p>\n<div class=\"HeadingThree__Root-t7fw7a-0 geCMly\">\n<h3 id=\"64651b3a70f59e822a30a84a\" class=\"typography__StyledDynamicTypographyComponent-t787b7-0 eKJbdF HeadingThree__HeadingThreeBase-t7fw7a-1 jwqNER\">Clear the DNS cache in the Edge or Chrome browser<\/h3>\n<\/div>\n<p class=\"typography__StyledDynamicTypographyComponent-t787b7-0 lddBNw ParagraphElement__ParagraphBase-xi3p5u-0 eqKOEI\">To clear the DNS cache from Edge or Chrome, do the following:<\/p>\n<ul class=\"BulletedListElement__BulletedListBase-sc-14gxm2r-0 cjABIx\">\n<li class=\"ListItemElement__ListItem-sc-1yc5ezr-0 kknMdx\">Open Edge or Chrome.<\/li>\n<li class=\"ListItemElement__ListItem-sc-1yc5ezr-0 kknMdx\">Type the following path in the address bar and press Enter:<\/li>\n<\/ul>\n<div class=\"box__BoxBase-sc-1ww1anb-0 dSOGQo NotificationBoxBlock__Root-jk5ekk-0 lopAaT\">\n<h4 class=\"typography__StyledDynamicTypographyComponent-t787b7-0 lddBNw ParagraphElement__ParagraphBase-a3nf1a-0 cSzQac\">chrome:\/\/net-internals\/#dns<\/h4>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"BlockContainer__Root-i5s1rc-0 daTQRI\">\n<div class=\"BlockContainer__InnerArticleContainer-i5s1rc-1 fdTcwx\">\n<figure class=\"SingleImage__Figure-nvivxv-1 eXNtCv\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-253218 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-15.webp\" alt=\"chrome:\/\/net-internals\/#dns\" width=\"1200\" height=\"822\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-15.webp 1200w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-15-300x206.webp 300w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-15-1024x701.webp 1024w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-15-768x526.webp 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n<\/div>\n<\/div>\n<div class=\"BlockContainer__Root-i5s1rc-0 daTQRI\">\n<div class=\"BlockContainer__InnerArticleContainer-i5s1rc-1 dfnkIg\">\n<ul class=\"BulletedListElement__BulletedListBase-sc-14gxm2r-0 cjABIx\">\n<li class=\"ListItemElement__ListItem-sc-1yc5ezr-0 kknMdx\">On the &#8220;DNS&#8221; page, click the &#8220;Clear host cache&#8221; option to set the &#8220;Host resolver cache.&#8221;<\/li>\n<\/ul>\n<div class=\"HeadingThree__Root-t7fw7a-0 geCMly\">\n<h3 id=\"64651c24e2c8a7883c80584c\" class=\"typography__StyledDynamicTypographyComponent-t787b7-0 eKJbdF HeadingThree__HeadingThreeBase-t7fw7a-1 jwqNER\">Clear DNS cache in Mozilla Firefox<\/h3>\n<\/div>\n<ul class=\"BulletedListElement__BulletedListBase-sc-14gxm2r-0 cjABIx\">\n<li class=\"ListItemElement__ListItem-sc-1yc5ezr-0 kknMdx\">After opening <a href=\"https:\/\/ded9.com\/how-to-block-the-website-for-the-user-in-windows-google-chrome-and-firefox\/\">Firefox<\/a>, type the following path in the address bar and hit Enter:<\/li>\n<\/ul>\n<div class=\"box__BoxBase-sc-1ww1anb-0 dSOGQo NotificationBoxBlock__Root-jk5ekk-0 lopAaT\">\n<h4 class=\"typography__StyledDynamicTypographyComponent-t787b7-0 lddBNw ParagraphElement__ParagraphBase-a3nf1a-0 cSzQac\">About: networking#dns<\/h4>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"BlockContainer__Root-i5s1rc-0 daTQRI\">\n<div class=\"BlockContainer__InnerArticleContainer-i5s1rc-1 fdTcwx\">\n<figure class=\"SingleImage__Figure-nvivxv-1 eXNtCv\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-253221 size-full\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-16.webp\" alt=\"About: networking#dns\" width=\"1200\" height=\"822\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-16.webp 1200w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-16-300x206.webp 300w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-16-1024x701.webp 1024w, https:\/\/ded9.com\/wp-content\/uploads\/2023\/05\/1-16-768x526.webp 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n<\/div>\n<\/div>\n<div class=\"BlockContainer__Root-i5s1rc-0 daTQRI\">\n<div class=\"BlockContainer__InnerArticleContainer-i5s1rc-1 dfnkIg\">\n<ul class=\"BulletedListElement__BulletedListBase-sc-14gxm2r-0 cjABIx\">\n<li class=\"ListItemElement__ListItem-sc-1yc5ezr-0 kknMdx\">\n<h4>Now click &#8220;Clear DNS cache&#8221; on the &#8220;<a href=\"https:\/\/en.wikipedia.org\/wiki\/Domain_Name_System\" target=\"_blank\" rel=\"noopener\">DNS<\/a>&#8221; page.<\/h4>\n<\/li>\n<\/ul>\n<p class=\"typography__StyledDynamicTypographyComponent-t787b7-0 lddBNw ParagraphElement__ParagraphBase-xi3p5u-0 eqKOEI\">When you complete the steps, as with Command Prompt and PowerShell, the web browser clears the DNS cache to allow websites and other services to function correctly again.<\/p>\n<h2>FAQ<\/h2>\n<div id=\"rank-math-rich-snippet-wrapper\"><div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-1\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Why clear the DNS cache in Windows 11?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Clearing the DNS cache removes outdated entries that can cause connection errors or slow browsing.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-2\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">What is the command to flush DNS?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Use ipconfig \/flushdns in Command Prompt to clear the DNS resolver cache.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-3\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Will clearing DNS affect my network settings?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>No, it refreshes DNS entries without impacting other network configurations.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>If You&#8217;re Having Trouble Loading Websites Or Pinging Online Services With The Domain Name, You Probably Need To Flush The DNS Cache. If you&#8217;ve recently noticed that a particular website won&#8217;t load in Windows 11, a program that requires the Internet doesn&#8217;t work, or using tools like ping or nslookup shows the wrong destination IP [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":163598,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[70],"tags":[1097],"class_list":["post-163597","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows","tag-dns"],"acf":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts\/163597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/comments?post=163597"}],"version-history":[{"count":7,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts\/163597\/revisions"}],"predecessor-version":[{"id":266720,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts\/163597\/revisions\/266720"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/media\/163598"}],"wp:attachment":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/media?parent=163597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/categories?post=163597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/tags?post=163597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}