View previous topic :: View next topic |
Author |
Message |
joefish Guru
Joined: 27 Jan 2004 Posts: 316 Location: New Zealand
|
Posted: Fri Aug 18, 2006 11:54 am Post subject: Squid and DNS problem |
|
|
I have a basic proxy set up with squid, mostly for the purposes of having a central web cache.
When I'm browsing the net, many sites will give an error like the following:
Quote: | While trying to retrieve the URL: http://www.phphacks.com/content/view/27/33/
The following error was encountered:
Unable to determine IP address from host name for www.phphacks.com
The dnsserver returned:
No DNS records
This means that:
The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.
|
Trying to access a site that gives such an error will often work at a later time. There are no problems browsing if I don't go through my proxy server.
My squid.conf:
Code: | http_port 192.168.1.5:3128
icp_port 0
cache_mem 20 MB
cache_dir ufs /usr/tmp/squid 2048 16 256
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl allowed_hosts src 192.168.1.0/255.255.255.0
acl our_networks src 192.168.1.0/24
http_access allow our_networks
icp_access allow allowed_hosts
icp_access deny all
miss_access allow allowed_hosts
miss_access deny all |
|
|
Back to top |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Fri Aug 18, 2006 5:32 pm Post subject: |
|
|
not a real solution but a workaround:
install e.g. dnsmasq at your proxy machine and have squid configured to use that one instead doing the resolution by itself. _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
|
|