Flush DNS

A very common issue you may encounter is when your local DNS resolvers cache a domain name to IP mapping. When you're trying to go to the domain, it's actually pulling up an old IP address (cached on your own computer) instead of looking for a new one and finding the correct record.

This article will give you the steps required to clear your cached DNS records.


Microsoft Windows 8

  1. Close the application you're currently working with, such as an internet browser or email client. 
  2. Press the Windows Logo + R keys together simultaneously. This will cause the Run dialogue window to appear. 
  3. Type cmd in the text box and select OK.
  4. When the black screen appears, type the following command and hit enter:

    ipconfig /flushdns
  5. Restart your application (browser or email client). 

Microsoft Windows Vista and Windows 7

  1. Close the application you're currently working with, such as an internet browser or email client. 
  2. Click the Start orb and follow All Programs > Accessories, look for Command Prompt.
  3. Right click on Command Prompt and select "Run as Administrator"
  4. When the black screen appears, type the following command and hit enter:

    ipconfig /flushdns
  5. Restart your application (browser or email client). 

Microsoft Windows XP

  1. Close the application you're currently working with, such as an internet browser or email client. 
  2. Go to the Start menu and click Run. 
  3. Type cmd in the text box and select OK.
  4. When the black screen appears, type the following command and hit enter:

    ipconfig /flushdns
  5. Restart your application (browser or email client). 

Mac OS X

  1. Close the application you're currently working with, such as an internet browser or email client. 
  2. Navigate to your Applications folder. 
  3. Open Utilities and double click on Terminal. 
  4. Type the following command and hit enter: 

    sudo killall -HUP mDNSResponder

    This command should work on Mac OS X 10.5 (Leopard), 10.6 (Snow Leopard) and 10.7 (Lion). If the above command is not available, you can try the other flush DNS command as follows which should work on Mac OS X 10.4 (Tiger):

    sudo dscacheutil -flushcache

     
  5. Restart your application (browser or email client). 

    Don't worry if either command says something like "Not found", and continue to restart your application. 


Linux

Note: Different distributions and versions of Linux may have slightly different commands due to differences in configuration. One of the commands below will probably work.

  1. Open up a root terminal window (Ctrl+T in Gnome).
  2. Type the following command and hit enter:

    /etc/init.d/nscd restart

    You may need to use sudo depending on your installation instead:

    sudo /etc/init.d/nscd restart

    Some distributions support this command:

    sudo /etc/init.d/dns-clean start

    Or support this command:

    sudo service nscd restart

    Some installations may have NSDS located in another directory, like the following example. You may need to locate where it is installed to be able to execute the correct command.

    /etc/rc.d/init.d/nscd restart

  3. Restart your application (browser or email client).

Was this answer helpful?

Related Articles

Why didn't my email get delivered, where did my email go, email problems, email bounce, or email daemon?
Using cpanel, Technical Analysts will get asked these questions many times. Unfortunately there...
ICANN Domain Ownership Verification Email
Changes that have occurred within the Registrars Accreditation Agreement (RAA- Registrar...
How to test your website on Ionblade's server with your computers "hosts" file
Why Change the Hosts File? Changing your hosts file is a temporary measure to preview your...