DNS is the Domain Name System. Basically, DNS servers convert a domain name into an IP address (for example – 220.127.116.11). DNS maintains a huge distributed database of networks and address and it provides a way to determine the corresponding ip address to the domain name.
All public website runs over internet with public ip address. Internet uses DNS as world wide name resolutions for the public websites. when we type any domain address in web browser then DNS find corresponding ip address for the domain name and data required to make connection between browsers and web servers.
When we access any website via the browser, our computer keep the record of DNS for future use. It is called DNS cache. We can delete dns records by flushdns command. DNS flush is very useful when a website moved servers and if we are seeing the old website again then flushing cache can help.
Sometimes, we started to see timeout error messages or when we type any web address and find website does not exists or browser moves us to search page. Even computer restart does not help in this case. It is due to recent changes in website servers or name servers. DNS flush can helps in this case.
So, DNS (Domain Name System) stores domain name and information relevant to a specific domain name in cache. The purpose of this cache to speed up process when user will come next time to visit same website. But, if the DNS information of a website has changed, then the information stored in a computer’s DNS cache will have to be updated as well, or else the user will face several problems in accessing the website. This can be done by flush DNS cache and the updated DNS information will be stored in its place again when user will access the website.
Type the following within the command prompt to flush dns: ipconfig /flushdns.
ipconfig /displaydns – The /displaydns option outputs a list of the name-to-IP mappings currently in the cache.
ipconfig /flushdns – This option simply empties the local DNS cache. Nothing more, nothing less. Flushing the cache can be useful in certain network troubleshooting situations.
ipconfig /registerdns – This one does not relate to the local cache. The /register dns option contacts the dns server (as configured in the system’s tcp/ip settings), and tells the server its current IP address. This is useful when the DNS server is, for whatever reason, not updating correctly.