Clear/Flush DNS cache on Windows Mac and Linux

how to setup and configure simple dns server in debian linux Clear/Flush DNS cache on Windows Mac and LinuxBeing a server administrator I have to deal with a hell lot of ip address and domain names. One of the major problem that I face while configuring a server is sometimes I have to change ip addresses to different domain names for certain purposes and when you go to test if you have successfully established a connection or not the computer gives you an error just because it still has that old ip address in the memory and is constantly trying to connect to a dead ip.

This might be a useful feature for average users who visit Facebook and YouTube dozen of times a day as it reduces the time the browser takes to download pages from the servers of the websites by eliminating the need for a DNS server by caching the most visited url.

So if you are a server admin like me or are a newbie in this field and are facing the same problem clearing/flushing your DNS cache may do your job.

To clear dns in windows: Go to All Programs -> Accessories -> Command Prompt or Go to Run and type cmd. Once in there type

ipconfig /flushdns

Mac and Linux both being UNIX based system have the same method to do this.

For Mac go to Applications -> Terminal

For Linux press Alt+F2 and type in gnome-terminal


Then give the command

dscacheutil -flushcache

This will clear all your DNS cache and should solve your problem If not have a look at your DNS server.

Ashmeet Singh

I have just passed class 12 and am looking forward to making it into a good college. I have also been the writer of many blogs such as TechnoDesi,NewtrojansBlog,GammersLane etc. and this blog is my new endeavour in the field of technology.

You may also like...

5 Responses

  1. Why use Hostgator Web Hosting to host your website.

    The very thing that is magnetizing is that Hostgator provides the
    facility of cpanelx that is used to control your website.

    Besides, the company also offers a 45-day money back guarantee
    if it fails to keep its commitment of providing the uptime guarantee for the websites.

  2. First off I would like to say wonderful blog!
    I had a quick question that I’d like to ask if you don’t mind.
    I was interested to find out how you center yourself and clear your head prior
    to writing. I have had a tough time clearing my thoughts in getting my thoughts out.
    I truly do enjoy writing but it just seems like the first 10
    to 15 minutes are usually lost just trying to figure out how to begin. Any suggestions or tips?
    Appreciate it!

    My webpage: rayban sunglasses

  3. slow aj bos jika ingiin menang di game ini

  4. Rolet online says:

    Well I definitely liked reading it. This article provided by you is very effective for correct planning.

  5. Very good blog post. I absolutely love this site. Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>