{"id":320,"date":"2016-03-31T15:16:19","date_gmt":"2016-03-31T06:16:19","guid":{"rendered":"http:\/\/www.onepage.co.kr\/wordpress\/?p=320"},"modified":"2016-04-01T00:36:18","modified_gmt":"2016-03-31T15:36:18","slug":"%e2%80%8b-how-to-flush-dns-cache-in-mac-os-x","status":"publish","type":"post","link":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/2016\/03\/31\/%e2%80%8b-how-to-flush-dns-cache-in-mac-os-x\/","title":{"rendered":"\u200b How to Flush DNS Cache in Mac OS X"},"content":{"rendered":"<p><a data-topotext=\"[{&quot;attributes&quot;:{&quot;tombstoned&quot;:false,&quot;uniqueId&quot;:452,&quot;paragraphStyle&quot;:{},&quot;link&quot;:&quot;http:\/\/osxdaily.com\/2008\/03\/21\/how-to-flush-your-dns-cache-in-mac-os-x\/&quot;},&quot;codePoints&quot;:[104,116,116,112,58,47,47,111,115,120,100,97,105,108,121,46,99,111,109,47,50,48,48,56,47,48,51,47,50,49,47,104,111,119,45,116,111,45,102,108,117,115,104,45,121,111,117,114,45,100,110,115,45,99,97,99,104,101,45,105,110,45,109,97,99,45,111,115,45,120,47]}]\">\u200b<\/a><\/p>\n<div><a href=\"http:\/\/osxdaily.com\/2008\/03\/21\/how-to-flush-your-dns-cache-in-mac-os-x\/\">http:\/\/osxdaily.com\/2008\/03\/21\/how-to-flush-your-dns-cache-in-mac-os-x\/<\/a><\/div>\n<div><\/div>\n<div>\n<p>Whether you\u2019re a systems administrator or a web developer, or anything in between, chances are you\u2019ll have to flush your DNS cache every once in a while to get things straightened out server-side, or even just for testing certain configurations.<\/p>\n<p>Flushing your DNS cache in Mac OS X is actually really easy, but there are actually several different commands to use, and you will find the commands are unique to different versions of OS X. We\u2019ve got you covered regardless of what version of Mac OS X you\u2019re running, from OS X 10.10, OS X 10.9, all the way back to 10.4. So find your version of OS X, open your Terminal, and follow the appropriate directions below to get started.<\/p>\n<div>\n<div><ins class=\"adsbygoogle\" data-ad-client=\"ca-pub-7321635426958037\" data-ad-slot=\"4239339108\" data-adsbygoogle-status=\"done\"><ins id=\"aswift_0_expand\"><ins id=\"aswift_0_anchor\"><iframe id=\"aswift_0\" name=\"aswift_0\" width=\"336\" height=\"280\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/ins><\/ins><\/ins><\/div>\n<\/div>\n<p><span id=\"more-271\"><\/span><br \/>\nRemember, each of these commands must be entered into the command line, by way of the Terminal applications (found in \/Applications\/Utilities\/ in all version of Mac OS X). Launch that app first and then you can just copy and paste the commands in if you\u2019d like.<\/p>\n<h3>Clearing DNS Cache in OS X 10.10 Yosemite<\/h3>\n<p>Running the latest version of OS X? Clearing DNS caches in OS X Yosemite has changed again, split into MDNS and UDNS or combined like we\u2019ll use below, here\u2019s the command that is needed:<\/p>\n<p><code>sudo discoveryutil mdnsflushcache;sudo discoveryutil udnsflushcaches;say flushed<\/code><\/p>\n<p>You can <a href=\"http:\/\/osxdaily.com\/2014\/11\/20\/flush-dns-cache-mac-os-x\/\">read much more about resetting and flushing DNS cache in OS X Yosemite here<\/a> if you\u2019re interested.<\/p>\n<h2>Flush DNS in OS X 10.9 Mavericks<\/h2>\n<p>Rere is how to flush the DNS cache in 10.9:<\/p>\n<p><code>dscacheutil -flushcache;sudo killall -HUP mDNSResponder<\/code><\/p>\n<p>You will need to enter the admin password for this task to complete. If you notice, it combines killing mDNSResponder with the standard dscacheutil, making it a two step process to first, flush cache, then reload the DNS handling in OS X so that the changes take effect.<\/p>\n<h2>Flushing DNS Cache in OS X Lion (10.7) and OS X Mountain Lion (10.8)<\/h2>\n<p>Launch Terminal and enter the following command, you will need to enter an administrative password:<br \/>\n<code>sudo killall -HUP mDNSResponder<\/code><br \/>\nNote the dscacheutil still exists in 10.7 and 10.8, but the official method to clear out DNS caches is through killing mDNSResponder. You can also find that process running in Activity Monitor.<\/p>\n<p>One helpful trick if you find yourself flushing the DNS frequently is to setup an alias for that command string in your .bash_profile or in the profile of your shell of choice. A simple bash alias for flushing cache could be this:<\/p>\n<p><code>alias flushdns='dscacheutil -flushcache;sudo killall -HUP mDNSResponder'<\/code><\/p>\n<p>Save that into .bash_profile, then typing \u201cflushdns\u201d would prevent having to use the full command string in the future.<\/p>\n<h2>Flush DNS Cache in Mac OS X 10.5, Mac OS X 10.6<\/h2>\n<p>Launch Terminal and issue the following command:<br \/>\n<code>dscacheutil -flushcache<\/code><br \/>\nAll done, your DNS has been flushed. On a side note, the dscacheutil is interesting in general and worth taking a look at, try the -statistics flag instead for some stats.<\/p>\n<h4>Flush DNS in Mac OS X 10.4 Tiger, &amp; 10.3<\/h4>\n<p>Type the following command in the Terminal:<br \/>\n<code>lookupd -flushcache<\/code><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/osxdaily.com\/images\/macosx.jpg\" alt=\"\" \/>That\u2019s it, that\u2019s all there is to it. Now your DNS settings should be as you intended them to be, which you can easily verify with various networking tools like http, ping, nslookup, traceroute, curl, or whatever else is appropriate to your specific situation.<\/p>\n<p>If you find something isn\u2019t working and DNS does not appear to have changed, verify the version of OS X you\u2019re running and use the appropriate commands for the latest version. If you\u2019re still having problems after that, try a different machine ideally on a different network (like a cell phone) to verify that it\u2019s not an issue with the remote server.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u200b http:\/\/osxdaily.com\/2008\/03\/21\/how-to-flush-your-dns-cache-in-mac-os-x\/ Whether you\u2019re a systems administrator or a web developer, or anything in between, chances are you\u2019ll have to flush your DNS cache every once in a while to get things straightened out server-side, or even just for testing certain configurations. Flushing your DNS cache in Mac OS X is actually really easy, but [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-about-ios"],"_links":{"self":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=320"}],"version-history":[{"count":3,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/320\/revisions"}],"predecessor-version":[{"id":323,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/320\/revisions\/323"}],"wp:attachment":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}