{"id":2226,"date":"2013-02-16T22:05:21","date_gmt":"2013-02-16T21:05:21","guid":{"rendered":"http:\/\/t-machine.org\/?p=2226"},"modified":"2013-02-16T22:05:21","modified_gmt":"2013-02-16T21:05:21","slug":"os-x-make-your-mac-load-web-pages-1000x-faster","status":"publish","type":"post","link":"http:\/\/new.t-machine.org\/index.php\/2013\/02\/16\/os-x-make-your-mac-load-web-pages-1000x-faster\/","title":{"rendered":"OS X: Make your Mac load web pages 1000x faster"},"content":{"rendered":"<p>Apple&#8217;s core networking for OS X (Lion, Mountain Lion, etc) is famously poor. One of the (many) unfixed bugs is this:<\/p>\n<blockquote><p>\n&#8220;I go to a webpage (e.g. google.com) and my browser displays a message saying &#8216;Server not Found&#8217;. If I keep hitting Refresh, it never works. If I wait a few minutes and try again, it works&#8221;\n<\/p><\/blockquote>\n<p>This is entirely Apple&#8217;s fault. They aggressively (and incorrectly) cache &#8220;failed&#8221; lookups. And &#8230; because it&#8217;s Apple &#8230; you can&#8217;t turn it off. It&#8217;s been broken for at least 5 years now, which suggests they have no intention of fixing it.<\/p>\n<p>But: you can &#8220;flush&#8221; it. Since it&#8217;s a cache (which are designed to auto-flush anyway), there&#8217;s no harm in doing this.<\/p>\n<h3>Solution: restart Apple&#8217;s DNS cache<\/h3>\n<ol>\n<li>Open a Terminal window\n<li>type: &#8220;sudo killall -HUP mDNSResponder&#8221;\n<ul>\n<li>(you&#8217;ll need your admin password, annoyingly, because you&#8217;re &#8216;forcing&#8217; Apple&#8217;s code to behave itself)<\/li>\n<\/ul>\n<li>Reload your webpage &#8211; works immediately\n<\/ol>\n<p>After the first time, you can repeat the command frequently without typing your password. Simply hit the &#8220;up&#8221; arrow (to re-type previous command) and Return to run it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apple&#8217;s core networking for OS X (Lion, Mountain Lion, etc) is famously poor. One of the (many) unfixed bugs is this: &#8220;I go to a webpage (e.g. google.com) and my browser displays a message saying &#8216;Server not Found&#8217;. If I keep hitting Refresh, it never works. If I wait a few minutes and try again, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[],"_links":{"self":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/posts\/2226"}],"collection":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/comments?post=2226"}],"version-history":[{"count":0,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/posts\/2226\/revisions"}],"wp:attachment":[{"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/media?parent=2226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/categories?post=2226"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/new.t-machine.org\/index.php\/wp-json\/wp\/v2\/tags?post=2226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}