phi*_*lid 2 networking windows dns proxy squid
我已经下载并配置了一个最小的配置文件。我在 Windows 机器上运行 Squid 2.7。我已将客户端计算机的浏览器配置为使用我的代理服务器,但所有外部 DNS 查询都不起作用(即 www.google.com 不起作用但本地名称工作正常)。这是我得到的错误页面:
The requested URL could not be retrieved
While trying to retrieve the URL: http://www.google.com/
The following error was encountered:
Unable to determine IP address from host name for www.google.com
The dnsserver returned:
Refused: The name server refuses to perform the specified operation.
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 ##################.
Generated Thu, 12 Jan 2012 22:34:15 GMT by ######## (squid/2.7.STABLE8)
Run Code Online (Sandbox Code Playgroud)
我想我有一个不寻常的网络设置,如下所示:
router
____/ \____
/ \
internet ---- my proxy server client PC
Run Code Online (Sandbox Code Playgroud)
我的设置与它有关吗?有关如何解决问题的任何建议?谢谢
在Windows 机器上,如果squid 没有被告知在squid.conf 中使用特定的名称服务器,它应该通过询问注册表来使用系统名称服务器。这可以在搜索“添加名称服务器”时在 cache.log 中看到。
如果由于任何原因这不起作用(有时它会错误地选择自己作为名称服务器 - 127.0.0.1),您可以在 squid.conf 中添加特定的名称服务器:
dns_nameservers 8.8.8.8 208.67.222.222
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
17883 次 |
| 最近记录: |