Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Resolve a DNS cache issue
This guide explains how to resolve access errors to your Web Hosting following an IP address change (e.g., server migration).
Preamble
- To save time, your system maintains a lookup table between domain names and IP addresses.
- If the site changes "home" (IP), your computer tries to knock on the old door.
- Clearing the cache forces it to request the new address from the DNS servers.
If your computer retains the old address in memory, clearing the DNS cache allows you to restore the connection.
Clear the DNS cache…
… on Windows
Use the command prompt to refresh your network settings:
- Open the Start menu.
- Type cmd and validate.
- In the black window that opens, type the following command and press Enter:
ipconfig /flushdns
… on macOS
On recent versions of macOS, the procedure is done via the Terminal:
- Open the Terminal (via Spotlight or Applications > Utilities).
- Copy and paste the following command:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder - Enter your session password (it will not be displayed during entry) and validate.
… on Linux
Most modern distributions use systemd-resolved. Open your terminal and run:
sudo resolvectl flush-caches
Note: If you are using an older service, the command sudo systemctl restart nscd is still valid.
Link to this FAQ: