How to Clear DNS Cache?

Last modified: August 2, 2020
You are here:
Estimated reading time: 1 min

In this documentation, we can check how to clear DNS cache in different operating systems.

 

LINUX

1) Open the terminal.

2) Use the following command to clear DNS cache.

/etc/init.d/nscd restart

Or

service nscd restart

Or

service nscd reload

How to Clear DNS Cache

 

Windows 7

1) Click the ‘Start’ menu.

2) Go to ‘All Programs’.

3) Choose ‘Accessories’ and right click ‘Command Prompt’.

4) Select ‘Run as Administrator’.

5) Run the following command.

ipconfig/flushdns

 

If the command succeeds, you will get the following message.

Windows IP configuration successfully flushed the DNS Resolver Cache.

 

Windows 8

1) Click on the ‘Windows Key’.

2) Right click on the ‘Command Prompt’ and select ‘Run as Administrator’.

3) Run the following command.

ipconfig/flushdns

 

If the command succeeds, you will get the following message.

Windows IP configuration successfully flushed the DNS Resolver Cache.

 

flush DNS cache

 

Mac

1) Open the terminal.

2) Run the following command to clear DNS cache in Mac.

lookup -flushcache

 

That is how we can clear DNS cache in different operating systems.

 

If you need any further help please reach our support department.

 

 

Was this article helpful?
Dislike 0
Views: 6