BuycPanel Blog

BuycPanel Blog

Latest news and updates

How to Clear Your DNS Cache

Posted by Jamison on 20 10 2016.

To beginners, DNS caches serve as the storage for IP addresses, or web server locations. These locations contain the pages you have viewed in the past. Although helpful in many cases, especially when you need to review or go back to a particular site, sometimes, you may experience issues with this IP address storage.

 

One of the most common problems when it comes to DNS caches is the inability to access the site you want to visit, once the DNS cache undergoes an update. An example of common DNS cache-related issue is the appearance of HTML 404 codes. When you continuously see these error messages, the first fix is to clear the cache. As soon as you finish doing this, your device (whether a desktop computer or a laptop) will query nameservers to gain information about the new DNS.

 

Error Pages Overview

 

Error pages are basically information about problems when visitors try to…

To beginners, DNS caches serve as the storage for IP addresses, or web server locations. These locations contain the pages you have viewed in the past. Although helpful in many cases, especially when you need to review or go back to a particular site, sometimes, you may experience issues with this IP address storage.

 

One of the most common problems when it comes to DNS caches is the inability to access the site you want to visit, once the DNS cache undergoes an update. An example of common DNS cache-related issue is the appearance of HTML 404 codes. When you continuously see these error messages, the first fix is to clear the cache. As soon as you finish doing this, your device (whether a desktop computer or a laptop) will query nameservers to gain information about the new DNS.

 

Error Pages Overview

 

Error pages are basically information about problems when visitors try to access a site. There is a reason behind these error codes having a different set of numbers attached to them. For instance, there is the common 404 error code, which appears with a specific message on an error page.

 

Web servers have their own pre-set, simple error pages that they automatically provide, but in the cPanel platform, you can customize these error pages. You can do this through the Error Pages interface. Any HTTP status code and error page is customizable.

 

HTTP Error Codes

 

HTTP codes describe the status of a URL when a visitor attempts to access it. HTTP codes include error messages that describe the problems that visitors encounter. The codes are three-digit numbers.

 

HTTP Code Classes

 

There are five different HTTP code classes, categorized based on their first digit.

 

For fully functional requests, the HTTP code appears with the first digit of either 1, 2, or 3.

 

When the first digit is 4, this means that the error exists on the client-side. Most common codes starting with 4 include 400, 401, 402, 403, and 404.

 

Server-side errors come with HTTP status codes starting with the number 5. The most usual codes encountered by site visitors range from 500 to 510.

 

Resolving 404 Errors

 

Because 404 tops the list of the most frequently encountered DNS-related error, you should at least have a basic understanding of resolving them. The first thing you should do is to remove DNS inaccurate and outdated information in the cache, as these usually lead to 404 errors.

 

For Windows 8

 

Clearing Windows 8 DNS cache just requires you to perform the following:

 

  1. Press the Win (button with the window icon) together with the X button to get the WinX Menu to appear on the left hand side of the screen.

 

  1. Look for the ‘Command Prompt” option, right click on it, and choose “Run as Administrator.”

 

  1. Run this command: ipconfig /flushdns

 

When you successfully launched the command, you will get this system message “Windows IP configuration successfully flushed the DNS Resolver Cache.”

 

For Windows 7

 

For Windows 7 users, follow these steps:

 

  1. Click the “Start” button and locate the menu search text box from the list.

 

  1. Type in “cmd” (without the quotation marks).

 

  1. Look for the “Command Prompt” option, right-click on it, and choose the option that says “Run as Administrator.”

 

  1. Enter the command: ipconfig /flushdns

 

You will get the same system message as with Windows 8 users after successfully launching the command.