Omar Shamali

Reset DNS Cache on Apple macOS to Fix Unreachable Website

Author: Omar Shamali
Writing Date:

This method will work if you are facing an issue of not reaching a certain website, that could be one of these reasons:

  1. If a website is stuck and unreachable because of DNS change.
  2. Server IP changed.
  3. Domain IP changed.
  4. Domain/host name servers changed.
  5. There are many other reasons!

The solution is quite simple:

Step 1: Go to Terminal application on your mac.

Step 2: Copy and paste this command:

sudo killall -HUP mDNSResponder && echo macOS DNS Cache Reset

Step 3: Check the website, it should work now, that if the local DNS cache is the real problem.


If the website is still unreachable, you might want to check the following:

  1. Firewall device if its on your network, check policies that denies access to related domain or IP.
  2. Firewall software on your computer, try to turn if off for minute to check the website (try on your own risk).
  3. Call your ISP, check if they have cache issue from their end, or other problems.
  4. Check website from a VPN.