未加星标

How to Flush DNS on Windows, Mac and Linux

字体大小 | |
[系统(linux) 所属分类 系统(linux) | 发布者 店小二03 | 时间 2016 | 作者 红领巾 ] 0人收藏点击收藏

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.
How to Flush DNS on Windows, Mac and Linux

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操作系统

主题: WindowsLinuxUbuntuWindows 7Word
分页:12
转载请注明
本文标题:How to Flush DNS on Windows, Mac and Linux
本站链接:http://www.codesec.net/view/482973.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(linux) | 评论(0) | 阅读(43)