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):-

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

To flush the DNS cache in Linux, restart the nscd daemon:- Continue reading →

…website is still on the old server

I have updated the DNS but still I am getting the site from old server. Is this your problem?

Cause:

This occurs due to propagation time. When you update the DNS it needs up to 72 hours to populate on internet. All ISP uses DNS caching to cache the DNS query results. So, it needs some time to refresh the cache to reflect your changes.

But in your computer you can solve it easily. You can override the cache.  Just follow the steps:

Suppose:

domain = ‘binodon4all.com’

new server’s ip = 219.113.113.43

For Windows:

  • Open the C:\Windows\System32\Drivers\etc\hosts file using notepad
  • Write the following line at the end of the file:
    219.113.113.43      binodon4all.com
  • Save the file
  • Open command prompt. Type
    ipconfig /flushdns
  • Open your browser. Now browse binodon4all.com. You should get site from new server

For Linux & Mac OS:

  • Login as root
  • Open /etc/hosts file typing the following command
    vi /etc/hosts
  • If you find vi command difficult use:
    gedit /etc/hosts
  • At the end of the file add the same line as previous:
    219.113.113.43 binodon4all.com
  • Save the file. Restart your network by:
    service network restart
  • Try browsing binodon4all.com. You should get site from new server.