Results 1 to 4 of 4

Thread: How to Clear/Flush DNS cache in Windows / Linux / Mac Machines

  1. #1
    Rsync's Avatar
    Rsync is offline System Administrator(
    Join Date
    Mar 2007

    Thumbs up How to Clear/Flush DNS cache in Windows / Linux / Mac Machines

    A DNS server resolves domain names into IP addresses. So when you request “” for example, the DNS server finds out the address for the domain, and sends your request the right way.

    DNS Cache Problem
    If you continually get DNS errors while trying to brows any site, but the same site on another computer on the same network is working fine. Then this problem is because of the DNS cache of the machine and you need to reload your DNS cache on that machine.

    Following is the process to Clear/flush DNS cache in Windows / Linux / Mac Machines

    To Clear/flush DNS cache in Microsoft Windows.
    Start >> Run >> type cmd
    In command prompt, type
    C:\> ipconfig /flushdns


    In command prompt, type
    C:\> net stop dnscache
    C:\> net start dnscache

    Once you run the command your Window DNS cache will Clear/flush.

    To Clear/flush the DNS cache in Linux, you need to restart the nscd daemon.
    You need login into the shell of your machine and type
    [email protected] [~]# cd /etc/rc.d/init.d
    [email protected] [/etc/rc.d/init.d]# ./nscd restart

    Once you run the command your linux DNS cache will Clear/flush.

    To Clear/flush the DNS cache in Mac OS.
    In your terminal, type
    For Tiger Mac
    $ lookupd -flushcache
    For Leopard Mac
    $ dscacheutil -flushcache

    Once you run the command your DNS cache (in Mac OS) will Clear/flush.

    Last edited by Stan; 07-02-2012 at 11:16.
    Support Team

    SKYPE: john_rodricks

  2. #2
    Marksfish is offline Forum Member
    Join Date
    Oct 2008


    There is a problem with this when runing the command on Vista. I finally found the answer myself today after months of frustration.

    If you go Start/ Programmes/ Accessories and find the command prompt icon. Hover the mouse over and right click, then select run as administrator. You can also make a desktop shortcut and right click / run as administrator from there.

    If you don't run the command as administrator you receive the following error:

    The requested operation requires elevation.


  3. #3
    Rock's Avatar
    Rock is offline Technical Support (
    Join Date
    Oct 2006


    That is one of the good reasons I hate Vista Read further here :
    Rock _a.k.a._ Jack Daniel

    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

  4. #4
    danwall is offline Forum Member
    Join Date
    Sep 2009


    The same thing happens in Windows 7, you can simply click the start menu and type cmd to search for the command prompt, right click and and choose to run as administrator also - don't have to search through the various sub menus.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
About eUKhost
We're a Leeds-based web hosting provider specialising in Linux- and Windows-based hosting solutions now serving over 35,000 customers worldwide. Across our network, we host over 2 million websites in our state-of-the-art data centres in Reading, Maidenhead and Milton Keynes. Find out more.
we're social

Copyright © 2014, 2015. eUKhost Ltd. All rights are reserved.

The opinions or views of users on the forum are those of the author and not of eUKhost Ltd.