How to Flush DNS on Windows, Mac and Linux
Domain Name System or DNS helps users to obtain data coming from a server to a computer. It’s a sort of system that aids users to get whatever and whenever they would like on their PC or computer. Having said that, there’s nothing to carry out if you are a user. The site admin will do the modifications in DNS and that will reflect on user’s mobile or computer. However, sometime the admin can get cached version of a site, which will not let him/her make any change. To solve that problem, site admin needs to flush DNS or clear DNS cache to get the original version of the site.
If the aforementioned paragraph has not defined anything to you, here is a simple example to understand things quickly. Every website is hosted on a server. No matter, whether that is a free blogspot blog or WordPress blog. The site must be hosted somewhere. Otherwise, the user cannot find the site’s indexed pages or the user’s computer cannot fetch that site.What is the DNS Cache?
Now, let’s assume that the site admin wants to migrate the site from one hosting to another or one server to another. Now, if you are a site admin, you will do the job and have to give it some time to propagate everything. However, if you need to change anything in between the propagation time, you will have to flush DNS. When you are changing the host, your computer network will keep fetching the site from the old server. It will take 2-3 days to propagate all things and in that meantime, your mobile or computer will show the site fetched from the old server.
In simpler words, your network stores all the information of the server and cannot update that information within moments or automatically. It takes few time to clear the cache automatically.
However, you can solve this problem (not actually a problem though) by clearing DNS cache on your computer. That is not like removing file or folder. It is something different as it is related to internet and networking. However, as a user, you can also do the same to get the latest version of your favorite site if you think that the site admin is about to change the server.How do you Flush DNS Cache on windows 7 / 8.1 / 10?
Removing DNS Cache is pretty simple and not much time consuming as well. The most important thing is it doesn’t require any third party software or application to flush DNS cache on Windows, Mac or linux. Just follow the following steps to flush DNS cache on Windows 7 / 8.1 / 10.At first, you have to open Command Prompt with administrator privilege. If you are using Windows 7, just search for cmd in the start menu, right-click on that and select Run as Administrator . Nevertheless, if you are using Windows 8, 8.1 or 10, you can press Win + X and select Command Prompt (Admin) . Now, just type the following command, ipconfig /flushdns You will be greeted with the following message, Successfully flushed the DNS Resolver Cache.
That’s it! This is as simple said.How do you Flush DNS Cache on Mac?
It is also like the Windows. You have to open Terminal and give it a command.For that, just open Terminal from Utilities. After that, enter the following command, dscacheutil -flushcache
It will clear DNS cache on Mac right away.Now, you have to enter the following command to reload the DNS cache, sudo killall -HUP mDNSResponder
Now, you have to enter your password to get things done.
However, if you are using OS X 10.4 or older version, you have to enter the following command,lookupd -flushcache How do you Flush DNS Cache on Linux?
It is same as other two tutorials. If you are having a Linux machine and you want to flush DNS cache on Linux, Ubuntu or anything else, do follow the subsequent steps.At first, open Terminal as root. Following that, you have to install NSCD. To do so, just enter the following command, sudo apt-get install nscd Now, you just have to restart the NSCD. To do, type the following command, sudo /etc/init.d/nscd restart
That’s it! Your DNS cache will be reloaded on Linux machine.
Tips: If you are having Windows machine, it is a good idea to remove the junk files from Temp folder, which can be opened by enter %temp% in the Run prompt.
本文系统（linux）相关术语:linux系统 鸟哥的linux私房菜 linux命令大全 linux操作系统