使用squid代理时出现“The requested URL could not be retrieved”
問題:
當(dāng)使用代理訪問網(wǎng)站時出現(xiàn)以下錯誤:
========================================
The requested URL could not be retrieved
While trying to retrieve the URL: http://linkhelp.clients.google.com/tbproxy/lh/fixurl?
The following error was encountered:
??? Unable to determine IP address from host name for linkhelp.clients.google.com
The dnsserver returned:
??? Timeout
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 root.
========================================
解決方法:
這是由于代理服務(wù)器機(jī)器的DNS配置問題,代理服務(wù)器機(jī)器不能找到指定url的ip地址導(dǎo)致。檢查/etc/resolv.conf文件配置是否正確,如不正確添加正確的配置信息,比如說:
nameserver ###.###.###.###
nameserver ###.###.###.###
可以配置多個DNS server。
重新啟動squid服務(wù)。
轉(zhuǎn)載于:https://www.cnblogs.com/wdpp/archive/2009/11/18/2386377.html
總結(jié)
以上是生活随笔為你收集整理的使用squid代理时出现“The requested URL could not be retrieved”的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [译]星际争霸人工智能比赛——规则
- 下一篇: 用好ANT管理发布