免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6102 | 回复: 4
打印 上一主题 下一主题

[proxy] 代理上网奇怪的问题,squid [复制链接]

论坛徽章:
3
季节之章:冬
日期:2015-01-15 10:36:57IT运维版块每日发帖之星
日期:2015-09-24 06:20:00IT运维版块每日发帖之星
日期:2015-10-24 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-27 11:53 |只看该作者 |倒序浏览
squid代理最近出现这样的问题:
在服务器里能解析域名,但是在客户端就是上不了网,具体的提示有:
The requested URL could not be retrieved

--------------------------------------------------------------------------------

While trying to retrieve the URL: http://www.baidu.com/

The following error was encountered:

Unable to determine IP address from host name for www.baidu.com
The dnsserver returned:

Temporary network problem, please retry later
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 84771409(77314).



--------------------------------------------------------------------------------

Generated Wed, 27 Aug 2008 03:29:30 GMT by Panyu-proxy (squid/2.5.STABLE14)
在服务器里查看日志 cat /var/log/squid/cache.log
提示如下:
2008/08/27 11:30:22| dnsSubmit: queue overload, rejecting tg4a31.mail.163.com
我查看dns进程的确有很多,kill一些dns进程后,可以上网了,但是这个不是解决问题的最终办法,请问各位高手,如何解决这个问题呢?

论坛徽章:
0
2 [报告]
发表于 2008-08-27 15:18 |只看该作者
如果是dns请求超载的话cache.log中应该有如下两句
2008/08/14 11:44:03| WARNING: All dnsserver processes are busy.
2008/08/14 11:44:03| Consider increasing the number of dnsserver processes to at least 288 in your config file.
上边是我的服务器在14日发生的超载日志,当天突然出现大量dns请求,上边的日志最少要设置288个dns服务线程,平时我用64个满足了,实际到后来我增加到400+才不超载了。

修改squid.conf
dns_children 64

调整dns服务线程数

论坛徽章:
3
季节之章:冬
日期:2015-01-15 10:36:57IT运维版块每日发帖之星
日期:2015-09-24 06:20:00IT运维版块每日发帖之星
日期:2015-10-24 06:20:00
3 [报告]
发表于 2008-08-27 21:49 |只看该作者
还有个问题,就是首页能打开,确认不是缓存中的。下面的链接就打不开,提示的内容也是同样的。
我打开www.sohu.com后,点击“新闻”后
The requested URL could not be retrieved

--------------------------------------------------------------------------------

While trying to retrieve the URL: http://news.sohu.com/

The following error was encountered:

Unable to determine IP address from host name for www.baidu.com
The dnsserver returned:

Temporary network problem, please retry later
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 84771409(77314).

论坛徽章:
0
4 [报告]
发表于 2008-08-28 09:11 |只看该作者
这个应该不是每个客户端都出现的问题,有可能是baidu插件的原因,换一台干净的客户端计算机试试。

论坛徽章:
0
5 [报告]
发表于 2008-08-28 17:52 |只看该作者
按2楼的方法先查下吧,多数是dns_children参数过小造成的,按我以前做过的经验,两台squid供800人上网,每天dns_children我设置在150
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP