Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Squid and DNS problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
joefish
Guru
Guru


Joined: 27 Jan 2004
Posts: 316
Location: New Zealand

PostPosted: Fri Aug 18, 2006 11:54 am    Post subject: Squid and DNS problem Reply with quote

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
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Fri Aug 18, 2006 5:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum