{"id":5996,"date":"2026-04-28T12:12:13","date_gmt":"2026-04-28T09:12:13","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=5996"},"modified":"2026-04-28T12:12:14","modified_gmt":"2026-04-28T09:12:14","slug":"flush-dns-cache","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/flush-dns-cache\/","title":{"rendered":"How to Flush DNS Cache in Windows, Linux, and macOS"},"content":{"rendered":"\n<p>Understanding how your computer or phone interacts with the internet is the first step toward fixing any connection issues you may be experiencing.<\/p>\n\n\n\n<p>For example, if your website is fully up and running but you&#8217;re unable to access it from your computer, you&#8217;d know it&#8217;s most likely a DNS cache issue.<\/p>\n\n\n\n<p>Today, we&#8217;ll dig a bit deeper into how it all works, figure out when you need to flush your device&#8217;s DNS cache, how to do it, and what you can expect.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction to DNS Caching<\/h2>\n\n\n\n<p>In simple terms, DNS caching is how your device stores <strong>domain-to-IP mappings<\/strong> to speed up browsing. When you try to open a new domain \u2013 e.g., www.domain.com \u2013 your computer queries the global DNS system and finds out that this domain is hosted at a particular IP address \u2013 123.123.123.123.<\/p>\n\n\n\n<p>That information is stored in the cache in much the same way you&#8217;d store names and phone numbers in an address book. When you need to access domain.com again, your device already knows it must send a request to 123.123.123.123 and goes straight to that IP address.<\/p>\n\n\n\n<p>Skipping the DNS check saves time and speeds up site loading. However, it will only work if the information in the cache is correct. If, for example, you&#8217;ve moved your site from one server to another and the DNS cache still points to the old server, your device won&#8217;t be able to reach your site.<\/p>\n\n\n\n<p>In this case, you&#8217;ll need to renew (or flush) the DNS cache.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">DNS Caching: How Does It Work?<\/h2>\n\n\n\n<p>DNS caching on a personal device occurs at multiple levels to improve efficiency. Here&#8217;s how the entire system works.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Browser cache<\/strong> \u2013 Modern browsers have caching capabilities, and when you enter a domain into your address bar, the browser first checks its cache to see if the domain and its IP address are stored.<\/li>\n\n\n\n<li><strong>Operating system resolver cache<\/strong> \u2013 If there are no relevant entries in the browser cache, the operating system&#8217;s DNS cache is used.<\/li>\n\n\n\n<li><strong>Public\/ISP resolvers<\/strong> \u2013 Your internet service provider uses public resolvers that also cache DNS requests, so your operating system is bound to check with them as well before it proceeds.<\/li>\n<\/ul>\n\n\n\n<p>DNS data is layered, but at every stage, technical configurations determine what is stored and how. Here&#8217;s an overview of the most important factors:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>TTL (Time to Live)<\/strong>: Every DNS record has a time-to-live (TTL) value<strong> <\/strong>that determines how long it remains in the cache before it expires and must be refreshed.<\/li>\n\n\n\n<li><strong>Positive vs Negative Caching<\/strong>: Positive caching saves only successful lookups. If negative caching is enabled, unsuccessful requests are cached as well. If there&#8217;s a temporary server problem and the error message is cached, you may experience connection issues even after the server is fixed due to negative caching.<\/li>\n\n\n\n<li><strong>Encryption<\/strong>: DNS over HTTPS (DoH) or DNS over TLS (DoT) can sometimes bypass traditional OS caching mechanisms by communicating directly with a resolver using encrypted channels.<\/li>\n\n\n\n<li><strong>User Implications<\/strong>: While caching results in faster load times, it can lead to &#8220;stale&#8221; or outdated IPs persisting long after the site has moved, especially if the DNS records are configured with a long TTL.<\/li>\n\n\n\n<li><strong>Edge Cases<\/strong>: DNS caches can be corrupted by malware (a.k.a. DNS poisoning) or experience interference from VPNs and DoH settings.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">When Should You Flush DNS Cache?<\/h2>\n\n\n\n<p>Flushing DNS isn&#8217;t a &#8220;magical button&#8221; that solves all your internet problems. However, in certain scenarios, it may be the only way out. It&#8217;s important to distinguish these cases and act accordingly.<\/p>\n\n\n\n<p>Here&#8217;s when it&#8217;s a good idea to flush cached DNS data:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>After site updates<\/strong>: If your website shows old content after you&#8217;ve made changes to it or its hosting environment, it&#8217;s most likely due to cached DNS data. Deleting them ensures the latest version of your site is available to everyone.<\/li>\n\n\n\n<li><strong>When you encounter connection errors<\/strong>: A correctly configured domain shouldn&#8217;t display an error message like ERR_NAME_NOT_RESOLVED. If you see it and all the DNS records have been properly pointed, the issue may be down to cached data.<\/li>\n\n\n\n<li><strong>When you see problems with redirects<\/strong>: Flushing the DNS cache may also be needed if you modify redirects on your site but don&#8217;t see them take effect.<\/li>\n\n\n\n<li><strong>When you&#8217;ve made changes to your network configuration<\/strong>: If you&#8217;ve moved to a different ISP or VPS provider, you may need to flush cached DNS records in order to ensure everything is working correctly.<\/li>\n\n\n\n<li><strong>If your browser is playing up<\/strong>: When your browser seems &#8220;stuck&#8221; trying to reach a specific domain, it may be down to outdated cache entries.<\/li>\n<\/ul>\n\n\n\n<p>Flushing the DNS cache is not the same as disabling it. After you delete the old data, the caching engine (whether it&#8217;s in your browser, operating system, or at your ISP) will automatically start caching new DNS queries.<\/p>\n\n\n\n<p>It&#8217;s a myth that periodically clearing the cache during routine browsing can somehow improve the overall experience. DNS records are automatically refreshed periodically, so website configuration changes can propagate across the world relatively quickly. At the same time, if you flush the cache frequently, your device will repeatedly send queries to the global DNS system, which can slow page load times.<\/p>\n\n\n\n<p>People also confuse clearing cache with deleting cookies, search history, or saved passwords. This is largely because when you delete browser cache, you usually clear cookies and login credentials from the same interface.&nbsp;<\/p>\n\n\n\n<p>However, the two activities are <strong>completely separate<\/strong>.<\/p>\n\n\n\n<p>One thing you must remember is that <strong>flushing the DNS cache won&#8217;t help in case of server-side issues<\/strong>. It can affect how the domain resolves to the server, but it has no bearing on how the server responds to requests.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step-by-Step Guide to Flushing DNS Cache<\/h2>\n\n\n\n<p>Now that we know when you might need to flush the DNS cache, it&#8217;s time to find out how to do it. We&#8217;ll examine the steps for the three most popular desktop operating systems \u2013 Windows, macOS, and Linux. Although you&#8217;ll need to use the command-line interface in all three cases, you&#8217;ll see that the process isn&#8217;t too complicated.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Windows<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open the command prompt or PowerShell.<\/strong><\/li>\n<\/ol>\n\n\n\n<p>You can find Windows&#8217; command-line interface utilities in the <strong>Start <\/strong>menu. <strong>PowerShell <\/strong>is the more modern and powerful alternative to the traditional <strong>command prompt<\/strong>. Both will work in our case.<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>View current cache. (Optional)<\/strong><\/li>\n<\/ol>\n\n\n\n<p>You can view the currently available entries in your DNS cache with the following command:<\/p>\n\n\n\n<p class=\"alert-orange\">ipconfig \/displaydns<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Execute the flush command.<\/strong><\/li>\n<\/ol>\n\n\n\n<p>The primary command for flushing DNS cache is:<\/p>\n\n\n\n<p class=\"alert-orange\">ipconfig \/flushdns<\/p>\n\n\n\n<p>When it&#8217;s done, Windows will display the following message:<\/p>\n\n\n\n<p class=\"alert-orange\">Windows IP Configuration<br>Successfully flushed the DNS Resolver Cache.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full mpg-gallery\"><img decoding=\"async\" width=\"935\" height=\"397\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/04\/flush-dns-windows.webp\" alt=\"How to Flush DNS Cache in Windows, Linux, and macOS, Windows\" class=\"wp-image-5999\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/04\/flush-dns-windows.webp 935w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/04\/flush-dns-windows-300x127.webp 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/04\/flush-dns-windows-768x326.webp 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li><strong>Full reset. (If needed)<\/strong><\/li>\n<\/ol>\n\n\n\n<p>If flushing the DNS cache doesn&#8217;t work, you can perform a deeper reset. You can release and renew your IP lease. Note: this resets your network adapter, not the DNS cache directly.<\/p>\n\n\n\n<p>ipconfig \/release<\/p>\n\n\n\n<p>ipconfig \/renew<\/p>\n\n\n\n<p>For a true full DNS and network stack reset, also run:<\/p>\n\n\n\n<p>ipconfig \/flushdns<\/p>\n\n\n\n<p>netsh winsock reset<\/p>\n\n\n\n<p>Restart your computer after running these commands.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Linux<\/h3>\n\n\n\n<p>Most modern Linux distributions rely on <em>systemd-resolved<\/em> for local network name resolution. It&#8217;s controlled entirely via the command-line interface, and below are the steps to clear its cache.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open the Terminal.<\/strong><\/li>\n<\/ol>\n\n\n\n<p>Most Linux distributions for personal computers now include a desktop environment, but the Terminal is usually available either as a shortcut or in the main app menu.<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Check the status of the <\/strong><strong><em>systemd-resolved <\/em><\/strong><strong>service.<\/strong><\/li>\n<\/ol>\n\n\n\n<p>To see if your network name resolution service is up and running, you can use:<\/p>\n\n\n\n<p class=\"alert-orange\">$ resolvectl status<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Flush the cache.<\/strong><\/li>\n<\/ol>\n\n\n\n<p>The command for flushing the cache is:<\/p>\n\n\n\n<p class=\"alert-orange\">$ resolvectl flush-caches<\/p>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li><strong>Restart NetworkManager. (If needed)<\/strong><\/li>\n<\/ol>\n\n\n\n<p>If your distribution doesn&#8217;t use <em>systemd-resolved<\/em>, you may need to restart the NetworkManager daemon. This requires root privileges, and the command is:<\/p>\n\n\n\n<p class=\"alert-orange\">$ sudo systemctl restart NetworkManager<\/p>\n\n\n\n<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5. Alternative resolvers (if systemd-resolved is not present)<\/strong><\/p>\n\n\n\n<p>Check which resolver your system uses:<\/p>\n\n\n\n<p>$ systemctl status nscd<\/p>\n\n\n\n<p>$ systemctl status dnsmasq<\/p>\n\n\n\n<p>If your system uses nscd:<\/p>\n\n\n\n<p>$ sudo systemctl restart nscd<\/p>\n\n\n\n<p>If your system uses dnsmasq:<\/p>\n\n\n\n<p>$ sudo systemctl restart dnsmasq<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">macOS<\/h3>\n\n\n\n<p>Unlike Linux, macOS doesn&#8217;t have different distributions, and it relies on a more unified set of utilities. As a result, the steps tend to be more straightforward:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open the Terminal.<\/strong><\/li>\n<\/ol>\n\n\n\n<p>It&#8217;s available in <strong>Applications<\/strong> &gt; <strong>Utilities<\/strong>.<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Enter the flush command.<\/strong><\/li>\n<\/ol>\n\n\n\n<p>Enter the following and press <strong>Enter<\/strong>.<\/p>\n\n\n\n<p class=\"alert-orange\">sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Enter your login data.<\/strong><\/li>\n<\/ol>\n\n\n\n<p>The command above requires root privileges, so you&#8217;ll need to enter your account&#8217;s password.<\/p>\n\n\n\n<p>The command above applies to macOS 10.10.4 (Yosemite) and all later versions through macOS Sequoia (15.x). Earlier versions required different commands.<\/p>\n\n\n\n<p>Here&#8217;s a quick summary of what you need to do depending on your device&#8217;s operating system:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular green-rows\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Operating system<\/strong><\/td><td><strong>Tool<\/strong><\/td><td><strong>Command<\/strong><\/td><\/tr><tr><td>Windows<\/td><td>cmd or PowerShell<\/td><td><em>ipconfig \/flushdns<\/em><\/td><\/tr><tr><td>Linux<\/td><td>Terminal or another command-line utility<\/td><td><em>$ resolvectl flush-caches<\/em><\/td><\/tr><tr><td>macOS<\/td><td>Terminal<\/td><td><em>$ sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How to Flush DNS Cache in Chrome, Firefox, and Edge<\/h2>\n\n\n\n<p>Chrome \/ Edge:<\/p>\n\n\n\n<p>1. Type chrome:\/\/net-internals\/#dns (or edge:\/\/net-internals\/#dns) in the address bar<\/p>\n\n\n\n<p>2. Click &#8220;Clear host cache&#8221;<\/p>\n\n\n\n<p>Firefox:<\/p>\n\n\n\n<p>1. Type about:networking#dns in the address bar<\/p>\n\n\n\n<p>2. Click &#8220;Clear DNS Cache&#8221;<\/p>\n\n\n\n<p class=\"alert-blue\">Note: this clears only the browser&#8217;s DNS cache, not the OS-level cache.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Clearing DNS Cache in Public Resolvers<\/h2>\n\n\n\n<p>If your site still doesn&#8217;t load, the DNS caching issue may lie beyond your local device. It&#8217;s most likely DNS cache generated and stored by a public resolver like Google or Cloudflare. Devices and ISPs use these resolvers to reduce the number of queries to the global DNS system and improve loading speeds.<\/p>\n\n\n\n<p>The problem is, if the information in the global resolver is stale, your browser won&#8217;t be able to reach your website, regardless of whether you clear your local cache.<\/p>\n\n\n\n<p>Fortunately, Google provides a web-based tool for manually purging its cache. Here are the steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Visit the Google Public DNS Cache Flush Tool.<\/strong><\/li>\n<\/ol>\n\n\n\n<p><a href=\"https:\/\/dns.google\/cache\" rel=\"nofollow\">Google&#8217;s public DNS cache flush utility<\/a> is completely free and available to anyone.<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Enter your domain name.<\/strong><\/li>\n<\/ol>\n\n\n\n<p>You can clear the cache for subdomains as well.<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Select the Resource Record type (RR Type).<\/strong><\/li>\n<\/ol>\n\n\n\n<p>A Resource Record Type is a standardized data entry in a domain&#8217;s DNS zone file that specifies how a domain name maps to IP addresses, mail servers, and other network resources.<\/p>\n\n\n\n<p>In our case, you can use the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>A<\/strong> \u2013 Deletes cached data for IPv4 addresses.<\/li>\n\n\n\n<li><strong>AAAA<\/strong> \u2013 Purges IPv6 cache.<\/li>\n\n\n\n<li><strong>CNAME<\/strong> or <strong>ANY<\/strong> \u2013 You can use this for broader cleaning.<\/li>\n<\/ul>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li><strong>Click Flush Cache.<\/strong><\/li>\n<\/ol>\n\n\n\n<p>The process is usually near-instant.<\/p>\n\n\n\n<p>Purging the public cache will resolve connectivity issues not only for you but also for others trying to access your website. There are a couple of limitations, though.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>This only works for Google&#8217;s public DNS resolvers (8.8.8.8 and 8.8.4.4).<\/strong><\/li>\n<\/ul>\n\n\n\n<p>The web utility only affects Google&#8217;s public DNS cache. It won&#8217;t work if your ISP uses Cloudflare or Quad9, for example. You have to rely on the TTL of your DNS records. That&#8217;s why it&#8217;s a good idea to lower TTL values before you migrate a website.<\/p>\n\n\n\n<p>If you use SPanel, doing it is pretty straightforward. You have to log in to SPanel&#8217;s User Interface and go to <strong>DNS Editor<\/strong>. You first see a list of all the resource records set in your domain&#8217;s DNS zone. Next to each of them, there&#8217;s an <strong>Edit<\/strong> button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><img decoding=\"async\" width=\"1024\" height=\"333\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/04\/ttl-spanel-1024x333.webp\" alt=\"How to Flush DNS Cache in Windows, Linux, and macOS, Clearing DNS Cache in Public Resolvers\" class=\"wp-image-6000\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/04\/ttl-spanel-1024x333.webp 1024w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/04\/ttl-spanel-300x98.webp 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/04\/ttl-spanel-768x250.webp 768w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/04\/ttl-spanel.webp 1147w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<p>By default, all DNS records have a TTL of 14,400 seconds (4 hours). However, before a website migration, it&#8217;s recommended to set your TTL to 300 seconds (or 5 minutes). That way, the transfer will be completed more quickly.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>No automation.<\/strong><\/li>\n<\/ul>\n\n\n\n<p>At the moment, there&#8217;s no API allowing you to connect to Google&#8217;s public DNS cache and erase data related to your domain. You have to do it by hand.<\/p>\n\n\n\n<p>Cloudflare also provides a public DNS cache purge tool at:<\/p>\n\n\n\n<p>https:\/\/1.1.1.1\/purge-cache<\/p>\n\n\n\n<p>The process is similar: enter your domain, select the record type, and click Purge Cache. This clears Cloudflare&#8217;s 1.1.1.1 and 1.0.0.1 resolver cache.<\/p>\n\n\n\n<p>Quad9 (9.9.9.9) does not offer a public flush tool \u2014 propagation relies solely on TTL expiry.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Verify Your DNS Cache Flush Worked<\/h2>\n\n\n\n<p>Your first job is to open the website and check whether it works with all the latest changes you&#8217;ve made, with those updates clearly visible. You can also perform a manual lookup using the following command:<\/p>\n\n\n\n<p class=\"alert-orange\">nslookup yourdomain.com<\/p>\n\n\n\n<p>If you don&#8217;t feel like using the command line, you can check how your domain resolves via web-based tools like <a href=\"https:\/\/www.whatsmydns.net\/\" rel=\"nofollow\">What&#8217;s My DNS<\/a> and <a href=\"https:\/\/dnschecker.org\/\" rel=\"nofollow\">DNS Checker<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting Persistent Issues<\/h2>\n\n\n\n<p>If flushing your DNS cache doesn&#8217;t fix the issue, the root cause may be elsewhere. Here are a few things you can check.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Browser extensions<\/strong><\/li>\n<\/ol>\n\n\n\n<p>Some browser extensions interfere with how pages load. By default, all extensions are disabled in incognito (or private browsing) mode, so you can try loading your page through it. Alternatively, you can disable extensions one at a time until you find the culprit.<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Hosts file<\/strong><\/li>\n<\/ol>\n\n\n\n<p>Manual entries into your operating system&#8217;s <strong><em>hosts<\/em><\/strong> file bypass global DNS settings. They&#8217;re usually used during site development, so double-check to ensure you haven&#8217;t forgotten anything.<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>VPN<\/strong><\/li>\n<\/ol>\n\n\n\n<p>VPNs also bypass local OS flushes, so try accessing the website without one and see if it works.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ<\/h2>\n\n\n\n<p><strong>Q: Can I flush the DNS cache for a specific website only?<\/strong><\/p>\n\n\n\n<p><strong>A:<\/strong> On a local OS level, no \u2013 the command clears the entire resolver table. However, you can use Google&#8217;s web tool to flush the DNS cache for a specific domain in their public resolver.<\/p>\n\n\n\n<p><strong>Q: Does flushing affect my bookmarks and passwords?<\/strong><\/p>\n\n\n\n<p><strong>A:<\/strong> No, it doesn&#8217;t. It only affects the temporary table of IP mappings. Your personal data remains intact.<\/p>\n\n\n\n<p><strong>Q: How do I purge Google&#8217;s DNS cache for a subdomain?<\/strong><\/p>\n\n\n\n<p><strong>A:<\/strong> Google&#8217;s DNS cache purging online tool works for both domains and subdomains. The steps are identical.<\/p>\n\n\n\n<p><strong>Q: Why don&#8217;t mobile devices have direct flush commands?<\/strong><\/p>\n\n\n\n<p><strong>A:<\/strong> Most mobile operating systems don&#8217;t have a user-facing command for flushing the DNS cache. However, if you restart the device or simply toggle Airplane Mode on and then off, you&#8217;ll trigger a DNS cache refresh on most platforms. On Android, Chrome users can also visit chrome:\/\/net-internals\/#dns and tap &#8220;Clear host cache.&#8221; On iOS, clearing Safari&#8217;s history and website data achieves the same result.<\/p>\n\n\n\n<script type=\"application\/ld+json\">\n    {\n      \"@context\": \"https:\/\/schema.org\",\n      \"@type\": \"FAQPage\",\n      \"mainEntity\": [{\n        \"@type\": \"Question\",\n        \"name\": \"Can I flush the DNS cache for a specific website only?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"On a local OS level, no \u2013 the command clears the entire resolver table. However, you can use Google's web tool to flush the DNS cache for a specific domain in their public resolver.\"\n        }\n      }, {\n        \"@type\": \"Question\",\n        \"name\": \"Does flushing affect my bookmarks and passwords?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"No, it doesn't. It only affects the temporary table of IP mappings. Your personal data remains intact.\"\n        }\n      },{\n        \"@type\": \"Question\",\n        \"name\": \"How do I purge Google's DNS cache for a subdomain?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"Google's DNS cache purging online tool works for both domains and subdomains. The steps are identical.\"\n        }\n      },{\n        \"@type\": \"Question\",\n        \"name\": \"Why don't mobile devices have direct flush commands?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"Most mobile operating systems don't have a user-facing command for flushing the DNS cache. However, if you restart the device or simply toggle Airplane Mode on and then off, you'll trigger a DNS cache refresh on most platforms. On Android, Chrome users can also visit chrome:\/\/net-internals\/#dns and tap 'Clear host cache.' On iOS, clearing Safari's history and website data achieves the same result.\"\n        }\n      }]\n    }\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Understanding how your computer or phone interacts with the internet is the first step toward fixing any connection issues you may be experiencing. For example, if your website is fully up and running but you&#8217;re unable to access it from your computer, you&#8217;d know it&#8217;s most likely a DNS cache issue. Today, we&#8217;ll dig a [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"How to Flush DNS Cache in Windows, Linux, and macOS | ScalaHosting KB","_seopress_titles_desc":"Step-by-step guide to flushing DNS cache on Windows, Linux, and macOS. Learn what DNS cache is, when to clear it, and the exact commands for each OS.","_seopress_robots_index":"","footnotes":""},"categories":[22],"tags":[],"class_list":["post-5996","post","type-post","status-publish","format-standard","hentry","category-dns"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/5996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=5996"}],"version-history":[{"count":3,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/5996\/revisions"}],"predecessor-version":[{"id":6003,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/5996\/revisions\/6003"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=5996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=5996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=5996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}