How to Clear/Flush DNS cache in Linux/Windows/Mac Os? | JamiiForums | The Home of Great Thinkers

Dismiss Notice
You are browsing this site as a guest. It takes 2 minutes to CREATE AN ACCOUNT and less than 1 minute to LOGIN

How to Clear/Flush DNS cache in Linux/Windows/Mac Os?

Discussion in 'Tech, Gadgets & Science Forum' started by MziziMkavu, Jul 19, 2011.

  1. MziziMkavu

    MziziMkavu JF-Expert Member

    Jul 19, 2011
    Joined: Feb 3, 2009
    Messages: 39,620
    Likes Received: 4,613
    Trophy Points: 280
    How to Clear/Flush DNS cache in Linux/Windows/Mac Os?

    If a website newly registered in internet world, it may not be loaded in your computer. For example, you register for yesterday, still you may not see your web page. This is problem of DNS cache. Your local DNS cache is old one so it won't know the newely available domain names. Sometime you may update the NS records of your domain to point to new hosting service.

    In these case you have to clear or flush cache in your computer.

    How to Flush cache in Windows?
    1. Open Command Prompt(Start->Run , type cmd and hit enter).
    2. In command promt type
      ipconfig /flushdns​
    3. hit enter
    Your DNS cache is cleared now, try to load your new website.

    How to Clear Cache in Linux?
    First of all you have to install nscd . (only 250kb).
    Open terminal and type
    sudo apt-get install nscd ​
    Type this command to restart the DNS cache server in Linux:
    sudo /etc/rc.d/init.d/nscd restart​
    How to Clear Cache in Mac Os?
    Open the Terminal
    Type the following command:
    dscacheutil -flushcache​