{"id":1240,"date":"2019-02-27T10:38:40","date_gmt":"2019-02-27T05:08:40","guid":{"rendered":"https:\/\/www.coimbatorewebhosting.com\/blog\/?p=1240"},"modified":"2019-04-09T10:38:13","modified_gmt":"2019-04-09T05:08:13","slug":"flush-dns-cache-windows-linux","status":"publish","type":"post","link":"https:\/\/coimbatorewebhosting.com\/blog\/flush-dns-cache-windows-linux\/","title":{"rendered":"How to Flush the DNS Cache in Windows and Linux."},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/flush-dns-cache-windows-linux\/#Flush_the_DNS_Cache_in_Windows_and_Linux\" >Flush the DNS Cache in Windows and Linux.<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/flush-dns-cache-windows-linux\/#DNS_Propagation\" >DNS Propagation:<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/flush-dns-cache-windows-linux\/#Flush_DNS\" >Flush DNS:<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/flush-dns-cache-windows-linux\/#Windows\" >Windows:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/flush-dns-cache-windows-linux\/#Linux\" >Linux:<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Flush_the_DNS_Cache_in_Windows_and_Linux\"><\/span>Flush the DNS Cache in Windows and Linux.<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>Here in this post i explain how to flush DNS cache in windows and linux.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"DNS_Propagation\"><\/span>DNS Propagation:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span class=\"ILfuVd NA6bn\">When you update the nameservers for a domain , it may take up to 24-48 hours for the change to take effect. <\/span><span class=\"ILfuVd NA6bn\">This period is called <b>DNS propagation<\/b>. In other words, it is a period of time ISP (Internet service provider) nodes across the world take to update their caches with the new <b>DNS<\/b> information of your domain.<\/span><\/p>\n<h5><span class=\"ez-toc-section\" id=\"Flush_DNS\"><\/span>Flush DNS:<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>While doing the above NS changes such as changing nameservers, it may be necessary to clear the DNS cache on your computer. By default, all computers store a cached version of DNS entries to make loading a website faster as opposed to having to look up the DNS record on each load.<\/p>\n<p>When you change or update your nameservers or modify DNS records, sometimes this will cause issues since your computer may not yet reflect the change.This is DUE to DNS propagation or the DNS not propagated(DNS changes can take up to 48 hours to fully propagate throughout the internet\u2019s DNS servers)<\/p>\n<p>We have to wait for few hours for all those actions to be done or complete.<\/p>\n<p>It may be necessary to flush your DNS cache on your local computer when making DNS changes, especially when migrating your websites. This is a simply task to complete. In most cases, rebooting your computer will also have a similar effect.<\/p>\n<p>The below is the guide lines to Flush the DNS cache on your computer:-<\/p>\n<ul>\n<li>Open a command prompt or terminal window<\/li>\n<li>On Windows type\u00a0<em>ipconfig \/flushdns<\/em><\/li>\n<li>In Linux see options below depending on your distribution<\/li>\n<li>You can also simply reboot your computer to flush DNS cache instead of running any of the above commands.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Windows\"><\/span>Windows:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>For a Windows <a  href=\"https:\/\/www.coimbatorewebhosting.com\/blog\/need-of-dedicated-ip-address\/\" title=\"computer\" alt=\"computer\">computer<\/a>, open a command prompt (CMD). This can be done by using the following steps below for your corresponding version of Windows.<\/p>\n<p>Windows XP: Start &gt; Run &gt; cmd (type cmd in the run box &amp; press Enter)<\/p>\n<p>Windows 7: Start &gt; cmd (type cmd in the search box &amp; press Enter)<\/p>\n<p>Windows 8: Start &gt; All Apps &gt; cmd (type cmd in the search box &amp; press Enter)<\/p>\n<p>Windows 10: Start &gt; cmd (type cmd &amp; press Enter)<\/p>\n<p>For windows hositng details <a href=\"https:\/\/www.squarebrothers.com\/windows-web-hosting-india\/\" rel=\"nofollow noopener\" target=\"_blank\">goto,<\/a><\/p>\n<p>Once the command prompt up (black window) type the command below and then press Enter. This will clear the local DNS cache on the computer. (refer to the image below)<\/p>\n<p>ipconfig \/flushdns<\/p>\n<p>You have to perform the above actions repeatedly for 5 to 10 times to clear the caches in your computer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1241 size-full\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2019\/02\/flushdns.png\" alt=\"dns cache\" width=\"1333\" height=\"688\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2019\/02\/flushdns.png 1333w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2019\/02\/flushdns-300x155.png 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2019\/02\/flushdns-768x396.png 768w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2019\/02\/flushdns-1024x529.png 1024w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2019\/02\/flushdns-116x60.png 116w\" sizes=\"auto, (max-width: 1333px) 100vw, 1333px\" \/><\/p>\n<div id=\"primary\" class=\"site-content\">\n<div id=\"content\" role=\"main\">\n<article id=\"post-192\" class=\"post-192 post type-post status-publish format-standard hentry category-dns\">\n<div class=\"entry-content\">\n<h3><span class=\"ez-toc-section\" id=\"Linux\"><\/span><strong>Linux:<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>From a terminal run one of the corresponding commands below, depending on your packages:<\/p>\n<blockquote><p>&nbsp;<\/p>\n<pre>\/etc\/init.d\/nscd restart\r\nservice nscd reload\r\n\/etc\/init.d\/named restart\r\nrndc restart\r\n\/etc\/init.d\/dnsmasq restart\r\nservice dnsmasq restart<\/pre>\n<\/blockquote>\n<\/div>\n<\/article>\n<\/div>\n<\/div>\n<p>That's all DNS has successfully FLUSHED in your computer.I think the above will help you.<\/p>\n<p>Thanks for reading the post.<\/p>\n<p>And if you like to know about cloudflare\u2019s DNS to secure the site and load fast than <a href=\"https:\/\/www.coimbatorewebhosting.com\/blog\/cloudflares-dns-secure-the-site\/\">click the link<\/a> to know.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Flush the DNS Cache in Windows and Linux. Here in this post i explain how to flush DNS cache in windows and linux. DNS Propagation: When you update the nameservers for a domain , it may take up to 24-48 hours for the change to take effect. This period is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1248,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[17,3],"tags":[135,136,137],"class_list":["post-1240","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","category-linux","tag-dns-cache","tag-flush","tag-windows"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2019\/02\/DNS-flush.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pa2YU7-k0","_links":{"self":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/posts\/1240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/comments?post=1240"}],"version-history":[{"count":0,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/posts\/1240\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/media\/1248"}],"wp:attachment":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/media?parent=1240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/categories?post=1240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/tags?post=1240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}