Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
squid resolve 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
kaihansen
n00b
n00b


Joined: 01 Jul 2002
Posts: 37
Location: Italy / Torino

PostPosted: Thu Mar 13, 2003 5:26 pm    Post subject: squid resolve problem Reply with quote

Hi all, I've this "intermittent" problem.

Sometimes my proxy respond to an http request with an error, saying that is unable to resolve a name to an IP address.

When this occur, I try many tests:

1) I've tried to ping that name from proxy command line, and it solve correctly the name
2) I've tried to go to that page with lynx, from same proxy, and work
3) I've tried from another machine (with same DNS server) and work
4) I've tried from a client (that is configured to use proxy) many others pages and all work

After few minutes squid restart to work properly also for that page

Anyone have no idea?

I have last ebuild installation of squid and on this machine (PIII 1,6G 512MB) there is only this service.

Thanks in advance

D
Back to top
View user's profile Send private message
punx
n00b
n00b


Joined: 08 Jan 2003
Posts: 33
Location: Cologne_de

PostPosted: Thu Mar 13, 2003 7:02 pm    Post subject: Reply with quote

HI,
could it be that:
Code:

negative_ttl 5 minutes
negative_dns_ttl 5 minutes

These values from squid.conf tell squid how long it should wait, before running a new dns query, after a negative dns query. In dial up systems i would set that to a value about 5 seconds.

And ,if you not already have, set up a caching only nameserver, so squid will always find one.
CIAO
_________________
...oh god i am the american dream but now i smell like gasoline and i am the miserable son of a bush..
Back to top
View user's profile Send private message
kaihansen
n00b
n00b


Joined: 01 Jul 2002
Posts: 37
Location: Italy / Torino

PostPosted: Thu Mar 13, 2003 7:54 pm    Post subject: Reply with quote

Thanks so lot, now I'm going to try this ;-)

But I have a 2Mbps Internet connection and not a dial-up, and I use a caching only DNS on another machine ;-) (but this machine is Micro$oft :twisted: .... I plan to install bind somewhere ...)

Ciao

Daniele
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