1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Resolve a DNS cache issue
This guide explains how to resolve issues that may occur with a Web Hosting if the latter has undergone modifications at the IP address level (for example, a server move) and your computer retains the old position in its DNS cache.
Flush the DNS cache...
When you visit a website, your computer stores a local association between the domain name and its IP address in the DNS cache. This speeds up the DNS resolution process for future visits to the same site, as the computer can avoid re-consulting the DNS servers to obtain the IP address.
By flushing the DNS cache, you force your computer to query the DNS servers again to obtain the latest up-to-date information on the IP addresses of the sites you visit.
... on Windows
Run the following command from a Terminal
type application (command line interface, CLI / Command Line Interface
) on your device. Example:
- Open the Start menu.
- Type cmd.
- In the search results, click on Command Prompt.
- Run the command
ipconfig /flushdns
.
... on macOS
Run the following command from a Terminal
type application (command line interface, CLI / Command Line Interface
) on your device:
- Run the command
lookupd -flushcache
(in case of failure:dscacheutil -flushcache
).
... on Linux
Run the following command from a Terminal
type application (command line interface, CLI / Command Line Interface
) on your device:
- Run the command
sudo systemctl restart nscd
orsudo /etc/init.d/nscd restart
to restart nscd.