{"id":356,"date":"2014-02-27T17:47:50","date_gmt":"2014-02-27T22:47:50","guid":{"rendered":"http:\/\/underhost.com\/blog\/?p=356"},"modified":"2025-03-15T04:45:01","modified_gmt":"2025-03-15T08:45:01","slug":"how-do-i-flush-a-computers-dns-cache","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/how-do-i-flush-a-computers-dns-cache\/","title":{"rendered":"How to Flush a Computer\u2019s DNS Cache"},"content":{"rendered":"\r\n<p>When you visit a website, your computer stores its DNS information in cache to speed up future visits. However, if the website\u2019s DNS records change, your computer may still try to use outdated information, causing errors. Flushing the DNS cache clears these records and forces your system to retrieve fresh data.<\/p>\r\n\r\n\r\n<h2>How to Flush DNS on Windows<\/h2>\r\n\r\n<p>Follow these simple steps to clear your DNS cache on a Windows computer:<\/p>\r\n\r\n<h3>1. Open Command Prompt<\/h3>\r\n<ul>\r\n<li>Press <strong>Windows + R<\/strong> on your keyboard.<\/li>\r\n<li>Type <code>cmd<\/code> and press <strong>Enter<\/strong> to open the Command Prompt.<\/li>\r\n<\/ul>\r\n\r\n<h3>2. Run the Flush DNS Command<\/h3>\r\n<ul>\r\n<li>In the Command Prompt window, type:<\/li>\r\n<\/ul>\r\n\r\n<blockquote>\r\n<pre><code>ipconfig \/flushdns<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<li>Press <strong>Enter<\/strong>.<\/li>\r\n<li>You should see a confirmation message: <strong>&#8220;Successfully flushed the DNS Resolver Cache.&#8221;<\/strong><\/li>\r\n\r\n\r\n<figure class=\"wp-block-image\">\r\n<img decoding=\"async\" src=\"https:\/\/www.hostmysite.com\/support\/info\/flushdns\/images\/flushdns1.gif\" alt=\"Flush DNS in Windows Command Prompt\" border=\"0\"\/>\r\n<\/figure>\r\n\r\n\r\n<h2>How to Flush DNS on macOS<\/h2>\r\n<p>For Mac users, the process varies slightly depending on the macOS version:<\/p>\r\n\r\n<h3>macOS Ventura and Later<\/h3>\r\n<blockquote>\r\n<pre><code>sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<h3>macOS Monterey, Big Sur, and Catalina<\/h3>\r\n<blockquote>\r\n<pre><code>sudo killall -HUP mDNSResponder<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<h3>macOS Mojave and Older Versions<\/h3>\r\n<blockquote>\r\n<pre><code>sudo dscacheutil -flushcache<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<p>After running the command, enter your Mac\u2019s administrator password if prompted.<\/p>\r\n\r\n<h2>How to Flush DNS on Linux<\/h2>\r\n<p>For most Linux distributions using systemd-resolved, use the following command:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>sudo systemctl restart systemd-resolved<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<p>On older Linux systems with <code>nscd<\/code> installed, use:<\/p>\r\n\r\n<blockquote>\r\n<pre><code>sudo service nscd restart<\/code><\/pre>\r\n<\/blockquote>\r\n\r\n<h2>Why Flush Your DNS Cache?<\/h2>\r\n<ul>\r\n<li><strong>Fix Website Loading Issues:<\/strong> If a website\u2019s DNS has changed, clearing the cache forces your computer to fetch the new IP address.<\/li>\r\n<li><strong>Improve Security:<\/strong> Prevents phishing attacks that exploit outdated DNS records.<\/li>\r\n<li><strong>Resolve Network Problems:<\/strong> Helps fix slow browsing, incorrect website loading, and connection errors.<\/li>\r\n<\/ul>\r\n\r\n<h2>Need Assistance?<\/h2>\r\n<p>If you&#8217;re facing persistent DNS issues, UnderHost\u2019s expert support team is available 24\/7. Contact us via <a href=\"https:\/\/customerpanel.ca\/client\" target=\"_blank\">@CustomerPanel<\/a> for troubleshooting assistance.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Flushing your DNS cache forces your computer to retrieve updated DNS information, resolving connectivity issues and website access problems.<\/p>\n","protected":false},"author":1,"featured_media":4745,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-356","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/comments?post=356"}],"version-history":[{"count":4,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/356\/revisions"}],"predecessor-version":[{"id":5176,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/356\/revisions\/5176"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media\/4745"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}