原创文章,转载请注册出处,本文地址:http://velep.com/archives/130
今天真是奇怪,打开自己网站velep.com,一会儿打的开,一会儿又不打开,但打开其它网站正常。ping自己网站velep.com,出现如下提示:
Ping request could not find host velep.com. Please check the name and try again.
但直接ping自己网站velep.com的IP地址,却可ping通。于是在浏览器上直接用自己网站velep.com的IP地址登陆,由于是共享主机,使用的是共享IP,所以自然是打不开自己的网页,而打开的是“Default Web Site Page”。该页而上有一句话引起了我的注意,如下:
It may be possible to restore access to this site by following these instructions for clearing your dns cache.
点击上面的链接,居然进入到了cpanel网站。按照提示在window命令行下使用ipconfig /flushdns命令,进行了“clearing your dns cache”操作。然后再打开自己网站velep.com,居然可以访问正常了。下面贴出cpanel网站提供的信息:
Clearing Your DNS Cache
Your DNS cache stores the locations (IP addresses) of pages you have recently viewed. If the location of the page changes before the entry in your DNS cache is updated, you will be unable to access the page.
If you are encountering a high number of HTML 404 error codes, you may need to flush your DNS cache. Once you clear your DNS cache, your computer will query nameservers for the new DNS information you require.
For more information about the HTML 404 error code, please visit the HTML 404 wikipedia article.
The methods detailed below allow you to remove old and inaccurate DNS information that may result in 404 errors.
Windows® XP, 2000, or Vista®
- Open the Start menu.
- Go to Run.
- If you do not see the Run command in Vista, search for “run” in the Search bar.
- In the Run text box, type:
ipconfig /flushdns
- Press Enter or Return, and your cache will be flushed.
MacOS®
- Go to Applications.
- Go to Utilities.
- Open the Terminal application.
- Type:
dscacheutil -flushcache
- Press Enter or Return, and your cache will be flushed.