记一次Squid代理出错的问题
代理搭好后,使用IP访问没问题,访问域名出错:
The requested URL could not be retrieved
While trying to retrieve the URL: http://www.qq.com/
The following error was encountered:
Unable to determine IP address from host name for www.qq.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 webmaster.
登录到代理服务器,域名访问没问题。
那么问题就出在squid使用的dns上,文档中写:
# TAG: dns_nameservers
# Use this if you want to specify a list of DNS name servers
# (IP addresses) to use instead of those given in your
# /etc/resolv.conf file.
# On Windows platforms, if no value is specified here or in
# the /etc/resolv.conf file, the list of DNS name servers are
# taken from the Windows registry, both static and dynamic DHCP
# configurations are supported.
#
# Example: dns_nameservers 10.0.0.1 192.172.0.4
#
#Default:
# none
但是谁知道他喵的用的是什么DNS
于是搜了一下国内常用的dns解析服务器
dns_nameservers 114.114.114.114 223.5.5.5
加到squid.conf 中
over
转载于:https://www.cnblogs.com/xxx-xxx/p/9021203.html
- 点赞
- 收藏
- 分享
- 文章举报
- squid中的acl--作用及实现
- 学习笔记:使用nginx的反向代理和缓存技术提升tornado的吞吐量
- 谷歌云Centos 7下的Squid+Stunnel安装
- nginx清除反向代理缓存
- Squid使用
- 清除指定squid缓存文件的脚本
- 正向代理、反向代理
- caddy & grpc(3) 为 caddy 添加一个 反向代理插件
- 内网反向代理的一些整理(深入理解反向代理)
- Nginx反向代理IIS
- nginx反向代理
- Nginx(三) Nginx负载均衡以及反向代理
- centos7安装Nginx 配置及反向代理
- nginx反向代理配置多域名多端口ssl
- 关于Apache 设置反向代理的一个注意问题
- Nginx 反向代理基本框架
- Nginx的使用(反向代理,负载均衡)
- nginx反向代理
- Squid服务日志分析
- 解决nginx proxy_pass反向代理cookie,session丢失的问题