1 Star2 Stars3 Stars4 Stars5 Stars (13 votes, average: 5.00 out of 5)

Flushing DNS cache in Windows Mac and Linux

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.

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
    ipconfig /flushdns

    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
    sudo killall -HUP mDNSResponder
    
  5. OSX 10.11.0
    sudo killall -HUP mDNSResponder
    
  6. OSX 10.10
    sudo discoveryutil udnsflushcaches
  7. OSX 10.9
    dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  8. OSX 10.7 – 10.8
    sudo killall -HUP mDNSResponder
  9. OSX 10.5 – 10.6
    sudo dscacheutil -flushcache

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
Please follow and like us:
Flushing DNS cache in Windows Mac and Linux was last modified: December 22nd, 2016 by Maximus Mccullough

Leave a Reply

Your email address will not be published. Required fields are marked *

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