Flushing DNS cache in Windows Mac and Linux

I have spoke about clearing your browser cache in previous articles but if you are still having problems seeing changes on your website there is one more thing that you may want to try if things are still quirky. That would be flushing the DNS cache on your computer.  Although this may look scary it is a very simple process.

What does flushing DNS do?

DNS is an acronym for Domain Name System. This function converts a domain name like a1websitepro.com to a number which is an IP address like 208.191.222  and stores it as a number. So when you look up the website that you were checking out before your computer may be showing you an older version that is cached on your computer.

This is especially true if a particular website changed servers and now has a new IP address.

Flushing the DNS on your computer will clear this record and show you the recent changes on your website. Make sure that you do the previous steps as well that I outlined in this article How To Clear Cache Or Browsing History Tutorial.

Only cool people share!

Flushing DNS on Windows OS

  1. Go to Start
  2. Type in CMD in the search
  3. Right click and select “Run As Administrator”
  4. You will see a black box pop up it will say something like c:\Windows\system32>
  5. Click beside this line and type

    [code]ipconfig /flushdns[/code]

    there is a space between ipconfig and the slash “/”

  6. Hit enter
  7. If you have done this successfully you will see a message that says “Successfully flushed the DNS Resolver Cache

Flushing DNS on a Mac

  1. Go to search and type in Terminal
  2. Click on Terminal.
  3. Depending on what version of Mac you are using type in the command for your version.
  4. macOS Sierra 10.12.0

    [code]
    sudo killall -HUP mDNSResponder
    [/code]

  5. OSX 10.11.0

    [code]
    sudo killall -HUP mDNSResponder
    [/code]

  6. OSX 10.10

    [code]sudo discoveryutil udnsflushcaches[/code]

  7. OSX 10.9

    [code]dscacheutil -flushcache; sudo killall -HUP mDNSResponder[/code]

  8. OSX 10.7 – 10.8

    [code]sudo killall -HUP mDNSResponder[/code]

  9. OSX 10.5 – 10.6

    [code]sudo dscacheutil -flushcache[/code]

Flushing DNS on a Linux

This will depend on what version of Linux you are running. Here are the codes.

sync; echo 3 | sudo tee /proc/sys/vm/drop_caches
/etc/init.d/named restart
/etc/init.d/nscd restart

Flushing DNS cache in Windows Mac and Linux was last modified: December 22nd, 2016 by Maximus Mccullough
Flushing-DNS-cache-in-Windows-Mac-and-Linux

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.