{"id":7888,"date":"2022-10-05T09:42:37","date_gmt":"2022-10-05T09:42:37","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=ht_kb&#038;p=7888"},"modified":"2025-04-09T15:09:04","modified_gmt":"2025-04-09T15:09:04","password":"","slug":"how-to-clear-your-dns-network-cache","status":"publish","type":"docs","link":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-clear-your-dns-network-cache\/","title":{"rendered":"How to Clear Your DNS\/Network Cache"},"content":{"rendered":"\n<p>Computers store DNS lookups on the Operating System&#8217;s cache. This is good as it helps accelarate network perforamnce, which makes your site load faster. <\/p>\n\n\n\n<p>However, if you are actively designing a website, it also means that changes you make may not immediately reflect. To avoid this behaviour, you may want to clear DNS cache.<\/p>\n\n\n\n<p>How you clear your DNS cache depends on the Operating System you use<\/p>\n\n\n\n<p>To clear DNS cache on various Operating Systems, follow these steps:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Windows 7 or Windows 8 or Windows 10<\/h2>\n\n\n\n<p>To clear your DNS cache if you use Windows 7 or 10, perform the following steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Click <em>Start<\/em>.<\/li><li>Enter <code>cmd<\/code> in the <em>Start<\/em> menu search text box.<\/li><li>Right-click <em>Command Prompt<\/em> and select <em>Run as Administrator<\/em>.<\/li><li>Run the following command: <code>ipconfig \/flushdns<\/code><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Ubuntu 20 or Below<\/h2>\n\n\n\n<p>To clear your DNS cache if you use Ubuntu\u00ae, perform the following steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Run the following two commands: <\/li><\/ul>\n\n\n\n<p><code>sudo systemd-resolve --flush-caches<\/code><\/p>\n\n\n\n<p><code>sudo systemd-resolve --statistics<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ubuntu 22<\/h2>\n\n\n\n<p>To clear your DNS cache if you use Ubuntu\u00ae, perform the following steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Run the following two commands: <\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">resolvectl flush-caches<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">resolvectl statistics<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Redhat and CentOS, Fedora<\/h2>\n\n\n\n<p>To clear your DNS cache if you use Redhat, Centos and related perform the following steps:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart dnsmasq.service<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Mac OS 10.10.4<\/h2>\n\n\n\n<p>To clear your DNS cache if you use macOS X version 10.10.4 or above, perform the following steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Open Terminal<\/li><li>Run the following command: <\/li><\/ol>\n\n\n\n<p><code>sudo killall -HUP mDNSResponder<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Mac OS 10.10.1 or Mac OS 10.10.2 or Mac OS 10.10.3<\/h2>\n\n\n\n<p>To clear your DNS cache if you use the above Mac OS perform the following steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Open Terminal<\/li><li>Run the following command: <\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo discoveryutil mdnsflushcache<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Mac OS 10.7 or Mac OS 10.8 or Mac OS 10.9<\/h2>\n\n\n\n<p>To clear your DNS cache if you use the above Mac OS perform the following steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Open Terminal<\/li><li>Run the following command: <\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo killall -HUP mDNSResponder<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Mac OS 10.5 or 10.6 <\/h2>\n\n\n\n<p>To clear your DNS cache if you use the above Mac OS perform the following steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Open Terminal<\/li><li>Run the following command: <\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dscacheutil -flushcache<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Computers store DNS lookups on the Operating System&#8217;s cache. This is good as it helps accelarate network perforamnce, which makes your site load faster. However, if you are actively designing a website, it also means that changes you make may not immediately reflect. To avoid this behaviour, you may want to clear DNS cache. How [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[2140],"doc_tag":[],"class_list":["post-7888","docs","type-docs","status-publish","hentry","doc_category-dns"],"year_month":"2026-07","word_count":316,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"w m","author_nicename":"wm","author_url":"https:\/\/www.truehost.com\/support\/author\/wm\/"},"doc_category_info":[{"term_name":"DNS","term_url":"https:\/\/www.truehost.com\/support\/docs-category\/dns\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Clear Your DNS\/Network Cache -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-clear-your-dns-network-cache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Clear Your DNS\/Network Cache -\" \/>\n<meta property=\"og:description\" content=\"Computers store DNS lookups on the Operating System&#8217;s cache. This is good as it helps accelarate network perforamnce, which makes your site load faster. However, if you are actively designing a website, it also means that changes you make may not immediately reflect. To avoid this behaviour, you may want to clear DNS cache. How [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-clear-your-dns-network-cache\/\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-09T15:09:04+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-clear-your-dns-network-cache\\\/\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-clear-your-dns-network-cache\\\/\",\"name\":\"How to Clear Your DNS\\\/Network Cache -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#website\"},\"datePublished\":\"2022-10-05T09:42:37+00:00\",\"dateModified\":\"2025-04-09T15:09:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-clear-your-dns-network-cache\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-clear-your-dns-network-cache\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/how-to-clear-your-dns-network-cache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Clear Your DNS\\\/Network Cache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Clear Your DNS\/Network Cache -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-clear-your-dns-network-cache\/","og_locale":"en_US","og_type":"article","og_title":"How to Clear Your DNS\/Network Cache -","og_description":"Computers store DNS lookups on the Operating System&#8217;s cache. This is good as it helps accelarate network perforamnce, which makes your site load faster. However, if you are actively designing a website, it also means that changes you make may not immediately reflect. To avoid this behaviour, you may want to clear DNS cache. How [&hellip;]","og_url":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-clear-your-dns-network-cache\/","article_modified_time":"2025-04-09T15:09:04+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-clear-your-dns-network-cache\/","url":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-clear-your-dns-network-cache\/","name":"How to Clear Your DNS\/Network Cache -","isPartOf":{"@id":"https:\/\/www.truehost.com\/support\/#website"},"datePublished":"2022-10-05T09:42:37+00:00","dateModified":"2025-04-09T15:09:04+00:00","breadcrumb":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-clear-your-dns-network-cache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-clear-your-dns-network-cache\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/how-to-clear-your-dns-network-cache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Clear Your DNS\/Network Cache"}]},{"@type":"WebSite","@id":"https:\/\/www.truehost.com\/support\/#website","url":"https:\/\/www.truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/www.truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/www.truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/www.truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/www.truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/docs\/7888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/comments?post=7888"}],"version-history":[{"count":1,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/docs\/7888\/revisions"}],"predecessor-version":[{"id":7889,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/docs\/7888\/revisions\/7889"}],"wp:attachment":[{"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/media?parent=7888"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=7888"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=7888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}