FlushDNS command comes handy in many cases. To understand what flushDNS does, we first need to understand what is flush and what is DNS in flush DNS command.
Flush is responsible for flushing out the old entry in the cache from our computer and updating those entries with the new entries. DNS is responsible for finding out the corresponding IP address of a URL that you type in your web browser. To avoid looking out for the IP address of a site every time, our computer is smart enough to store the corresponding IP address and domain name (URL) in the local cache. So that next time when we type the same URL in the browser, instead of looking out on the internet, our computer delivers the IP address of the server locally.

Why flushDNS is needed?

Sometimes it also happens that one domain name moves from one to another server and gets a different IP address. In that case, we still see the old website. Thus, DNS flushing is the mechanism where we can manually renew all the entries by invalidating the previously stored combinations of IP addresses and domain names.

Flush DNS is needed in the corporate world as well when the local servers move to new IP addresses. This command can be used on Windows and mac to flush out the older entries from our personal computer.

FlushDNS command on Windows:

To execute flushDNS command on Windows follow the instructions below:

  • Open command prompt by following any of the two below methods:
    • Go to Start > All Programs > Accessories > Command Prompt
    • Or, type Windows+r, ‘Run’ window will open and type ‘cmd’ in that window and hit enter to open command prompt
  • Type in the command ipconfig /flushdns
  • And your DNS entries combinations are flushed out
Also read:  Download & Install Dropbox for Mac OS X 10.10 Yosemite

flushdns command in Windows

FlushDNS command on Mac:

If you are running Mac OS X 10.10 (Yosemite), you need to follow the below steps:

  • Open up the command terminal.
  • Run the command “sudo discoveryutil udnsflushcaches” (Without quotes)

If you are running Mac OS X 10.11 ( El Capitan), you need to follow the below steps:

  • Open up the command terminal.
  • Run the command sudo killall -HUP mDNSResponder

Did you like it?
Please Rate it below:

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...