Your device stores DNS information for recently visited sites in a temporary cache. This speeds up browsing by reducing queries to external DNS servers. When DNS records change, your cached information becomes outdated and causes loading problems.
You will clear your DNS cache to force your device to fetch current DNS records. This fixes loading issues during website development when DNS changes happen frequently.
Windows stores DNS records in a resolver cache. You will use the command prompt to clear this cache and force Windows to query DNS servers for fresh records.
command prompt in the search box. Click Command Prompt when it appears in the results.
ipconfig /flushdns in the command prompt window and press Enter. This clears all DNS records stored in your local cache.
Your Windows DNS cache is now empty. Your device will fetch current DNS records the next time you visit a website.
Ubuntu uses systemd-resolved to manage DNS caching. You will run a command in the terminal to clear cached records and verify the operation completed.
Ctrl+Alt+T or search for Terminal in your applications menu.sudo systemd-resolve --flush-caches and press Enter. This clears all DNS records stored by systemd-resolved.sudo systemd-resolve --statistics to display cache statistics. The current cache size should show zero entries.Your Ubuntu DNS cache is now cleared. The system will query DNS servers for fresh records on your next request.
You cleared your DNS cache to remove outdated DNS records. Your device now fetches current information from DNS servers, fixing loading problems caused by stale cache entries.
Clear your browser cache after flushing DNS to remove all locally stored records. If your site still does not load correctly, check our guide on why you cannot access your site. Our cloud hosting platform handles DNS propagation automatically when you update records.
Launch your website with our reliable cPanel hosting with unlimited bandwidth and expert support.
Get cPanel Hosting