Webhosting Blog

Clearing cache with different OS


A lot of times we deal difficulty in accessing a number of URL’s due to corrupted local DNS cache. Following are the steps to clear local machine cache for various operating systems:

A) Windows XP/Windows Vista/Windows 7:

1)  Click on Start >> All Programs >> Accessories.
2)Open Command Prompt.
3) In the Command Prompt window type in the following command:

C:\>ipconfig /flushdns

4) If it displays a message “Successfully flushed the DNS Resolver Cache” It has removed the DNS cache for your local machine now.

B ) Linux:

1) One of the most commonly used DNS caching Linux applications is NSCD (Name Service Caching Daemon).

2)If you have NSCD installed you can clear the local DNS cache by running one of the following commands in  terminal/shell :

a)To Clear local DNS cache for current user.

# nscd -i hosts

b) To Clear local DNS cache for all users.

#nscd -I hosts

C) Mac OS X 10.5.2 and above /Mac OS X Leopard:

1) Click on the Finder icon in your dock >> Open Applications folder.
2) Inside the Applications folder >> click on Utilities >> Terminal.
3)Type the following command in the Terminal:

# dscacheutil -flushcache

D) Mac OS X 10.5.1 and below:

1) Click on the Finder icon in your dock  >> Open  Applications folder.
2)Inside the Applications folder >> click on Utilities >> Terminal.
3 )Type the following command in the Terminal:

# lookupd -flushcache

Advertisements

One response

  1. Pingback: Parse error: syntax error, unexpected T_STRING « vishnulinux

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s