我把这个放在我的/ etc / hosts文件中:
198.252.206.16 stackoverflowtest.com
而当我在我的浏览器中尝试stackoverflowtest.com ,我得到这个鱿鱼错误:
ERROR The requested URL could not be retrieved The following error was encountered while trying to retrieve the URL: http://stackoverflowtest.com/ Unable to determine IP address from host name stackoverflowtest.com The DNS server returned: Name Error: The domain name does not exist. This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct. Your cache administrator is webmaster.
而不是这个:
Stack exchange Couldn't find 198.252.206.16 ...
为什么鱿鱼打破主机文件? 任何解决方法?
你需要更新鱿鱼服务器上的主机文件。 原因是您的浏览器将目标URL发送到代理,并且不在本地parsing主机名。