Featured Post

DNS Records

The DNS records are the most important records for a domain to resolve to it’s exact server.Below are some of the important categories of data stored in the DNS : A record : An A record or address record maps a hostname to a 32-bit IPv4 address. AAAA record : An AAAA record or IPv6 address record maps...

Read More

How to flush DNS cache for Windows, Linux or Mac ?

Posted by admin | Posted in Technical Support | Help | Posted on 16-11-2010

0

Many a times it may happen that a bad DNS entry would get cached and it becomes essential to either flush (or clear) the DNS cache to bring things back to normal, or simply hold on until twenty four hours to get dropped from the cache on its own. Instead, there is a way to forcible flush it out from the system.

Here is how you do that :windows-hosting-logo-300x299 How to flush DNS cache for Windows, Linux or Mac ?

For Windows users
In the command prompt you must type the command “ipconfig /flushdns” to flush the DNS resolver cache.

C:\ipconfig /flushdns

For Mac OSX

MacOSX_logo-300x282 How to flush DNS cache for Windows, Linux or Mac ?
In Mac OSX, you need to type the command “dscachetil -flushcache” for flushing the DNS resolver cache.

bash-2.05a$ dscacheutil -flushcache

For Unix and Linux versions/editions

Linux-Logo How to flush DNS cache for Windows, Linux or Mac ?
For Linux, the nscd daemon is responsible for managing the DNS cache. For flushing the DNS cache, you simply need to restart the nscd daemon.
For restarting the nscd daemon, use the command

/etc/rc.d/init.d/nscd restart

Most web hosts offering Virtual Private Server, Cloud Hosting and other Web Hosting UK services would allow you the privileges to flush DNS.

More Resources :

Write a comment