{"id":34633,"date":"2021-12-28T16:32:23","date_gmt":"2021-12-28T16:32:23","guid":{"rendered":"https:\/\/www.hostduplex.com\/kb\/?post_type=ht_kb&#038;p=34633"},"modified":"2021-12-28T16:32:24","modified_gmt":"2021-12-28T16:32:24","slug":"how-to-flush-dns-cache-on-mac","status":"publish","type":"ht_kb","link":"https:\/\/www.hostduplex.com\/kb\/article\/how-to-flush-dns-cache-on-mac\/","title":{"rendered":"How to flush DNS cache on Mac"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The DNS cache is a temporary database on your computer that stores recent DNS lookups. This enables your browser to resolve these lookups faster, thereby cutting down web page loading times. Overtime, these records can become outdated or corrupted, so clearing your Mac\u2019s DNS cache can help if you&#8217;re having issues connecting to some websites.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Luckily, this process is easy and will only take a minute of your time!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Click the Spotlight search button or use <strong>Command+Space<\/strong> to search for Terminal<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"330\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.31-AM-1024x330.png\" alt=\"\" class=\"wp-image-34637\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.31-AM-1024x330.png 1024w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.31-AM-300x97.png 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.31-AM-768x248.png 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.31-AM-50x16.png 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.31-AM-60x19.png 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.31-AM-100x32.png 100w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.31-AM.png 1507w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You can also navigate to <em>Go > Utilities > Terminal<\/em> or click <em>Applications<\/em>, open the <em>Utilities<\/em> folder and then double-click Terminal<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"917\" height=\"629\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.06.26-AM.png\" alt=\"\" class=\"wp-image-34639\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.06.26-AM.png 917w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.06.26-AM-300x206.png 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.06.26-AM-768x527.png 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.06.26-AM-50x34.png 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.06.26-AM-60x41.png 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.06.26-AM-100x69.png 100w\" sizes=\"auto, (max-width: 917px) 100vw, 917px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2. Once the terminal is open, enter the following command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"710\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.00-AM-1-1024x710.png\" alt=\"\" class=\"wp-image-34641\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.00-AM-1-1024x710.png 1024w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.00-AM-1-300x208.png 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.00-AM-1-768x533.png 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.00-AM-1-50x35.png 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.00-AM-1-60x42.png 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.00-AM-1-100x69.png 100w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.00-AM-1.png 1436w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3. Enter your Mac\u2019s password and then press Enter to clear the DNS cache<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"720\" src=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.08-AM-1-1024x720.png\" alt=\"\" class=\"wp-image-34642\" srcset=\"https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.08-AM-1-1024x720.png 1024w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.08-AM-1-300x211.png 300w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.08-AM-1-768x540.png 768w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.08-AM-1-50x35.png 50w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.08-AM-1-60x42.png 60w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.08-AM-1-100x70.png 100w, https:\/\/www.hostduplex.com\/kb\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-28-at-11.05.08-AM-1.png 1467w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>For older macOS versions<\/strong>:<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>In <strong>macOS El Capitan or newer<\/strong>, run <em>sudo killall -HUP mDNSResponder<\/em><\/li><li>For<strong> macOS Yosemite,<\/strong> enter <em>sudo discoveryutil udnsflushcaches<\/em><\/li><li>In <strong>Mac OS Lion, Mountain Lion <\/strong>and<strong> Mavericks<\/strong>, the command is <em>sudo killall -HUP mDNSResponder<\/em><\/li><li>In <strong>Mac OS Snow Leopard,<\/strong> enter <em>sudo dscacheutil \u2013flushcache<\/em><\/li><li>For <strong>MacOS Leopard<\/strong>, run<em> sudo lookupd \u2013flushcache<\/em><\/li><li>And in <strong>Mac OS Tiger<\/strong>, use <em>lookupd \u2013flushcache<\/em><\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-purple-background-color has-purple-color\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">If you are a Host Duplex customer and still have questions, please open a ticket in the&nbsp;<a href=\"https:\/\/secure.hostduplex.com\/clientarea.php\" target=\"_blank\" rel=\"noopener\">Host Duplex client portal.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The DNS cache is a temporary database on your computer that stores recent DNS lookups. This enables your browser to resolve these lookups faster, thereby cutting down web page loading times. Overtime, these records can become outdated or corrupted, so clearing your Mac\u2019s DNS cache can help if you&#8217;re having&#8230;<\/p>\n","protected":false},"author":2,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[],"ht-kb-tag":[],"class_list":["post-34633","ht_kb","type-ht_kb","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb\/34633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/comments?post=34633"}],"version-history":[{"count":2,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb\/34633\/revisions"}],"predecessor-version":[{"id":34643,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb\/34633\/revisions\/34643"}],"wp:attachment":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/media?parent=34633"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=34633"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=34633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}