免费注册 查看新帖 |

Chinaunix

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

[proxy] 今早squid突然解析不了ip了(分析了。解决了) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-20 11:21 |只看该作者 |倒序浏览
发现无法解析网址。直接个别几个大站可以

更换多个dns还是不行。

在服务器用 lynx   www.chinaunix.net  是可以访问  这里直接连接了
在服务器用 squidclient -p8080 -m get http://www.chinaunix.net   不可以 提示无法解析ip


突发事件,我看到配置文件也没变过。

  1. 补充个现象,发现客户端发出请求后,squid没有向外面的dns服务器发出连接,就好象只在squid内部找了下,找不到就不管了,不去找外部dns查询了
复制代码


在线等了
  1. [color=Red]ERROR
  2. The requested URL could not be retrieved

  3. --------------------------------------------------------------------------------

  4. While trying to retrieve the URL: [url]http://www.baidu.com/baidu?[/url]

  5. The following error was encountered:

  6. Unable to forward this request at this time.
  7. This request could not be forwarded to the origin server or to any parent caches. The most likely cause for this error is that:

  8. The cache administrator does not allow this cache to make direct connections to origin servers, and
  9. All configured parent caches are currently unreachable.
  10. Your cache administrator is admin.
  11. [/color]
复制代码





参考
  1. 用Squid建Proxy时的域名无法解析的问题,请大虾帮忙
  2. [url]http://www.linuxsir.org/bbs/thread280423.html[/url]
复制代码


  1. 客户端通过squid代理上网经常会报域名无法解析错误?
  2. [url]http://bbs2.chinaunix.net/thread-1349927-1-1.html[/url]
复制代码

[ 本帖最后由 very_99 于 2009-5-20 13:48 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-05-20 12:57 |只看该作者
我日了!   dns的问题。
#nameserver 202.101.10.10
#nameserver 202.96.209.6
#nameserver 202.96.133.199
#nameserver 202.96.199.132
#nameserver 202.96.209.133
nameserver 202.96.199.133
#nameserver 202.96.209.5
#nameserver 210.22.70.3
#nameserver 210.22.84.3

使用上面所有的时候,有时行有时不行, 所以我一个个测试,发现有的就是不可以解析。

最后找到了202.96.199.133,只是用它。  squid也只是用它,这样就都可以了


因为系统中使用dns是一个不行再找另一个,所以只要有一个可以就行了。这也就是lynx访问没有问题的原因。

squid中使用的是轮训,运气好碰到可用的就成功了。

[ 本帖最后由 very_99 于 2009-5-20 13:51 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP