Knowledge base

1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!

Troubleshooting a DNS cache issue

Update 08/03/2026

This guide explains how to resolve access errors to your Web Hosting following an IP address change (server migration, for example).

 

Introduction

  • To save time, your system maintains a table that maps domain names to IP addresses.
  • If the website changes its "location" (IP address), your computer tries to access the old address.
  • Clearing the cache forces the system to request the new address from the DNS servers.

If your computer retains the old address in its memory,clearing the DNS cache can restore the connection.

 

Clear the DNS cache…

 

… on Windows

Use the command prompt to refresh your network settings:

  1. Open the Start menu.
  2. Type cmd and press Enter.
  3. In the black window that opens, type the following command and press Enter: 
    ipconfig /flushdns

 

… on macOS

On recent versions of macOS, the process 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 while typing) 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 commandsudo systemctl restart nscd remains valid.


Has this FAQ been helpful?