1. Home
  2. Client Area
  3. Domains
  4. How to Clear the DNS Cache on various Operating Systems
  1. Home
  2. Hosting
  3. Problem Solving
  4. How to Clear the DNS Cache on various Operating Systems

How to Clear the DNS Cache on various Operating Systems

This article explains how to clear the DNS Cache of a variety of operating systems. This is a useful tool to sometimes refresh your DNS cache when you have updated your DNS zone.

Windows 8 and 10

  1. Press the ⊞ + X (Windows key) to open the WinX Menu.

  2. Click on the Windows Powershell (Admin)
  3. Click Yes to the UAC that pops up.

  4. In the command line, type the following: ipconfig /flushdns

  5. If the command was successful you will see

    Windows IP configuration successfully flushed the DNS Resolver Cache.

If the message above appears, it means you have flushed the DNS. Please note that this does not always resolve DNS issues like when pinging a website expecting an updated IP address, if it does not and you are certain you have updated the DNS Zone, you will need to wait until the ISP resolvers update which happens daily.

Windows 7

  1. Click the Start button, in the taskbar (bottom-left)
  2. Click the Run button on the right (shown in the picture below)

  3. A dialog box will open (see picture below), in the box type cmd
    and hit the OK button

  4. In the command line we want to write the following command ipconfig /flushdns and then we hit the Enter key.

  5. If the command was successful you will see

    Successfully flushed the DNS Resolver Cache.

If the message above appears, it means you have flushed the DNS. Please note that this does not always resolve DNS issues like when pinging a website expecting an updated IP address, if it does not and you are certain you have updated the DNS Zone, you will need to wait until the ISP resolvers update which happens daily.

Windows XP, 2000 or Vista

Please review Windows 7 above, as it will apply to previous versions down to Windows XP.

macOS (Monterey, Big Sur & other flavors)

  1. Click the Spotlight search button or use Command + Space to do a search

  2. Type terminal in the search bar and locate the terminal icon and click it to open up the terminal (shown in the picture below)

  3. Once you got the terminal open, you will type the following command for various Mac flavors

    Monterey & Big Sur:
    sudo dscacheutil - flashcache; sudo killall -HUP mDNSResponder

    After hitting enter, you are asked to insert your password, which you do to execute this command.

    El Capitan and newer: sudo killall -HUP mDNSResponder
    Yosemite: sudo discoveryutil udnsflushcaches
    Lion, Mountain Lion, Mavericks: sudo killall -HUP mDNSResponder
    Snow Leopard: sudo dscacheutil -flushcache
    Leopard: sudo lookupd -flushcache
    Tiger: lookupd -flushdcache

If the message above appears, it means you have flushed the DNS. Please note that this does not always resolve DNS issues like when pinging a website expecting an updated IP address, if it does not and you are certain you have updated the DNS Zone, you will need to wait until the ISP resolvers update which happens daily.

Not a customer? Did you like this knowledgebase article?
If you did like this knowledgebase article and are not currently a customer but are looking for a trusted offshore host, feel free to browse what we have to offer over at OrangeWebsite. We have products that fit everyone from individuals to small, medium, and big-sized businesses. We just might be what you are looking for.

Updated on July 29, 2024
Was this article helpful?

Related Articles