Hostwinds Tutorials

Search results for:


Table of Contents


Windows 10
Mac OS (Sonoma, Ventura, Monterey)
Linux

How to Flush Local DNS Cache: Windows | Mac | Linux

Tags: DNS 

Windows 10
Mac OS (Sonoma, Ventura, Monterey)
Linux

Flushing your DNS cache on your local computer can ensure that you're pulling the most current version of a website. In this article, we will review the simplest methods to flush your DNS cache for various operating systems.

Windows 10

  1. Right-click the Windows icon at the bottom left of the screen
  2. Click "Run"
  3. Enter in "cmd"
  4. Once the Windows Command Prompt pops up, type in:
    • ipconfig /flushdns then hit ENTER on your keyboard
  5. If done correctly, you'll see the following message:
    • Windows IP Configuration Successfully flushed the DNS Resolver Cach

Mac OS (Sonoma, Ventura, Monterey)

  1. Open Finder
  2. Hover over Go
  3. Click on Utilities
  4. Click on Terminal
    • A terminal (command prompt) window will open up
  5. Within the command prompt, type in:

    • sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder, then hit ENTER on your keyboard

    Note: You may be asked to enter your password after executing the command

Linux

  1. Open up a command terminal by holding down Ctrl, Alt, T
  2. Depending on your Linux distro, type in the following commands:

    • Ubuntu: sudo systemd-resolve –flush-caches
    • NCSD: sudo /etc/init.d/nscd restart
    • Dnsmasq: sudo /etc/init.d/dnsmasq restart
    • BIND: sudo /etc/init.d/named restart

    Note: You may be asked to enter your password after executing the command

Written by Michael Brower  /  June 23, 2017