{"id":606,"date":"2019-11-18T04:38:13","date_gmt":"2019-11-18T04:38:13","guid":{"rendered":"http:\/\/blog.hostinger.io\/hostinger-tutorials\/uncategorized\/networkinghow-to-flush-dns-using-windows\/"},"modified":"2024-12-02T09:54:49","modified_gmt":"2024-12-02T09:54:49","slug":"how-to-flush-dns","status":"publish","type":"post","link":"\/in\/tutorials\/how-to-flush-dns","title":{"rendered":"How to flush DNS: A step-by-step guide for Windows, macOS, Linux, and web browsers"},"content":{"rendered":"<p>Flushing DNS caches is a quick and easy solution to internet issues like inaccessible websites or 404 errors. It is risk-free and has various additional benefits, including improving security.<\/p><p>In this article, we will explain how to flush DNS on various operating systems and web browsers. Before getting into the steps, you will learn what DNS cache is so you understand how the process can benefit your system.<\/p><p>\n\n\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-is-a-dns-cache\">What is a DNS cache?<\/h2><p>When you access a website using its URL, like <strong>https:\/\/hostinger.com\/<\/strong>, the <a href=\"\/in\/tutorials\/what-is-dns\">domain name system<\/a> (DNS) server will tell your web browser how to find the site. It does so by giving various information, including the site&rsquo;s IP address and other DNS records.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"69df3e59594c6\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1024\" height=\"590\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/how-does-dns-work-1024x590.png\" alt=\"How does DNS work\" class=\"wp-image-119398\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/how-does-dns-work-1024x590.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/how-does-dns-work-300x173.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/how-does-dns-work-150x86.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/how-does-dns-work-768x442.png 768w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/how-does-dns-work-1536x884.png 1536w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/how-does-dns-work.png 1605w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Once fetched, details about this URL will remain in your system as a <strong>cache<\/strong>. This enables your web browser to retrieve the information locally when you revisit the website instead of retrieving it from the DNS server again, making the process quicker.<\/p><p>However, this DNS cache might become invalid or corrupted, preventing your web browser from properly resolving a URL into its IP address. In this situation, you must delete the DNS cache to force the browser to fetch fresh information.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-flush-dns-cache-on-different-operating-systems\">How to flush DNS cache on different operating systems<\/h2><p>The steps to flush the DNS cache differ across operating systems. In this section, we will explain how to do so in the three most popular OSes &ndash; <strong>Windows<\/strong>,<strong> macOS<\/strong>, and <strong>Linux<\/strong>.<\/p><h3 class=\"wp-block-heading\" id=\"h-how-to-flush-dns-cache-in-windows-10-and-windows-11\">How to flush DNS cache in Windows 10 and Windows 11<\/h3><p>With Windows, the steps to flush DNS will be similar for most versions, especially the newer ones. Here&rsquo;s how to do so:<\/p><ol class=\"wp-block-list\">\n<li>Click the <strong>Start <\/strong>button and look for <strong>Command Prompt <\/strong>by entering <strong>cmd<\/strong> into the search bar.&nbsp;<\/li>\n\n\n\n<li>Right-click <strong>Command Prompt <\/strong>and select <strong>Run as administrator<\/strong>.&nbsp;<\/li>\n\n\n\n<li>Enter the following flush DNS command:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Ipconfig \/flushdns<\/pre><p>That&rsquo;s it. Your system will automatically delete the stored DNS cache and reset the resolver settings. Once the process is complete, you should see a confirmation message in Command Prompt.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"69df3e5959ef4\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1024\" height=\"531\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/command-prompt-confirms-a-successful-dns-cache-deletion-1024x531.png\" alt=\"Command prompt confirms a successful DNS cache deletion\" class=\"wp-image-119400\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/command-prompt-confirms-a-successful-dns-cache-deletion-1024x531.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/command-prompt-confirms-a-successful-dns-cache-deletion-300x156.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/command-prompt-confirms-a-successful-dns-cache-deletion-150x78.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/command-prompt-confirms-a-successful-dns-cache-deletion-768x398.png 768w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/command-prompt-confirms-a-successful-dns-cache-deletion.png 1460w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>If you encounter an error when running the command, make sure to launch Command Prompt as an administrator. Otherwise, you won&rsquo;t have the necessary permissions to flush the DNS cache.<\/p><h3 class=\"wp-block-heading\" id=\"h-how-to-flush-dns-cache-in-macos\">How to flush DNS cache in macOS<\/h3><p>Flushing the DNS cache in macOS is trickier since it requires different commands depending on the operating system version. However, the general procedure is the same:<\/p><ol class=\"wp-block-list\">\n<li>Click the<strong> magnifying glass <\/strong>icon on the top menu bar. Alternatively, press<strong> Command <\/strong>+ <strong>spacebar<\/strong>.&nbsp;<\/li>\n\n\n\n<li>In the <strong>Spotlight Search<\/strong> menu, find <strong>Terminal<\/strong>. Hit <strong>Enter<\/strong>.&nbsp;<\/li>\n\n\n\n<li>Based on your MacOS version, type the following command to flush the DNS cache:\n<ul class=\"wp-block-list\">\n<li>macOS Big Sur (11), Monterey (12), Ventura (13), Sonoma (14), and Sequoia (15): <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder<\/code><\/li>\n\n\n\n<li>macOS El Capitan (10.11), Sierra (10.12), High Sierra (10.13), Mojave (10.14), or Catalina (10.15): <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">sudo killall -HUP mDNSResponder<\/code><\/li>\n\n\n\n<li>macOS Yosemite (10.10): <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">sudo discoveryutil udnsflushcaches<\/code><\/li>\n\n\n\n<li>macOS Lion (10.7), Mountain Lion (10.8), or Mavericks (10.9): <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">sudo killall -HUP mDNSResponder<\/code><\/li>\n\n\n\n<li>macOS Snow Leopard (10.6): <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">sudo dscacheutil -flushcache<\/code><\/li>\n\n\n\n<li>macOS Leopard (10.5): <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">sudo lookupd -flushcache<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If Terminal asks for authorization, enter your user password. This will grant you the required admin privileges to run the command.<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-how-to-flush-dns-cache-in-linux\">How to flush DNS cache in Linux<\/h3><p>Commands to flush DNS caches in Linux differ depending on your distributions since they might use different DNS services. For example, Ubuntu uses <strong>dnsmasq<\/strong>, while Red Hat Enterprise Linux typically utilizes <strong>NCSD<\/strong>.<\/p><p>If you are unsure which DNS service your system uses, check it by running the following command in Terminal. Replace <strong>dns_service<\/strong> with<strong> dnsmasq<\/strong>, <strong>ncsd<\/strong>, or <strong>bind<\/strong>:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl status dns_service&nbsp;<\/pre><p>Here&rsquo;s the general procedure to flush DNS caches on a Linux system:<\/p><ol class=\"wp-block-list\">\n<li>Pres <strong>Ctrl <\/strong>+<strong> Alt<\/strong> + <strong>T<\/strong> to open Terminal.&nbsp;<\/li>\n\n\n\n<li>Enter these commands according to the DNS service your distribution uses:\n<ul class=\"wp-block-list\">\n<li><strong>Dnsmasq<\/strong>: <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">sudo \/etc\/init.d\/dnsmasq restart<\/code><\/li>\n\n\n\n<li><strong>NCSD<\/strong>: <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">sudo \/etc\/init.d\/nscd restart<\/code><\/li>\n\n\n\n<li><strong>BIND<\/strong>: <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">sudo \/etc\/init.d\/named restart &amp;&amp; sudo rndc restart &amp;&amp; sudo rndc exec<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Enter your account password to authorize the command execution. If you log in as <strong>root<\/strong>, you can skip this step.<\/li>\n<\/ol><p>The DNS service will stop briefly and reboot. If systemctl can&rsquo;t find any of the DNS services, use the following command to flush the cache:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo resolvectl flush-caches<\/pre><h2 class=\"wp-block-heading\" id=\"h-how-to-flush-dns-cache-on-web-browsers\">How to flush DNS cache on web browsers<\/h2><p>Since web browsers typically store their own DNS cache, you might need to flush them separately. Here&rsquo;s how to do so in some of the most popular browsers:<\/p><ol class=\"wp-block-list\">\n<li>Open your web browser.&nbsp;<\/li>\n\n\n\n<li>In the address bar, enter the following address based on your browser:\n<ul class=\"wp-block-list\">\n<li><strong>Google Chrome<\/strong>: <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">chrome:\/\/net-internals\/#dns<\/code><\/li>\n\n\n\n<li><strong>Microsoft Edge<\/strong>: <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">edge:\/\/net-internals\/#dns<\/code>&nbsp;<\/li>\n\n\n\n<li><strong>Firefox<\/strong>: <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">about:networking#dns<\/code><\/li>\n\n\n\n<li><strong>Opera<\/strong>: <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">opera:\/\/net-internals\/#dns<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Press <strong>Enter<\/strong> to open the DNS management page.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"69df3e595a919\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1024\" height=\"422\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/11\/chrome-dns-management-page-1024x422.png\" alt=\"Chrome's DNS management page\" class=\"wp-image-119401\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/chrome-dns-management-page-1024x422.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/chrome-dns-management-page-300x123.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/chrome-dns-management-page-150x62.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/chrome-dns-management-page-768x316.png 768w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/11\/chrome-dns-management-page.png 1460w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Find and click the button that says <strong>Clear host cache <\/strong>or <strong>Clear DNS cache<\/strong>. The name varies depending on your web browser.<\/li>\n<\/ol><p>We&rsquo;re done. Restart your web browser, and it should redownload all the DNS details when you revisit a website.<\/p><p>\n\n\n<div><p class=\"important\"><strong>Important!<\/strong> Safari doesn&rsquo;t have a page for flushing the DNS cache and uses the system-level configuration instead. This means resetting your macOS system&rsquo;s DNS will also flush the web browser&rsquo;s data. <\/p><\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-flush-dns-video-tutorial\">How to flush DNS: Video tutorial<\/h2><figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"How to Flush Your DNS Cache?\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/ymmN0QrHbFg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure><p>\n\n\n\n  <div class=\"youtube-shortcode\">\n    <div class=\"row\">\n      <div class=\"col-7 col-sm-8 d-flex align-items-center\">\n        <img decoding=\"async\" class=\"channel-logo\" src=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/themes\/tutorialsthemeuplift\/public\/images\/youtube-channels\/hostinger-academy.jpg\" alt=\"youtube channel logo\">\n        <div class=\"d-flex flex-column justify-content-between\">\n          <span class=\"slogan d-none d-sm-block\">Subscribe For more educational videos!<\/span>\n          <span class=\"channel-name\">Hostinger Academy<\/span>\n                    <\/div>\n      <\/div>\n      <div class=\"col-5 col-sm-4 d-flex align-items-center justify-content-end\">\n          <a class=\"subscribe-button\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" href=\"http:\/\/www.youtube.com\/channel\/UCbNIC-svDbtUOH2qsLnPQPg?sub_confirmation=1\">\n            <img decoding=\"async\" src=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/themes\/tutorialsthemeuplift\/public\/images\/icons\/youtube.svg\" alt=\"subscribe\">\n            <span>Subscribe<\/span>\n          <\/a>\n      <\/div>\n    <\/div>\n  <\/div>\n\n    \n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-why-flush-dns\">Why flush DNS?<\/h2><p>By default, DNS caches will clear themselves after reaching a certain <strong>time-to-live<\/strong> (TTL) period. In some cases, however, you might need to manually flush them before they expire. Here are some of the reasons:<\/p><ul class=\"wp-block-list\">\n<li><strong>Website issues<\/strong> &ndash; clearing the DNS cache will force your system to fetch new information about the website directly from the DNS server. This process resets potential misconfigurations or corruptions.&nbsp;<\/li>\n\n\n\n<li><strong>DNS spoofing <\/strong>&ndash; cyber criminals might alter information stored in your DNS cache to redirect you to a malicious website. Resetting your DNS ensures your system uses valid records.<\/li>\n\n\n\n<li><strong>Switching DNS server <\/strong>&ndash; when you change your system&rsquo;s DNS provider, a connectivity issue might occur if the old information remains. Flushing the cache clears outdated data from the previous DNS server to prevent conflicts.&nbsp;<\/li>\n\n\n\n<li><strong>Speed up DNS propagation<\/strong> &ndash;&nbsp; if you <a href=\"\/in\/web-hosting\">host a website<\/a>, you must wait for its domain name to fully propagate so that it is accessible online. Flushing DNS forces your system to renew its information, allowing your site to be accessible on your device faster.&nbsp;<\/li>\n<\/ul><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-full\"><a href=\"\/in\/web-hosting\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\" alt=\"Hostinger web hosting banner\" class=\"wp-image-98604\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/11\/Web-hosting_in-text-banner.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/11\/Web-hosting_in-text-banner-300x88.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/11\/Web-hosting_in-text-banner-150x44.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/11\/Web-hosting_in-text-banner-768x225.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Upon visiting a website, your system will save information about its domain as a DNS cache. While useful for speeding up the loading process, you might need to delete this cache since it can get corrupted and cause connectivity issues.<\/p><p>In this article, we have explained how to flush DNS on various operating systems and web browsers. The general procedure is similar, but the command and address differ depending on the software.<\/p><p>To flush your computer&rsquo;s DNS, open your system&rsquo;s command-line interface and enter the DNS deletion commands as an administrator. For browsers, open the DNS management page by entering the address into the address bar and clicking the cache deletion option.<\/p><p>Flushing DNS clears corrupted or outdated data in your system to help resolve connectivity issues. Moreover, it prevents spoofing attacks, in which hackers alter your DNS records to redirect you to malicious websites.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-flush-dns-cache-faq\">How to Flush DNS Cache FAQ<\/h2><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1732634573363\"><h3 class=\"schema-faq-question\">Is It safe to flush the DNS cache?<\/h3> <p class=\"schema-faq-answer\">Yes, flushing the DNS cache is risk-free. All it does is remove invalid or outdated data to force your system to download the new one.&nbsp;<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1732634578170\"><h3 class=\"schema-faq-question\">How often should I flush my DNS cache?<\/h3> <p class=\"schema-faq-answer\">There is no ideal frequency for flushing your system&rsquo;s DNS cache. However, since it is beneficial, we recommend doing it regularly, like weekly.&nbsp;<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1732634584755\"><h3 class=\"schema-faq-question\">Does clearing the DNS cache speed up my internet?<\/h3> <p class=\"schema-faq-answer\">Flushing DNS cache doesn&rsquo;t directly affect your internet speed. However, it can make websites load slightly slower when you reaccess them again since your web browser must fetch the new DNS information.&nbsp;<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1732634591667\"><h3 class=\"schema-faq-question\">Does restart clear DNS cache?<\/h3> <p class=\"schema-faq-answer\">Yes, rebooting your system will flush the DNS cache. However, other DNS caches might still exist in other areas, like your web browser or router.&nbsp;<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Flushing DNS caches is a quick and easy solution to internet issues like inaccessible websites or 404 errors. It is risk-free and has various additional benefits, including improving security. In this article, we will explain how to flush DNS on various operating systems and web browsers. Before getting into the steps, you will learn what [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/in\/tutorials\/how-to-flush-dns\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":337,"featured_media":119405,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"","rank_math_description":"","rank_math_focus_keyword":"","footnotes":""},"categories":[22631,22627],"tags":[],"class_list":["post-606","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-configuration-and-management","category-domains"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-flush-dns","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/flush-dns","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/comment-vider-le-cache-dns","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/como-hacer-un-flush-dns","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/cara-flush-dns","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-flush-dns","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-flush-dns","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-flush-dns","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/agregar-meta-descripcion-wordpress-11","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/como-reparar-error-establishing-a-database-connection-wordpress-2\/","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-hacer-un-flush-dns","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/o-que-e-dominio-4","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-flush-dns","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-flush-dns","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-flush-dns","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-flush-dns","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/users\/337"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/comments?post=606"}],"version-history":[{"count":37,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/606\/revisions"}],"predecessor-version":[{"id":119741,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/606\/revisions\/119741"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/media\/119405"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/media?parent=606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/categories?post=606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/tags?post=606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}