When you make changes to your domain's DNS records (like pointing your domain to a new server), your computer often stores the old information to help websites load faster. This process, known as caching, can cause you to see the old version of your site even after you have updated the settings in cPanel. Clearing or "flushing" your local DNS cache forces your computer to query the nameservers for the most recent records immediately.

Flushing DNS on Windows

  • Press the Windows Key + R to open the Run dialog box.

  • Type cmd and press Enter to open the Command Prompt.

  • In the command prompt window, type the following command and press Enter: ipconfig /flushdns

  • You should see a confirmation message stating: "Successfully flushed the DNS Resolver Cache."

Flushing DNS on macOS

  • Open Spotlight by pressing Command + Space.

  • Type Terminal and double-click the application to open it.

  • Depending on your version of macOS, type one of the following commands and press Enter:

  • For macOS Monterey and newer (and Big Sur): sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

  • You may be asked to enter your Mac's administrative password. Note that the password characters will not appear on the screen as you type them.

Flushing DNS on Linux (Ubuntu/Debian)

  • Open your terminal by pressing Ctrl + Alt + T.

  • If you are using systemd-resolved (standard on most modern distributions), type the following command and press Enter: sudo systemd-resolve --flush-caches

  • To verify that the cache has been cleared, you can run: sudo systemd-resolve --statistics

Clearing DNS Cache in Google Chrome

  • Sometimes the browser itself maintains a separate DNS cache. To clear this in Google Chrome:

  • Open a new tab and enter the following address in the address bar: chrome://net-internals/#dns

  • Click the button labeled Clear host cache.

Je li Vam ovaj odgovor pomogao? 540 Korisnici koji smatraju članak korisnim (0 Glasovi)