{"id":1334,"date":"2008-09-09T12:40:13","date_gmt":"2008-09-09T12:40:13","guid":{"rendered":"https:\/\/www.amitbhawani.com\/blog\/?p=1334"},"modified":"2008-09-10T15:46:54","modified_gmt":"2008-09-10T15:46:54","slug":"flush-dns","status":"publish","type":"post","link":"https:\/\/www.amitbhawani.com\/blog\/flush-dns\/","title":{"rendered":"How to flush DNS in Windows Mac Linux?"},"content":{"rendered":"<p>There may be a number of reasons that you may want to flush the DNS in your computer system. Generally though, DNS is flushed in order to get a new name resolution. At other times you may have registered a new domain name and may be unable to access. Even in this case you may need to flush your DNS. You also just simply flush your DNS in order to get a new entry anytime.<\/p>\n<p>Flushing the DNS can have many benefits. For one thing it definitely speeds up the name resolution especially if multiple lookups are conducted on the same address. This is a common practice while browsing the internet.<\/p>\n<p>At other times you may have a bad DNS entry cached up which will require you to flush it in order to get rid of it. Either that or you can simply wait for a period of twenty four hours after which the cache will be automatically dropped.<\/p>\n<p>The benefits and circumstances when you may need to flush DNS entries are clear. The real question is how do you flush DNS? Well we\u2019ve got the answers right here for you.<\/p>\n<p><strong>How to flush the DNS cache in Linux:<\/strong><br \/>\n1. Start off by restarting the nscd daemon<br \/>\n2. For this you will have to type in \/etc\/rc.d\/init.d\/nscd restart in the terminal of your computer<br \/>\n3. Then all you have to do is run command and your Linux DNS cache will automatically flush.<\/p>\n<p>How to flush DNS cache in Microsoft Windows (Win XP, Win ME, Win 2000)<br \/>\n1. Start and enter the run command where you will have to type cmd<br \/>\n2. In the command prompt you will have to type ipconfig \/flushdns<br \/>\n3. That\u2019s about it because your Window DNS cache has already been flushed.<\/p>\n<p><strong>How to flush the DNS cache in Mac OS X Leopard:<\/strong><br \/>\n1. The first step is to type lookupd-flushcache in the terminal in order to flush the DNS resolver cache.<br \/>\n2. ex: bash-2.05a$ lookupd \u2013flushcache<br \/>\n3. Your DNS cache will be flushed once you run command.<\/p>\n<p><strong>How to flush the DNS cache in Mac OS X:<\/strong><br \/>\n1. The first step to flushing your cache in Mac OS X is to type dscacheutil -flushcache in your terminal.<br \/>\n2. ex: bash-2.05a$ dscacheutil \u2013flushcache<br \/>\n3. Your DNS cache will flush once you run command<\/p>\n<p>For Microsoft Windows you can just use the command ipconfig \/flushdns in order to flush DNS resolver cache &#8211; C:\\&gt;ipconfig \/flushdn. This will be enough to successfully flush the cache. If you wish to view the DNS cache you can use the command ipconfig \/displaydns.<\/p>\n<p>In some cases you may experience problems with DNS caching with Microsoft Windows. In order to resolve this problem you can disable client side DNS Caching. The two commands you can use for this are:<br \/>\nnet stop dnscache<br \/>\nsc servername stop dnscache<\/p>\n<p>In this way you can disable the DNS caching until you reboot your computer for the next time. You can even make the change permanent if you want.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There may be a number of reasons that you may want to flush the DNS in your computer system. Generally though, DNS is flushed in order to get a new name resolution. At other times you may have registered a new domain name and may be unable to access. Even in this case you may [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[228],"tags":[],"class_list":["post-1334","post","type-post","status-publish","format-standard","category-how-to","entry"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":6146,"url":"https:\/\/www.amitbhawani.com\/blog\/how-to-flush-the-dns-cache\/","url_meta":{"origin":1334,"position":0},"title":"How to Flush the DNS Cache","author":"Amit Bhawani","date":"September 29, 2009","format":false,"excerpt":"Domain Name Server (DNS) names are the IP (Internet Protocol) addresses of the servers that have a very large repository of practically all the internet addresses inside their vaults. These servers handle the job of translating the normal plain English Universal Resource Locators (URL\u2019s) into their IP addresses so that\u2026","rel":"","context":"In &quot;How to Guide&quot;","block_context":{"text":"How to Guide","link":"https:\/\/www.amitbhawani.com\/blog\/category\/how-to\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":438,"url":"https:\/\/www.amitbhawani.com\/blog\/solutions-to-websites-not-loading-problems\/","url_meta":{"origin":1334,"position":1},"title":"Solutions to Websites not Loading Problems","author":"Amit Bhawani","date":"May 3, 2008","format":false,"excerpt":"This problem has recently increased a lot and many internet users have recently started complaining about some websites not opening on their computers and here are some solutions for the same. At times some websites like ebay, paypal, or any website stops loading and you get confused what may be\u2026","rel":"","context":"In &quot;Tips &amp; Tweaks&quot;","block_context":{"text":"Tips &amp; Tweaks","link":"https:\/\/www.amitbhawani.com\/blog\/category\/tips-tweaks\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/Wireless-Network-Connection.jpg?fit=369%2C453&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":4815,"url":"https:\/\/www.amitbhawani.com\/blog\/what-is-reverse-dns\/","url_meta":{"origin":1334,"position":2},"title":"Reverse DNS Information &#8211; DNS Lookup Tools","author":"Amit Bhawani","date":"June 18, 2009","format":false,"excerpt":"The Domain Name Servers make Internet Protocol (IP) addresses into human-readable format such as \u201chttp:\/\/xyz.com\u201d. The DNS have a huge repository of all domains, linking them to their characteristic IP address. Thus, when we type in an address in the URL (Universal Resource Locator) bar of any browser, we are\u2026","rel":"","context":"In &quot;What is Guide&quot;","block_context":{"text":"What is Guide","link":"https:\/\/www.amitbhawani.com\/blog\/category\/what-is\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":760,"url":"https:\/\/www.amitbhawani.com\/blog\/microsoft-dns\/","url_meta":{"origin":1334,"position":3},"title":"What is Microsoft DNS","author":"Amit Bhawani","date":"July 25, 2008","format":false,"excerpt":"In Microsoft window operating system the implementations of domain name system are given the name of \u201cMicrosoft DNS\u201d. Two clients and a server are comprised by its derivatives window 2000, windows XP and windows 2003 as the domain name system supports Microsoft windows NT. Ordinary DNS looks up are performed\u2026","rel":"","context":"In &quot;What is Guide&quot;","block_context":{"text":"What is Guide","link":"https:\/\/www.amitbhawani.com\/blog\/category\/what-is\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.amitbhawani.com\/blog\/wp-content\/uploads\/2010\/12\/Microsoft-DNS-Server.gif?fit=386%2C470&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1336,"url":"https:\/\/www.amitbhawani.com\/blog\/public-dns-servers\/","url_meta":{"origin":1334,"position":4},"title":"What are Public DNS servers?","author":"Amit Bhawani","date":"September 11, 2008","format":false,"excerpt":"Public DNS is basically a service provided by different companies relating to the internet. It is basically a way in which users can get a primary as well as a secondary DNS free of charge. All you have to do is ask! The special service makes use of UPS protected\u2026","rel":"","context":"In &quot;Tips &amp; Tweaks&quot;","block_context":{"text":"Tips &amp; Tweaks","link":"https:\/\/www.amitbhawani.com\/blog\/category\/tips-tweaks\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":815,"url":"https:\/\/www.amitbhawani.com\/blog\/reverse-dns\/","url_meta":{"origin":1334,"position":5},"title":"What is The Reverse DNS","author":"Amit Bhawani","date":"July 31, 2008","format":false,"excerpt":"It is a contrast to forward DNS and set up by configuring pointer record in a particular DNS server. The forward DNS uses address records. While registering a domain name with a domain registrar one does have the responsibility for the forward DNS domain. The company that allows you to\u2026","rel":"","context":"In &quot;What is Guide&quot;","block_context":{"text":"What is Guide","link":"https:\/\/www.amitbhawani.com\/blog\/category\/what-is\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/posts\/1334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/comments?post=1334"}],"version-history":[{"count":0,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/posts\/1334\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/media?parent=1334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/categories?post=1334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amitbhawani.com\/blog\/wp-json\/wp\/v2\/tags?post=1334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}