Clear DNS Cache

If you have recently moved your hosting account or changed a web hosting provider, one of the first tasks after this process is to clear your browser and local machine caches.

Depending on your browser and/or workstation, there are several ways to get this done.

How to clear your DNS in macOS® 10.10.4+

To clear your DNS cache if you use macOS X version 10.10.4:

  • Click Applications.
  • Click Utilities.
  • Click Terminal.

    Or simply hit the command + tab, then search for Terminal.

  • Run the following command: sudo killall HUP mDNSResponder

If the command succeeds, the system does not return any output.

How to clear your DNS in macOS 10.10.1, 10.10.2, and 10.10.3

To clear your DNS cache in macOS X version 10.10 through 10.10.3:

  • Click Applications.
  • Click Utilities.
  • Click Terminal.

    Or simply hit the command + tab, then search for Terminal.

  • Run the following command: sudo discoveryutil mdnsflushcache

If the command succeeds, the system does not return any output.

How to clear your DNS in macOS 10.7, 10.8, and 10.9

To clear your DNS cache if you use macOS X version 10.7, 10.8, or 10.9, perform the following steps:

  • Click Applications.
  • Click Utilities.
  • Double-click Terminal.
  • Run the following command: sudo killall HUP mDNSResponder

If the command succeeds, the system does not return any output.

How to clear your DNS in macOS 10.5 and 10.6

To clear your DNS cache if you use macOS X version 10.5 or 10.6:

  • Click Applications.
  • Click Utilities.
  • Double-click Terminal.
  • Run the following command: sudo dscacheutil flushcache

If the command succeeds, the system does not return any output.

How to clear your DNS in ChromeOS

To clear your DNS cache if you use ChromeOS:

  • Open a new Chrome tab.
  • Enter the following address chrome:internals
  • Hit the Enter key.
  • From the menu, select DNS.
  • Click the Clear host cache button.

If the command succeeds, the system will perform any DNS lookups again.

How to clear your DNS in Ubuntu

To clear your DNS cache if you use Ubuntu:

  • Run the following command: sudo systemd flush caches <
  • Run the following command: sudo systemd statistics

If the command succeeds, it will return results with an empty cache.

How to clear your DNS in RHEL distros

To clear your DNS cache if you use CentOS or related Linux releases (for example, CloudLinux™ or AlmaLinux OS), run the following command:

systemctl restart dnsmasq service

If the command succeeds, the system does not return any output.

Please run a web search on the most recent guide on how to clear the browser or local workstation cache using the instructions.

Then revisit the domain.

If you are still seeing the default website page still appearing after clearing the browser cache, contact our support team for assistance.

How to clear your DNS in Windows 8

To clear your DNS cache if you use Windows 8:

  • On your keyboard, press Win+X to open the WinX Menu.
  • Right-click Command Prompt and select Run as Administrator.
  • Run the following command: ipconfig flushdns

If the command succeeds, the system returns the following message:

Windows IP configuration successfully flushed the DNS Resolver Cache

How to clear your DNS in Windows® 7 or 10

To clear your DNS cache if you use Windows 7 or 10:

  • Click Start.
  • Enter cmd in the Start menu search text box.
  • Right-click Command Prompt and select Run as Administrator.
  • Run the following command: ipconfig flushdns

If the command succeeds, the system returns the following message:

Windows IP configuration successfully flushed the DNS Resolver Cache

How to clear your DNS in Windows XP®, 2000, or Vista®

To clear your DNS cache if you use Windows XP, 2000, or Vista:

  • Click Start.
  • On the Start menu, click Run.
  • If you do not see the Run command in Vista, enter run in the Search bar.
  • Run the following command in the Run text box: ipconfig flushdns

If the command succeeds, the system returns the following message:

Successfully flushed the DNS Resolver Cache

  • 0 Users Found This Useful
這篇文章有幫助嗎?

相關文章

Chrome: Bypass “Your connection is not private” Message

Whenever you attempt to visit a website with an invalid security certificate, you may get a...