Jump to content

How to flush DNS cache in Linux / Windows / Mac


Recommended Posts

How to flush DNS cache in Linux / Windows / Mac
Flush dns to get a new name resolution. Also flush dns cache when you can't access a newly registered domain name. You can simply flush your dns cache anytime to get new entry. So, Flush your dns cache now.

To flush DNS cache in Microsoft Windows (Win XP, Win ME, Win 2000, Win 98):

    - Start -> Run -> type cmd
    - in command prompt, type ipconfig /flushdns
    - Done! You Window DNS cache has just been flush.

How to clear DNS cache in Vista & Windows 7:

1. Click the Microsoft Vista Start logo in the bottom left corner of the screen
2. Click All Programs
3. Click Accessories
4. RIGHT-click on Command Prompt
5. Select Run As Administrator
6. In the command window type the following and then hit enter: ipconfig /flushdns
7. You will see the following confirmation:

Windows IP Configuration
Successfully flushed the DNS Resolver Cache.

How to clear DNS cache in Windows 8, 8.1 and 10:

You need to open an administrative command prompt windows. In Windows 8, to do so, Press Win+C in combination to bring up the 'Charms bar'. In its search box, type cmd. Then, right-click on it and choose 'Run as administrator option. Alternatively you can also open an elevated command prompt from the WinX menu.

Next, type the following and hit enter:

ipconfig /flushdns

You should be able to see a confirmation dialog window: Windows IP Configuration. Successfully flushed the DNS Resolver Cache. 

To flush the DNS cache in Linux, restart the nscd daemon:


    - To restart the nscd daemon, type /etc/rc.d/init.d/nscd restart in your terminal
    - Once you run the command your linux DNS cache will flush.

    On newer versions of Linux you may need to use:

    /etc/init.d/nscd restart

To flush the DNS cache in Mac OS X:

    - type lookupd -flushcache in your terminal to flush the DNS resolver cache.
    ex: bash-2.05a$ lookupd -flushcache
    - Once you run the command your DNS cache (in Mac OS X) will flush.

    Newer versions of MacOS X should use the following command:

    type dscacheutil -flushcache

Link to post
Share on other sites
  • BurkeKnight unpinned and featured this topic
  • 8 months later...
On 11/5/2016 at 5:34 PM, BurkeKnight said:

How to clear DNS cache in Windows 8, 8.1 and 10:

You need to open an administrative command prompt windows. In Windows 8, to do so, Press Win+C in combination to bring up the 'Charms bar'. In its search box, type cmd. Then, right-click on it and choose 'Run as administrator option. Alternatively you can also open an elevated command prompt from the WinX menu.

Next, type the following and hit enter:

ipconfig /flushdns

You should be able to see a confirmation dialog window: Windows IP Configuration. Successfully flushed the DNS Resolver Cache.

For windows I know another method.

-------------------------------------------------------------

First press Win+R to open up Run app(command). 


Then just type in ipconfig /flushdns (remember to add a space before the slash(/) ) then just press enter.

 

If you did everything correctly a black window should pop-up and close immediately.

 

 Hope this helped! If it did leave a like!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...