{"id":18587,"date":"2024-01-29T15:46:57","date_gmt":"2024-01-29T12:46:57","guid":{"rendered":"https:\/\/infinitydomainhosting.com\/kb\/?p=18587"},"modified":"2025-09-24T19:10:24","modified_gmt":"2025-09-24T16:10:24","slug":"clearing-dns-cache","status":"publish","type":"post","link":"https:\/\/infinitydomainhosting.com\/kb\/clearing-dns-cache\/","title":{"rendered":"Clearing DNS cache"},"content":{"rendered":"<br \/>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 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-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/infinitydomainhosting.com\/kb\/clearing-dns-cache\/#Clearing_DNS_Cache_Everything_You_Need_to_Know\" >Clearing DNS Cache: Everything You Need to Know<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/infinitydomainhosting.com\/kb\/clearing-dns-cache\/#What_is_DNS_Cache\" >What is DNS Cache?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/infinitydomainhosting.com\/kb\/clearing-dns-cache\/#Why_Clear_DNS_Cache\" >Why Clear DNS Cache?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/infinitydomainhosting.com\/kb\/clearing-dns-cache\/#How_to_Clear_DNS_Cache\" >How to Clear DNS Cache?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/infinitydomainhosting.com\/kb\/clearing-dns-cache\/#Windows\" >Windows:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/infinitydomainhosting.com\/kb\/clearing-dns-cache\/#Mac\" >Mac:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/infinitydomainhosting.com\/kb\/clearing-dns-cache\/#Linux\" >Linux:<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/infinitydomainhosting.com\/kb\/clearing-dns-cache\/#FAQs_About_Clearing_DNS_Cache\" >FAQs About Clearing DNS Cache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/infinitydomainhosting.com\/kb\/clearing-dns-cache\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Clearing_DNS_Cache_Everything_You_Need_to_Know\"><\/span>Clearing DNS Cache: Everything You Need to Know<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The <a href=\"https:\/\/www.a2hosting.com\/kb\/getting-started-guide\/internet-and-networking\/clearing-the-dns-cache-on-your-computer\/\" target=\"_new\" rel=\"noopener\"><strong>Domain Name System (DNS)<\/strong><\/a> is <a href=\"https:\/\/infinitydomainhosting.com\/kb\/the-ultimate-guide-to-amazon-web-hosting-everything-you-need-to-know\/\">a<\/a> crucial component of the internet that translates <a href=\"https:\/\/www.a2hosting.com\/domains\/\" target=\"_new\" rel=\"noopener\"><strong>domain names<\/strong><\/a> into IP addresses, allowing users to access websites and other internet resources. When you visit a <a href=\"https:\/\/www.hostinger.com\/website-builder\" target=\"_new\" rel=\"noopener\"><strong>website<\/strong><\/a>, your computer stores the <a href=\"https:\/\/www.hostinger.com\/tutorials\/what-is-ip-address\" target=\"_new\" rel=\"noopener\"><strong>IP address<\/strong><\/a> of the website in its <a href=\"https:\/\/www.a2hosting.com\/kb\/getting-started-guide\/internet-and-networking\/clearing-the-dns-cache-on-your-computer\/\" target=\"_new\" rel=\"noopener\"><strong>DNS cache<\/strong><\/a> to speed up future visits. However, sometimes this cache can become outdated or corrupted, leading to problems accessing websites. In this article, we will discuss <a href=\"https:\/\/www.hostinger.com\/tutorials\/what-is-dns\" target=\"_new\" rel=\"noopener\"><strong>what DNS<\/strong><\/a> cache is, why it needs to be cleared, and how to clear it. We will also address some commonly asked questions about clearing <a href=\"https:\/\/www.hostinger.com\/tutorials\/what-is-dns\" target=\"_new\" rel=\"noopener\"><strong>DNS<\/strong><\/a> cache.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_is_DNS_Cache\"><\/span><a href=\"https:\/\/hostadvice.com\/blog\/domains\/domain-name-system\/\" target=\"_new\" rel=\"noopener\"><strong>What is DNS<\/strong><\/a> Cache?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>DNS cache is a temporary storage of DNS records that your computer maintains to speed up the process of resolving <a href=\"https:\/\/www.a2hosting.com\/domains\/\" target=\"_new\" rel=\"noopener\"><strong>domain names<\/strong><\/a> to IP addresses. When you visit a website, your computer checks its DNS cache to see if it already has the IP address for that website. If it does, it can access the website more quickly. If it doesn&#8217;t, it has to <a href=\"https:\/\/www.a2hosting.com\/kb\/getting-started-guide\/internet-and-networking\/troubleshooting-dns-with-dig-and-nslookup\/\" target=\"_new\" rel=\"noopener\"><strong>query DNS<\/strong><\/a> servers to get the IP address, which can take a little longer.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-31794\" src=\"http:\/\/infinitydomainhosting.com\/kb\/wp-content\/uploads\/2024\/01\/DNS-Cache.jpg\" alt=\"\" width=\"960\" height=\"640\" srcset=\"https:\/\/infinitydomainhosting.com\/kb\/wp-content\/uploads\/2024\/01\/DNS-Cache.jpg 960w, https:\/\/infinitydomainhosting.com\/kb\/wp-content\/uploads\/2024\/01\/DNS-Cache-300x200.jpg 300w, https:\/\/infinitydomainhosting.com\/kb\/wp-content\/uploads\/2024\/01\/DNS-Cache-768x512.jpg 768w, https:\/\/infinitydomainhosting.com\/kb\/wp-content\/uploads\/2024\/01\/DNS-Cache-585x390.jpg 585w, https:\/\/infinitydomainhosting.com\/kb\/wp-content\/uploads\/2024\/01\/DNS-Cache-263x175.jpg 263w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Why_Clear_DNS_Cache\"><\/span>Why <a href=\"https:\/\/www.a2hosting.com\/kb\/getting-started-guide\/internet-and-networking\/clearing-the-dns-cache-on-your-computer\/\" target=\"_new\" rel=\"noopener\"><strong>Clear DNS Cache<\/strong><\/a>?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>While DNS cache is meant to speed up the process of accessing websites, it can sometimes cause problems if it becomes outdated or corrupted. For example, if a website changes its IP address, your computer may still be trying to access the old IP address from its DNS cache. This can result in the website not loading properly or not loading at all. <a href=\"https:\/\/www.a2hosting.com\/kb\/getting-started-guide\/internet-and-networking\/clearing-the-dns-cache-on-your-computer\/\" target=\"_new\" rel=\"noopener\"><strong>Clearing the DNS cache<\/strong><\/a> can resolve these issues and ensure that your computer is using the most up-to-date IP addresses for websites.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Clear_DNS_Cache\"><\/span><a href=\"https:\/\/www.a2hosting.com\/kb\/getting-started-guide\/internet-and-networking\/clearing-the-dns-cache-on-your-computer\/\" target=\"_new\" rel=\"noopener\"><strong>How to Clear DNS Cache<\/strong><\/a>?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The process of clearing DNS cache varies depending on the operating system you are using. Here are the steps for clearing DNS cache on popular operating systems:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Windows\"><\/span>Windows:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>Open Command Prompt as an administrator.<\/li>\n<li>Type the command &#8220;ipconfig \/flushdns&#8221; and press Enter.<\/li>\n<li>Wait for the confirmation message that the DNS resolver cache has been cleared.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Mac\"><\/span>Mac:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>Open Terminal.<\/li>\n<li>Type the command &#8220;<a href=\"https:\/\/www.hostinger.com\/tutorials\/sudo-and-the-sudoers-file\/\" target=\"_new\" rel=\"noopener\">sudo<\/a> killall -HUP mDNSResponder&#8221; and press Enter.<\/li>\n<li>Enter your password when prompted.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Linux\"><\/span><a href=\"https:\/\/www.hostinger.com\/tutorials\/linux-commands\" target=\"_new\" rel=\"noopener\"><strong>Linux<\/strong><\/a>:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>Open Terminal.<\/li>\n<li>Type the command &#8220;sudo \/etc\/init.d\/nscd restart&#8221; and press Enter.<\/li>\n<li>Wait for the confirmation message that the DNS cache has been cleared.<\/li>\n<\/ol>\n<p>After clearing the DNS cache, it is a good idea to restart your web browser and any applications that rely on internet connectivity to ensure that the changes take effect.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"FAQs_About_Clearing_DNS_Cache\"><\/span>FAQs About <a href=\"https:\/\/www.a2hosting.com\/kb\/getting-started-guide\/internet-and-networking\/clearing-the-dns-cache-on-your-computer\/\" target=\"_new\" rel=\"noopener\"><strong>Clearing DNS Cache<\/strong><\/a><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>Q: Will clearing DNS cache affect my internet speed?<\/strong> A: Clearing DNS cache should not have a significant impact on your internet speed. In fact, it can sometimes improve your internet speed by ensuring that your computer is using the most up-to-date DNS records.<\/p>\n<p><strong>Q: How often should I clear my DNS cache?<\/strong> A: There is no set rule for how often you should clear your DNS cache. In general, you may want to clear it if you are experiencing problems accessing websites or if you suspect that your DNS cache may be outdated or corrupted.<\/p>\n<p><!--KB_CAT_BLOCK--><\/p>\n<figure class=\"kb-cat-placeholder\" style=\"margin:1.75rem 0;display:block;\"><img src=\"https:\/\/infinitydomainhosting.com\/kb\/assets\/img\/cat-general.webp\" alt=\"Clearing DNS cache\" loading=\"lazy\" decoding=\"async\" style=\"max-width:100%;height:auto;display:block;border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,0.12);\" \/><\/figure>\n<p><strong>Q: Will clearing DNS cache delete my browsing history?<\/strong> A: Clearing DNS cache is different from clearing your browsing history. Clearing DNS cache will not delete your browsing history or any other personal data stored on your computer.<\/p>\n<p><strong>Q: Can I <a href=\"https:\/\/www.a2hosting.com\/kb\/getting-started-guide\/internet-and-networking\/clearing-the-dns-cache-on-your-computer\/\" target=\"_new\" rel=\"noopener\">clear DNS<\/a> cache on my router?<\/strong> A: The process of clearing DNS cache on a router varies depending on the make and model of the router. You may need to consult the user manual or contact the manufacturer for specific instructions.<\/p>\n<p><strong>Q: Are there any risks associated with clearing DNS cache?<\/strong> A: Clearing DNS cache is a routine maintenance task and should not pose any significant risks. However, it is always a good idea to back up any important data before making changes to your computer&#8217;s settings.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In conclusion, clearing DNS cache is a simple yet effective way to resolve problems with accessing websites and ensure that your computer is using the most up-to-date DNS records. By following the steps outlined in this article, you can clear DNS cache on your computer and improve your internet browsing experience. If you have any further questions about clearing DNS cache, feel free to consult the FAQs section above for more information.<\/p>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Clearing DNS Cache: Everything You Need to Know The Domain Name System (DNS) is a crucial component of the internet that translates&hellip;<\/p>\n","protected":false},"author":1,"featured_media":31792,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1],"tags":[511,7744,683],"class_list":["post-18587","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","tag-cache","tag-clearing","tag-dns"],"_links":{"self":[{"href":"https:\/\/infinitydomainhosting.com\/kb\/wp-json\/wp\/v2\/posts\/18587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infinitydomainhosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infinitydomainhosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infinitydomainhosting.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/infinitydomainhosting.com\/kb\/wp-json\/wp\/v2\/comments?post=18587"}],"version-history":[{"count":7,"href":"https:\/\/infinitydomainhosting.com\/kb\/wp-json\/wp\/v2\/posts\/18587\/revisions"}],"predecessor-version":[{"id":43805,"href":"https:\/\/infinitydomainhosting.com\/kb\/wp-json\/wp\/v2\/posts\/18587\/revisions\/43805"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/infinitydomainhosting.com\/kb\/wp-json\/wp\/v2\/media\/31792"}],"wp:attachment":[{"href":"https:\/\/infinitydomainhosting.com\/kb\/wp-json\/wp\/v2\/media?parent=18587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infinitydomainhosting.com\/kb\/wp-json\/wp\/v2\/categories?post=18587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infinitydomainhosting.com\/kb\/wp-json\/wp\/v2\/tags?post=18587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}