There are couple of reasons, why you might feel the need to flush my DNS cache, like
When you are having trouble opening one specific website on your device, and it’s works fine
on other devices.
Or when you’ve just changed the default dns on your system to say a sdp server, but
the changes aren't in effect.
Now, you can either wait out the 5 minutes to 24 hours for it to clear on it's own, or
try the age old method that fixes 90% of most tech problems, Yea,restarting your device.
But if for some reason, you don’t want to reboot your device (like maybe there is some
downloads in the background) then to speed things up, you can manually flush the DNS
cache.
And, here is how you do it on Windows, mac, android and iOS.
if you are interested in a specific part of the video, then click on the time stamp appearing
on the screen now or watch the entire video.
----
Before we begin, let’s first understand, what a dns cache is --
A DNS cache is a temporary database maintained by the device's operating system which contains
records of all your recent visits to websites.
Basically a list of websites and their corresponding IP addresses.
Having a local database handy, speeds up access to the Internet which usually is a good thing
if ur impatient.
However, sometimes, this database might get corrupted, the website switches to a new server
or you made a recent change to the DNS server from your ISP to a custom one.
This... is when you need to flush your dns.
Just like flushing a toilet ,which gets rid of any turds left behind a DNS flush will
remove the existing DNS names , IP addresses and grabs the new one that you’ve programmed
before and if that’s not the case, then it’ll use the default DNS from the ISP.
So, now that we have our basics clear, here is how you go about it.
Windows
You can easily flush the DNS cache on your windows computer (no matter which version
it is ) using your cmd prompt.
So, open up Open the Command Prompt by pressing win key + R ,then type in cmd, and hit enter.
To Flush DNS type in following command i.e. ipconfig /flushdns and hit enter
you will see the message, you have successfully flushed the dns resolver cache.
To confirm that your computer’s DNS cache was flushed, type in this command:
“ipconfig/displaydns” and press “Enter.”
You’ll see no entries or maybe one or two depending on desktop programs running in the
background.
And if you want to see how it normally looks like, simply open up Google Chrome.
switch back to your Command Prompt window and type in the “ipconfig/displaydns”
command again.
You’ll see the list of all the websites and IP addresses saved in your new DNS cache.
Also remember, sometimes, you might have to close and reopen the browser, for this dns
flush to take effect.
Mac OSX To clear dns cache on your mac, Open the Terminal
application, by pressing cmd + space and type in terminal, once you’ve got a hit press
enter
Next, copy and paste the command, that you can see on the screen as we speak.
(don’t worry you don’t have to type all that, you can just copy paste it from the
description of this video) Depending on which OS version you have type
in the corresponding command,
To check your OS version, click on the apple icon on the top left corner of your mac and
click on about this mac, a new pop will come up, you can see your version there, like how
this mac has sierra,.
If and when there is a new command for a new version, I’ll update that in the description
of this video.
Mac OS X Yosemite and later sudo killall -HUP mDNSResponder
Mac OS X Yosemite v10.10 through v10.10.3 sudo discoveryutil mdnsflushcache
Mac OS X Mavericks, Mountain Lion and Lion sudo killall -HUP mDNSResponder
Mac OS X Snow Leopard sudo dscacheutil -flushcache
Once you type these in the command prompt and hit enter, your mac might ask you for
your login password as confirmation, type that in and hit enter again.
And that’s it, you have successfully updated dns cache on mac.
Unlike windows, mac doesn’t give you any confirmation , and you also don’t necessarily
have to quit and relaunch any active applications for this to take effect.
Android You can easily flush the DNS cache on your
Android device by restarting the wifi.
Yes, it is that simple.
Step 1: Simply, Close the apps Close the app completely.
Make sure it is not running in the background as well.
Step 2: Restart Wifi Turn off the Wifi on your device and turn
it back on.
Step 3: Open App Open the app again.
DNS Cache should be cleared
Or if you don’t want to disconnect your wifi, then you can just clear the cache of
an individual app as well, like either chrome or netflix,
Just go to Settings->Apps-> find the app you are looking for, next go to “Storage”
and tap on “Clear Cache“.
And that should do it.
iOS Devices
IOS, follows the same rule as android.
Simply restart wifi and it’ll work.
Swipe up from the bottom of the iPhone screen to reveal Control Center
Tap on the Airplane Icon to enable the Airplane Mode – wait until the mobile network disappears
then tap again on the Airplane Icon to disable the Airplane Mode
Swipe down to leave the Control Center, the DNS cache has been flushed successfully
----
So, there you have it, to flush dns cache on your smart tv or media console, just restart
the app and if that doesn’t work, then try toggling the wifi or restarting the devices
and it’ll work eventually.
To find out what dns server you are currently using, check out this video
And That's all for now
like always go hit the like button if you enjoy this video
and don't forget to subscribe to this channel if you haven't already.
This is mrinal singing off and thanks for watching.