- 论坛徽章:
- 0
|
请高手指点:squid+iptable透明代理DNS解析不了
前两天我在HP服务器上重新装了RedHat9,默认没有安装SQUID,自己下载了最新的squid-2.5.STABLE5,安装并且设置好后,还是出现了原来的问题。
我的服务器是1G内存,cache大小设为4G,运行半天用du -sk能看到cache目录已有约800M的内容了。
cache_mem 512 MB
cache_dir ufs /var/squid/cache 4000 16 256
在squid.conf中设置了dnsname_servers 202.96.128.68 202.96.128.110
但挂到线上就有不少网页出现无法解析域名现象,有时多次刷新可以出来网页,象tom.com主页可以出来,但下面的新闻链接又出不来,顶不住压力,只好又换回不用Squid。
查看cache.log,有类似以下错误:
2004/06/03 22:23:45| ipcacheParse: No Address records in response to 'www.avl.com.cn'
2004/06/03 22:23:45| ipcacheParse: No Address records in response to 'www.avl.com.cn'
2004/06/03 22:31:52| ipcacheParse: No Address records in response to 'www.avl.com.cn'
2004/06/03 22:31:52| ipcacheParse: No Address records in response to 'www.avl.com.cn'
2004/06/03 22:31:52| ipcacheParse: No Address records in response to 'www.avl.com.cn'
2004/06/03 22:34:45| ipcacheParse: No Address records in response to 'www.avl.com.cn'
2004/06/03 22:34:46| ipcacheParse: No Address records in response to 'www.avl.com.cn'
2004/06/03 22:37:50| parseHttpRequest: Unsupported method 'recipientid=101&sessionid=2054
'
2004/06/03 22:37:50| clientReadRequest: FD 28 Invalid Request
2004/06/03 22:37:50| parseHttpRequest: Unsupported method 'recipientid=101&sessionid=2054
'
2004/06/03 22:37:50| clientReadRequest: FD 28 Invalid Request
2004/06/03 22:39:01| ipcacheParse: No Address records in response to 'liveupdate.symantecliveupdate.com'
2004/06/03 22:39:07| ipcacheParse: No Address records in response to 'liveupdate.symantecliveupdate.com'
2004/06/03 22:39:49| ipcacheParse: No Address records in response to 'www.avl.com.cn'
2004/06/03 22:41:39| ipcacheParse: No Address records in response to 'www.microsoft.com'
2004/06/03 22:47:41| ipcacheParse: No Address records in response to 'liveupdate.symantecliveupdate.com'
2004/06/03 22:52:39| ipcacheParse: No Address records in response to 'toolbarqueries.google.com'
2004/06/03 22:52:57| ipcacheParse: No Address records in response to 'toolbarqueries.google.com'
2004/06/03 22:53:02| ipcacheParse: No Address records in response to 'toolbarqueries.google.com'
2004/06/03 22:53:10| ipcacheParse: No Address records in response to 'liveupdate.symantecliveupdate.com'
2004/06/03 22:58:44| clientIfRangeMatch: Weak ETags are not allowed in If-Range: "b8474-262-40b44758" ? "98057-262-40b44758"
2004/06/03 22:59:32| ipcacheParse: No Address records in response to 'toolbarqueries.google.com'
2004/06/03 23:00:57| ipcacheParse: No Address records in response to 'download.rising.com.cn'
2004/06/03 23:09:04| ipcacheParse: No Address records in response to 'ad.doubleclick.net'
2004/06/03 23:16:58| ipcacheParse: No Address records in response to 'www.avl.com.cn'
2004/06/03 23:17:04| ipcacheParse: No Address records in response to 'www.avl.com.cn'
2004/06/03 23:20:30| ipcacheParse: No Address records in response to 'www.microsoft.com'
2004/06/03 23:24:48| ipcacheParse: No Address records in response to 'www.avl.com.cn'
2004/06/03 23:28:12| ipcacheParse: No Address records in response to 'www.avl.com.cn'
2004/06/03 23:38:43| ipcacheParse: No Address records in response to 'liveupdate.symantecliveupdate.com'
2004/06/03 23:38:49| ipcacheParse: No Address records in response to 'liveupdate.symantecliveupdate.com'
好郁闷,瞎折腾了几个星期,想在自己的网络环境中试试squid的性能,但却碰了一个大壁,从前后贴出来的贴子可以看出,这次主要是DNS解析跟不上,客户端出错误信息,各路高手大侠,帮小弟一把。其实我单位直接走透明路由,不用squid完全没问题的,但没搞定这事心头真是不爽,吃不好也睡不好啊! |
|