{"id":1381,"date":"2021-05-10T12:46:35","date_gmt":"2021-05-10T09:46:35","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=1381"},"modified":"2025-11-27T11:34:44","modified_gmt":"2025-11-27T09:34:44","slug":"how-to-clear-the-local-dns-cache-in-window-7-8-and-10","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/how-to-clear-the-local-dns-cache-in-window-7-8-and-10\/","title":{"rendered":"Flush DNS Cache Windows 7\/8\/10\/11 Guide"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Internet-enabled computers have<\/span><b> unique numerical IDs<\/b><i><span style=\"font-weight: 400;\"> (IP addresses)<\/span><\/i><span style=\"font-weight: 400;\"> other computers use to communicate with them. <\/span><b>Domain Name System<\/b><span style=\"font-weight: 400;\"> brilliantly solves the stress of memorizing those long IDs by creatively devising means to match them using easy-to-remember words.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">So, instead of using IP addresses, users can type a <\/span><a href=\"https:\/\/www.scalahosting.com\/kb\/hosting\/dns\/\"><b>domain name<\/b><\/a><span style=\"font-weight: 400;\">,and DNS works behind the scene to resolve the domain name to the proper IP address.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When the browser finds the IP address on a<\/span><b> DNS server<\/b><span style=\"font-weight: 400;\">, your computer caches the information. It<\/span><b> saves the cached data<\/b><span style=\"font-weight: 400;\"> in the local DNS cache for subsequent visits instead of querying DNS servers for a domain\u2019s IP address anytime you visit.<\/span><\/p>\n<p><b>Purging local DNS cache<\/b><span style=\"font-weight: 400;\"> helps you see an updated version of a website after DNS changes, resolve DNS errors and protect yourself against malicious hack attacks.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let\u2019s quickly learn how\u2014for Windows 7, 8, and 10.<\/span><\/p>\n<h2><b>Windows 7<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Follow these steps to<\/span><b> clear the local DNS cache on Windows 7.<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Click the search button and type <\/span><i><span style=\"font-weight: 400;\">cmd<\/span><\/i> <span style=\"font-weight: 400;\">on the search bar. Right-click the <\/span><i><span style=\"font-weight: 400;\">\u2018cmd\u2019 <\/span><\/i><span style=\"font-weight: 400;\">prompt and click <\/span><i><span style=\"font-weight: 400;\">\u2018Run as Administrator.\u2019<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">At the <\/span><b>command prompt<\/b><span style=\"font-weight: 400;\">, type<\/span> <i><span style=\"font-weight: 400;\">ipconfig \/flushdns<\/span><\/i><b>,<\/b><span style=\"font-weight: 400;\"> leaving space between ipconfig and the trailing slash <\/span><i><span style=\"font-weight: 400;\">(\/).<\/span><\/i><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1385\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image4-3.png\" alt=\"Flush DNS Cache Windows 7\/8\/10\/11 Guide, Windows 7\" width=\"624\" height=\"214\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image4-3.png 624w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image4-3-300x103.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Hit the<\/span><b> Enter key<\/b><span style=\"font-weight: 400;\">, and you\u2019ll get a message saying, \u201c<\/span><i><span style=\"font-weight: 400;\">Successfully flushed the DNS Resolver Cache.\u201d<\/span><\/i><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1382\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image1-3.png\" alt=\"Flush DNS Cache Windows 7\/8\/10\/11 Guide, Windows 7 2\" width=\"614\" height=\"214\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image1-3.png 614w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image1-3-300x105.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">That\u2019s it for <\/span><b>Windows 7.<\/b><\/p>\n<h2><b>Windows 8 and 10<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">To <\/span><b>clear the local DNS cache <\/b><span style=\"font-weight: 400;\">for Windows 8 and 10, press the <\/span><b>Windows key and R<\/b> <i><span style=\"font-weight: 400;\">(Win+R) <\/span><\/i><span style=\"font-weight: 400;\">on your keyboard to open the Run Windows.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Type<\/span><b> cmd<\/b><span style=\"font-weight: 400;\"> on the bar and press the Enter key or click the \u2018<\/span><b>OK button.<\/b><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1384\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image3-3.png\" alt=\"Flush DNS Cache Windows 7\/8\/10\/11 Guide, Windows 8 and 10\" width=\"402\" height=\"209\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image3-3.png 402w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image3-3-300x156.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">At the command prompt, type<\/span> <i><span style=\"font-weight: 400;\">ipconfig \/flushdns<\/span><\/i> <span style=\"font-weight: 400;\">and press the Enter key to <\/span><b>execute the command.<\/b><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1383\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image2-3.png\" alt=\"Flush DNS Cache Windows 7\/8\/10\/11 Guide, Windows 8 and 10 2\" width=\"570\" height=\"252\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image2-3.png 570w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/image2-3-300x133.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You\u2019ll also get a message saying, \u201c<\/span><i><span style=\"font-weight: 400;\">Successfully flushed the DNS Resolver Cache.\u201d<\/span><\/i><\/p>\n<h2><b>Wrapping It Up<\/b><\/h2>\n<p><b>Clearing local DNS cache<\/b><span style=\"font-weight: 400;\"> on Windows computers is not as difficult as it sounds. As you could see, this article just made it effortless. Try it now on your computer by following the steps here.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You could check out this article to learn more about<\/span> <a href=\"https:\/\/www.scalahosting.com\/kb\/what-is-dns\/\"><b>local DNS cache<\/b><\/a><span style=\"font-weight: 400;\">, why flushing it matters, and how to clear DNS cache in <\/span><b>macOS, Linux computers<\/b><span style=\"font-weight: 400;\">, and <\/span><b>Chrome browsers.<\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Internet-enabled computers have unique numerical IDs (IP addresses) other computers use to communicate with them. Domain Name System brilliantly solves the stress of memorizing those long IDs by creatively devising means to match them using easy-to-remember words. So, instead of using IP addresses, users can type a domain name,and DNS works behind the scene to [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"Flush DNS Cache Windows 7\/8\/10\/11 Guide | ScalaHosting KB","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_analysis_target_kw":"","footnotes":""},"categories":[22],"tags":[],"class_list":["post-1381","post","type-post","status-publish","format-standard","hentry","category-dns"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=1381"}],"version-history":[{"count":8,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1381\/revisions"}],"predecessor-version":[{"id":5830,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1381\/revisions\/5830"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=1381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=1381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=1381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}