{"id":25414,"date":"2019-01-09T14:04:18","date_gmt":"2019-01-09T14:04:18","guid":{"rendered":"http:\/\/www.macecraft.com\/?p=25414"},"modified":"2024-07-23T06:48:27","modified_gmt":"2024-07-23T06:48:27","slug":"flush-dns-cache-windows","status":"publish","type":"post","link":"https:\/\/jv16powertools.com\/blog\/flush-dns-cache-windows\/","title":{"rendered":"3 Easy Ways To Flush DNS Cache In Windows 10\/ 8.1 and 7"},"content":{"rendered":"<h3>A couple of words on DNS<\/h3>\n<p>DNS stands for Domain Name System. It\u00a0translates website names into IP addresses which computers can understand. This happens for every website you want to visit. Every time a user visits a website by its hostname, the web browser initiates a request out to the internet, but this request cannot be completed until the site&#8217;s name is &#8220;converted&#8221; into an IP address.<\/p>\n<p>Windows comes with an option which stores the specified DNS server address to speed up browsing experience. It makes the TCP\/IP stack use that IP address and refers to this user-specified DNS service or gateway-specified service to resolve the domain name of a website to its IP address and load it in your web browser.<\/p>\n<p>In most cases, your Internet Service Provider (ISP) provides their own DNS server.\u00a0This server is usually specified in your router or automatically fetched from the ISP. The internet relies on the DNS to maintain an index of all public websites and their corresponding IP addresses.<\/p>\n<p>In some cases, you may want to switch to an external DNS server. Some reasons include:<\/p>\n<ul>\n<li>it may update its cache faster,<\/li>\n<li>a third-party DNS service can have a built-in ad blocker,<\/li>\n<li>other DNS services can provide extra security<\/li>\n<\/ul>\n<h3>What is the DNS Cache?<\/h3>\n<p>Even though there are tons of public DNS servers your network can use to try to speed up the conversion process, it&#8217;s still quicker to have a local copy, which is where DNS comes in.<\/p>\n<p>Whenever you visit a website using it\u2019s domain name, your browser is directed to a DNS server where it learns the IP address of that website. Then, you are directed to that website.<\/p>\n<p>The primary function is storing the location of web servers that contain web pages which you have recently accessed. If the location of any web server changes before the entry in your DNS Cache updates, then you can no longer access that site.<\/p>\n<p>A record of the IP address is created within Windows so if you visit that same website again, the information is accessed quicker. These records make up the DNS Cache (sometimes called a DNS\u00a0<em>resolver\u00a0<\/em>cache).<\/p>\n<h3>How <a href=\"https:\/\/www.wikihow.com\/Flush-DNS\" target=\"_blank\" rel=\"noopener\">flushing the DNS<\/a> Cache can help you<\/h3>\n<p>If you can\u2019t access a web page in spite of the page existing on the\u00a0internet it indicates DNS Cache on the local server may be corrupted or broken.<\/p>\n<p>Sometimes bad results are cached, maybe due to DNS Cache Poisoning and Spoofing. Therefore they need to be cleared from the cache in order to allow your PC to communicate with the host correctly.<\/p>\n<p>Or sometimes an IP address to a site may change. If the DNS Cache has the old IP address record, it may result in your computer not being able to reach the site. Therefore, clearing it is a step you can take whenever you cannot connect to a site.<\/p>\n<h3>How to see your current DNS Cache<\/h3>\n<p>To see your current Windows DNS Cache, open a new elevated command prompt instance and type the following command:<\/p>\n<p class=\"western\"><span style=\"color: #666666\"><span style=\"font-family: Consolas, Monaco, Lucida Console, monospace\">ipconfig \/displaydns<\/span><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"748\" height=\"427\" data-lity class=\"aligncenter size-full wp-image-25415\" src=\"https:\/\/jv16powertools.com\/wordpress\/wp-content\/uploads\/2019\/01\/Capture-6.png\" alt=\"flush dns\" srcset=\"https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-6.png 748w, https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-6-300x171.png 300w\" sizes=\"auto, (max-width: 748px) 100vw, 748px\" \/><\/p>\n<p class=\"western\"><span style=\"color: #666666\"><span style=\"font-family: Consolas, Monaco, Lucida Console, monospace\">The command will produce a very long output.<br \/>\n<\/span><\/span><\/p>\n<p><span style=\"color: #444444\"><span style=\"font-family: Open Sans, Helvetica, Arial, sans-serif\"><span style=\"font-size: small\"><img loading=\"lazy\" decoding=\"async\" width=\"819\" height=\"704\" data-lity class=\"aligncenter size-full wp-image-25417\" src=\"https:\/\/jv16powertools.com\/wordpress\/wp-content\/uploads\/2019\/01\/Capture-3.png\" alt=\"flush dns\" srcset=\"https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-3.png 819w, https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-3-300x258.png 300w, https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-3-768x660.png 768w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/span><\/span><\/span><\/p>\n<p>For your convenience, you can redirect it to a file. Use the following command:<\/p>\n<pre class=\"western\"><span style=\"color: #666666\"><span style=\"font-family: Consolas, Monaco, Lucida Console, monospace\">ipconfig \/displaydns &gt;%USERPROFILE%\\Desktop\\dns.txt\n\n<img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"469\" data-lity class=\"aligncenter size-full wp-image-25418\" src=\"https:\/\/jv16powertools.com\/wordpress\/wp-content\/uploads\/2019\/01\/Capture-4.png\" alt=\"flush dns\" srcset=\"https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-4.png 730w, https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-4-300x193.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/span><\/span><\/pre>\n<p>Then you can open the dns.txt file created on your Desktop and inspect its entries.<\/p>\n<p><span style=\"color: #444444\"><span style=\"font-family: Open Sans, Helvetica, Arial, sans-serif\"><span style=\"font-size: small\"><img loading=\"lazy\" decoding=\"async\" width=\"782\" height=\"679\" data-lity class=\"aligncenter size-full wp-image-25419\" src=\"https:\/\/jv16powertools.com\/wordpress\/wp-content\/uploads\/2019\/01\/Capture-5.png\" alt=\"flush dns\" srcset=\"https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-5.png 782w, https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-5-300x260.png 300w, https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-5-768x667.png 768w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/span><\/span><\/span><\/p>\n<h3 class=\"western\"><span style=\"color: #222222\"><span style=\"font-family: Raleway, sans-serif\"><b>Flush DNS Cache, Option 1 \u2013 Windows Command<\/b><\/span><\/span><\/h3>\n<ol>\n<li><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">Hold down the\u00a0<\/span><\/span><\/span><strong><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\"><b>Windows key\u00a0<\/b><\/span><\/span><\/span><\/strong><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">and press\u00a0\u201c<\/span><\/span><\/span><strong><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\"><b>R<\/b><\/span><\/span><\/span><\/strong><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">\u201d to bring up the Run dialog box.<\/span><\/span><\/span><\/li>\n<li><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">Type\u00a0ipconfig \/flushdns<\/span><\/span><\/span><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">\u00a0then press<\/span><\/span><\/span><strong><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">\u00a0\u201c<\/span><\/span><\/span><\/strong><strong><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\"><b>Enter<\/b><\/span><\/span><\/span><\/strong><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">\u201c.<\/span><\/span><\/span><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\"><br \/>\n<\/span><\/span><\/span><\/li>\n<\/ol>\n<p><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\"><img loading=\"lazy\" decoding=\"async\" data-lity class=\"aligncenter wp-image-236331 size-full\" src=\"https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-603x489-1.webp\" alt=\"flush dns\" width=\"603\" height=\"489\" srcset=\"https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-603x489-1.webp 603w, https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-603x489-1-300x243.webp 300w\" sizes=\"auto, (max-width: 603px) 100vw, 603px\" \/><\/span><\/span><\/span><\/p>\n<p><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">A command box will flash on the screen and the DNS Resolver cache is cleared.<\/span><\/span><\/span><\/p>\n<h3 class=\"western\"><span style=\"color: #222222\"><span style=\"font-family: Raleway, sans-serif\"><b>Flush DNS Cache, Option 2 \u2013 Windows PowerShell<\/b><\/span><\/span><\/h3>\n<ol>\n<li><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">Select the \u201c<\/span><\/span><\/span><strong><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\"><b>Start<\/b><\/span><\/span><\/span><\/strong><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">\u201d button, then type \u201c<\/span><\/span><\/span><strong><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\"><b>powershell<\/b><\/span><\/span><\/span><\/strong><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">\u201c.<\/span><\/span><\/span><\/li>\n<li><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">Select \u201c<\/span><\/span><\/span><strong><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\"><b>Windows PowerShell<\/b><\/span><\/span><\/span><\/strong><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">\u201c.<\/span><\/span><\/span><\/li>\n<li><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">Type\u00a0Clear-DnsClientCache<\/span><\/span><\/span><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">, then press \u201c<\/span><\/span><\/span><strong><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\"><b>Enter<\/b><\/span><\/span><\/span><\/strong><span style=\"color: #222222\"><span style=\"font-family: Roboto, sans-serif\"><span style=\"font-size: medium\">\u201c.<\/span><\/span><\/span><\/li>\n<\/ol>\n<p><strong><span style=\"color: #222222\"><span style=\"font-family: Verdana, Geneva, sans-serif\"><span style=\"font-size: medium\"><b><img loading=\"lazy\" decoding=\"async\" data-lity class=\"aligncenter wp-image-25421\" src=\"https:\/\/jv16powertools.com\/wordpress\/wp-content\/uploads\/2019\/01\/Capture-1.png\" alt=\"flush dns\" width=\"728\" height=\"488\" srcset=\"https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-1.png 888w, https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-1-300x201.png 300w, https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-1-768x515.png 768w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/b><\/span><\/span><\/span><\/strong><\/p>\n<h3><\/h3>\n<h3 class=\"western\"><span style=\"color: #222222\"><span style=\"font-family: Raleway, sans-serif\"><b>Flush DNS Cache, Option 3 \u2013 Command prompt<\/b><\/span><\/span><\/h3>\n<ol>\n<li><span style=\"color: #222222\"><span style=\"font-family: Verdana, Geneva, sans-serif\"><span style=\"font-size: medium\">Click on start menu search and type &#8216;command&#8217;.<\/span><\/span><\/span><\/li>\n<li><span style=\"color: #222222\"><span style=\"font-family: Verdana, Geneva, sans-serif\"><span style=\"font-size: medium\">From search results right click on Command Prompt (make sure you&#8217;re running it as administrator).<\/span><\/span><\/span><\/li>\n<li><span style=\"color: #222222\"><span style=\"font-family: Verdana, Geneva, sans-serif\"><span style=\"font-size: medium\">Type <strong><span style=\"font-family: monospace, monospace\"><b>ipconfig \/flushdns<\/b><\/span><\/strong> and hit enter.<\/span><\/span><\/span><\/li>\n<\/ol>\n<p><span style=\"color: #222222\"><span style=\"font-family: Verdana, Geneva, sans-serif\"><span style=\"font-size: medium\"><img loading=\"lazy\" decoding=\"async\" data-lity class=\"aligncenter wp-image-25422 size-full\" src=\"https:\/\/jv16powertools.com\/wordpress\/wp-content\/uploads\/2019\/01\/Capture-2.png\" alt=\"flush dns windows 10\" width=\"824\" height=\"474\" srcset=\"https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-2.png 824w, https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-2-300x173.png 300w, https:\/\/jv16powertools.com\/blog\/wp-content\/uploads\/2019\/01\/Capture-2-768x442.png 768w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><\/span><\/span><\/span><\/p>\n<h3>Conclusion<\/h3>\n<p>When you flush DNS Cache, it removes all the entries and deletes any invalid records. Thus forcing your computer to repopulate those addresses the next time you try accessing those websites. These new addresses are taken from the DNS server your network is set up to use.<\/p>\n<p>A router can have a DNS cache as well. Which is why rebooting a router is often a troubleshooting step. For the same reason you might flush DNS cache on your computer, you can reboot your router to clear the DNS entries stored in its temporary memory.<\/p>\n<p>Check out <a href=\"https:\/\/jv16powertools.com\/blog\/best-dns-servers-use-free-2022\/\">this article<\/a> to find out the current best DNS Servers which you can use for free!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A couple of words on DNS DNS stands for Domain Name System. It\u00a0translates website names into IP addresses which computers can understand. This happens for every website you want to visit. Every time a user visits a website by its hostname, the web browser initiates a request out to the internet, but this request cannot [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":30322,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4],"tags":[5],"class_list":["post-25414","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-tips"],"_links":{"self":[{"href":"https:\/\/jv16powertools.com\/blog\/wp-json\/wp\/v2\/posts\/25414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jv16powertools.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jv16powertools.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jv16powertools.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/jv16powertools.com\/blog\/wp-json\/wp\/v2\/comments?post=25414"}],"version-history":[{"count":5,"href":"https:\/\/jv16powertools.com\/blog\/wp-json\/wp\/v2\/posts\/25414\/revisions"}],"predecessor-version":[{"id":237229,"href":"https:\/\/jv16powertools.com\/blog\/wp-json\/wp\/v2\/posts\/25414\/revisions\/237229"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jv16powertools.com\/blog\/wp-json\/wp\/v2\/media\/30322"}],"wp:attachment":[{"href":"https:\/\/jv16powertools.com\/blog\/wp-json\/wp\/v2\/media?parent=25414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jv16powertools.com\/blog\/wp-json\/wp\/v2\/categories?post=25414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jv16powertools.com\/blog\/wp-json\/wp\/v2\/tags?post=25414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}