1. Home
  2. Tools
  3. How-To
  4. Networking
  5. Fix the Web: How to Flush Your DNS Cache

Flushing your DNS cache can help to resolve issues with web pages not loading properly or showing outdated information. Here are the steps to flush your DNS cache on a few popular operating systems:

Windows:

  • Open Command Prompt as an administrator.
  • Type β€œipconfig /flushdns” and press Enter.
  • You will see a message that says β€œWindows IP configuration successfully flushed the DNS Resolver Cache.”

MacOS:

  • Open Terminal.
  • Type β€œsudo killall -HUP mDNSResponder” and press Enter.
  • You will be prompted to enter your admin password.
  • Once you enter your password, the DNS cache will be flushed.

Linux:

  • Open Terminal.
  • Type β€œsudo /etc/init.d/nscd restart” and press Enter.
  • You will be prompted to enter your admin password.
  • Once you enter your password, the DNS cache will be flushed.

Ubuntu:

  1. Open a terminal window by pressing β€œCtrl+Alt+T”
  2. Type the following command β€œsudo systemd-resolve –flush-caches” and press enter
  3. You will be prompted to enter your admin password.
  4. Once you enter your password, the DNS cache will be flushed.

Alternatively, you can use the following command to flush the DNS cache:

  1. Open a terminal window by pressing β€œCtrl+Alt+T”
  2. Type the following command β€œsudo /etc/init.d/dns-clean restart” and press enter
  3. You will be prompted to enter your admin password.
  4. Once you enter your password, the DNS cache will be flushed.

Please note that flushing your DNS cache may cause a temporary interruption in your internet connectivity. Also, it’s important to mention that these steps are for Ubuntu specifically, other Linux distros may have different commands to flush the DNS cache.

FacebookTwitterLinkedIn

Thanks for your feedback

2 + 8 =

Read more:

Megaphone

Looking for remote employees to work?

Jobicy is helping companies of all sizes power their business with remote workers.

Start Hiring