{"id":2557,"date":"2020-06-17T13:35:06","date_gmt":"2020-06-17T13:35:06","guid":{"rendered":"https:\/\/www.arzhost.com\/?p=1564"},"modified":"2025-09-23T14:41:06","modified_gmt":"2025-09-23T09:41:06","slug":"how-to-clear-dns-cache-on-mac","status":"publish","type":"post","link":"https:\/\/arzhost.com\/blogs\/how-to-clear-dns-cache-on-mac\/","title":{"rendered":"How to Clear DNS Cache On Mac &#8211; MacOS Clear DNS Cache"},"content":{"rendered":"<p>Today here at Arzhost we learn How to Clear DNS Cache On Mac? DNS (Domain Name System) is a temporary memory used by the operating systems and web browsers to store the information of sites visited recently. This information is saved by using the IP address of the website so that it can load in low time on the next visit.<\/p>\n<p>Sometimes this information got corrupted due to malware attacks or any other reason. Therefore, the next time user tries to visit any site, instead of referring to the right side, it takes the site to some other site.<\/p>\n<p>For example, if you visit www.example.com before and later on after the information got corrupted. If you enter www.example.com in the address bar; it will take you to some other malicious site that is merged by the virus.<\/p>\n<p>Therefore, it is essential to flush the DNS cache to avoid the problem and reach the right site. Some users even don\u2019t know how to clear the DNS cache. It is a simple process, and anyone can do it without any technical knowledge.<\/p>\n<p>In this article, we will discuss flushing the DNS cache on Mac.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_74 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:\/\/arzhost.com\/blogs\/how-to-clear-dns-cache-on-mac\/#How_To_Flush_DNS_Cache_On_Mac\" >How To Flush DNS Cache On Mac<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/arzhost.com\/blogs\/how-to-clear-dns-cache-on-mac\/#1_For_macOS_Yosemite_1010\" >1: For macOS Yosemite (10.10)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/arzhost.com\/blogs\/how-to-clear-dns-cache-on-mac\/#2_For_Mountain_Lion_108_macOS_Lion_107_and_Mavericks_109\" >2: For Mountain Lion (10.8), macOS Lion (10.7), and Mavericks (10.9)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/arzhost.com\/blogs\/how-to-clear-dns-cache-on-mac\/#3_For_macOS_Snow_Leopard_106\" >3: For macOS Snow Leopard (10.6)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/arzhost.com\/blogs\/how-to-clear-dns-cache-on-mac\/#4_For_macOS_Leopard_105\" >4: For macOS Leopard (10.5)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/arzhost.com\/blogs\/how-to-clear-dns-cache-on-mac\/#5_For_Tiger_104\" >5: For Tiger (10.4)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/arzhost.com\/blogs\/how-to-clear-dns-cache-on-mac\/#How_To_Clear_DNS_Cache_On_Linux\" >How To Clear DNS Cache On Linux?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/arzhost.com\/blogs\/how-to-clear-dns-cache-on-mac\/#Clear_DNS_Cache_in_Ubuntu\" >Clear DNS Cache in Ubuntu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/arzhost.com\/blogs\/how-to-clear-dns-cache-on-mac\/#Other_Distributions_of_Clear_DNS_Cache\" >Other Distributions of Clear DNS Cache<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"How_To_Flush_DNS_Cache_On_Mac\"><\/span><strong>How To Flush DNS Cache On Mac<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>It is easy to <strong>flush the DNS cache on Mac<\/strong>, but it is essential to know about the Mac OS and the version of OS. Every OS system and even versions use different command lines to flush the memory.<\/p>\n<p><a href=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-flush-dns-cache-on-mac-1.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone  wp-image-13660\" title=\"how to flush dns cache on mac\" src=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-flush-dns-cache-on-mac-1-300x157.jpg\" alt=\"how to flush dns cache on mac\" width=\"730\" height=\"382\" srcset=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-flush-dns-cache-on-mac-1-300x157.jpg 300w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-flush-dns-cache-on-mac-1-1024x536.jpg 1024w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-flush-dns-cache-on-mac-1-768x402.jpg 768w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-flush-dns-cache-on-mac-1.jpg 1200w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/a><\/p>\n<p>If you don\u2019t know about the OS or version of OS, then follow the below-mentioned steps to find it:<\/p>\n<ol>\n<li>Click on the apple icon on the left top corner of the Mac<\/li>\n<li>Click on \u201cAbout this Mac\u201d<\/li>\n<\/ol>\n<p>It displays the information about Mac OS and the version of OS as well.<\/p>\n<p>After getting information about OS and version, follow the simple below-mentioned steps.<\/p>\n<p><strong>Step # 1,<\/strong><\/p>\n<p>Select Go in the menu bar on the desktop Mac<\/p>\n<p><strong>Step # 2,<\/strong><\/p>\n<p>Select Utilities in the list<\/p>\n<p><strong>Step # 3,<\/strong><\/p>\n<p>Run the command (Every OS and version has separate command, we will mention all the commands in the below section)<\/p>\n<p><strong>Step # 4,<\/strong><\/p>\n<p>Click on return, enter the password, and click on return again.<\/p>\n<p>It will clear the memory.<\/p>\n<p>Following are the commands to run for different OS and versions:<\/p>\n<h3><strong>For Sierra (10.12), macOS El Capitan (10.11), Mojave (10.14), High Sierra (10.13), and Catalina (10.15)<\/strong><\/h3>\n<p><em><code>sudo killall -HUP mDNSResponder<\/code><\/em><\/p>\n<h2><span class=\"ez-toc-section\" id=\"1_For_macOS_Yosemite_1010\"><\/span><strong>1: For macOS Yosemite (10.10)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><em><code>sudo discovery until udnsflushcaches<\/code><\/em><\/p>\n<h2><span class=\"ez-toc-section\" id=\"2_For_Mountain_Lion_108_macOS_Lion_107_and_Mavericks_109\"><\/span><strong>2: For Mountain Lion (10.8), macOS Lion (10.7), and Mavericks (10.9)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><em><code>sudo killall -HUP mDNSResponder<\/code><\/em><\/p>\n<h2><span class=\"ez-toc-section\" id=\"3_For_macOS_Snow_Leopard_106\"><\/span><strong>3: For macOS Snow Leopard (10.6)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><em><code>sudo dscacheutil -flushcache<\/code><\/em><\/p>\n<h2><span class=\"ez-toc-section\" id=\"4_For_macOS_Leopard_105\"><\/span><strong>4: For macOS Leopard (10.5)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><em><code>sudo lookupd -flushcache<\/code><\/em><\/p>\n<h2><span class=\"ez-toc-section\" id=\"5_For_Tiger_104\"><\/span><strong>5: For Tiger (10.4)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><em><code>lookupd -flushcache<\/code><\/em><\/p>\n<p>After you <strong>clear the DNS cache on Mac<\/strong>, you can hear the voice note that confirms that memory is cleared now.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_To_Clear_DNS_Cache_On_Linux\"><\/span><strong>How To Clear DNS Cache On Linux?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a href=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-clear-dns-cache-on-linux-1.jpg\"><img decoding=\"async\" class=\"alignnone  wp-image-13661\" title=\"how to clear dns cache on linux\" src=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-clear-dns-cache-on-linux-1-300x157.jpg\" alt=\"how to clear dns cache on linux\" width=\"730\" height=\"382\" srcset=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-clear-dns-cache-on-linux-1-300x157.jpg 300w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-clear-dns-cache-on-linux-1-1024x536.jpg 1024w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-clear-dns-cache-on-linux-1-768x402.jpg 768w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/how-to-clear-dns-cache-on-linux-1.jpg 1200w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/a><\/p>\n<p>The process of clearing the DNS cache is similar to that of Mac. You can follow the below-mentioned steps to complete the process.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Clear_DNS_Cache_in_Ubuntu\"><\/span><strong>Clear DNS Cache in Ubuntu<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Linux also uses a terminal command line to clear the DNS cache.<\/p>\n<p><strong>Step # 1,<\/strong><\/p>\n<p>Click on activities on the left top corner of the desktop<\/p>\n<p><strong>Step # 2,<\/strong><\/p>\n<p>A search bar appears after clicking on activities. Type \u201cterminal\u201d in the search bar and hit the enter button to launch the program.<\/p>\n<p><strong>Step # 3,<\/strong><\/p>\n<p>Enter the following command and press enter<\/p>\n<p><em><code>sudo system-resolve --flush caches<\/code><\/em><\/p>\n<p><strong>Step # 4,<\/strong><\/p>\n<p>Enter the password and hit the finish button to execute the command.<\/p>\n<p>The above process clears the DNS cache.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Other_Distributions_of_Clear_DNS_Cache\"><\/span><strong>Other Distributions of Clear DNS Cache<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a href=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/other-distribution-of-clear-dns-cache.jpg\"><img decoding=\"async\" class=\"alignnone  wp-image-13663\" title=\"other distribution of clear dns cache\" src=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/other-distribution-of-clear-dns-cache-300x157.jpg\" alt=\"other distribution of clear dns cache\" width=\"730\" height=\"382\" srcset=\"https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/other-distribution-of-clear-dns-cache-300x157.jpg 300w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/other-distribution-of-clear-dns-cache-1024x536.jpg 1024w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/other-distribution-of-clear-dns-cache-768x402.jpg 768w, https:\/\/arzhost.com\/blogs\/wp-content\/uploads\/2025\/09\/other-distribution-of-clear-dns-cache.jpg 1200w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/a><\/p>\n<p>However, other distributions are also available on Linux besides Ubuntu; you can use the following command to clear the DNS cache.<\/p>\n<p>Just open the command-line interface, as mentioned above, and enter the following line.<\/p>\n<p><em><code>sudo \/etc\/init.d\/dns-clean start<\/code><\/em><\/p>\n<p>After the <a href=\"https:\/\/www.arzhost.com\" target=\"_blank\" rel=\"noopener noreferrer\">execution of the command<\/a>, you can make the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Domain_Name_System\" target=\"_blank\" rel=\"noopener\">DNS<\/a> cache clear.<\/p>\n<h3><strong>Conclusion<\/strong><\/h3>\n<p>The flushing of the DNS cache is essential to resolve the data corruption problems. It is a simple process, and you can quickly execute the process even if you are new to troubleshooting.<\/p>\n<p>Although it is simple to complete the process, you need to know about the OS and version to complete the process. Because, the correct use of command depends on the OS and version, if you use the wrong command, you will face the same problem.<\/p>\n<p>Hopefully, you like the above discussion and get a lot of benefit from it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today here at Arzhost we learn How to Clear DNS Cache On Mac? DNS (Domain Name System) is a temporary memory used by the operating systems and web browsers to store the information of sites visited recently. This information is saved by using the IP address of the website so that it can load in [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":7767,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,21,32,15],"tags":[],"table_tags":[],"class_list":["post-2557","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","category-buisness","category-php","category-wordpress"],"_links":{"self":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/2557","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/comments?post=2557"}],"version-history":[{"count":5,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/2557\/revisions"}],"predecessor-version":[{"id":13664,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/posts\/2557\/revisions\/13664"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media\/7767"}],"wp:attachment":[{"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/media?parent=2557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/categories?post=2557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/tags?post=2557"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/arzhost.com\/blogs\/wp-json\/wp\/v2\/table_tags?post=2557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}