For Windows XP and Below
•click on the start button
•you will find a run button
•click on it
•enter "CMD" (obviously without quotes)
•a command prompt windows will appear
•enter "ipconfig /flushdns" in it (obviously without quotes)
windows vista and windows seven
•click on the start button
•you will find a text box called start search
•type "CMD" in it (obviously without quotes)
•right click the only result and select run as administrator
•a command prompt windows will appear
•enter "ipconfig /flushdns"in it (obviously without quotes)
Linux
•open a root terminal
•enter the following command "/etc/rc.d/init.d/nscd restart" (obviously without quotes)
Note: For Linux distros such as Ubuntu and fedora and similar distros, use sudo instead
Mac OSX 10.5.1 and below
•open a terminal window
•enter the following command
"lookupd -flushcache" (obviously without quotes)
Mac OSX Leopard and above
•open a terminal window
•enter the following command
"dscacheutil -flushcache" (obviously without quotes)

cybersa

I don't what is this?
Please Explain more for me.
Why to flush a DNS?
Need to Flush my DNS?

mahirh

cybersa wrote:

I don't what is this?
Please Explain more for me.
Why to flush a DNS?
Need to Flush my DNS?

your computer remembers (caches) dns queries in order to speed up connection to the same host-name at a later time but even though it is a good idea, sometimes negative or bad results (eg - host-names change ip addresses while in maintenance to a temporary server showing nothing) also get cached which is apparently bad. so we need to flush or clear this cache in order to maintain communication with the server

menino

For Linux, namely Centos 5.x distro, my ex colleague who used to be the linux administrator, where I work at, used to use a command #named stop and then #named start, and mostly he used to use the command #named restart, to restart the DNS service, which he said would flush the dns as well.

I dont know if the nscd command is the same or not, in linux.

cybersa

mahirh wrote:

cybersa wrote:

I don't what is this?
Please Explain more for me.
Why to flush a DNS?
Need to Flush my DNS?

your computer remembers (caches) dns queries in order to speed up connection to the same host-name at a later time but even though it is a good idea, sometimes negative or bad results (eg - host-names change ip addresses while in maintenance to a temporary server showing nothing) also get cached which is apparently bad. so we need to flush or clear this cache in order to maintain communication with the server

Thanks for your helpful information.

deanhills

Thanks for the great tip mahirh. I'd like to know what other tips you have to get rid of Internet files and History, without deleting those through Internet tools. Quite often when I use the standard Internet Tools to get rid of internet tools, it freezes up. Is there an easier way where you can get rid of the whole lot including cookies like your DNS flush tip?

k_s_baskar

thanks for useful tip. i really like it.

pioneer987

So, this will help me out of my situation?

I am trying to upload my new index.html file which is different from the one I had before on my host.
But after I upload it I refresh the page, but it stays the same.. :/

Peterssidan

pioneer987 wrote:

So, this will help me out of my situation?

I am trying to upload my new index.html file which is different from the one I had before on my host.
But after I upload it I refresh the page, but it stays the same.. :/

No that will not help. The DNS cache is used to lookup the IP of the server, so if you have changed server recently flushing the DNS cache could help. In your case it is probably the browser that cache pages which is something different a different kind of cache.

Marcuzzo

pioneer987 wrote:

So, this will help me out of my situation?

I am trying to upload my new index.html file which is different from the one I had before on my host.
But after I upload it I refresh the page, but it stays the same.. :/

the issue is that your browser keeps loading the cached version of the page instead of pulling in a new one. CTRL+F5 will do the trick

you can set up your browser to clear the cache every time the window is closed.
that way your browser doesn't load the cached page.