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:
- If a website is stuck and unreachable because of DNS change.
- Server IP changed.
- Domain IP changed.
- Domain/host name servers changed.
- 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:
- Firewall device if its on your network, check policies that denies access to related domain or IP.
- Firewall software on your computer, try to turn if off for minute to check the website (try on your own risk).
- Call your ISP, check if they have cache issue from their end, or other problems.
- Check website from a VPN.