You are not logged in.

#1 2007-03-02 08:40:14

beejayzed
Member
From: New Zealand
Registered: 2006-12-15
Posts: 24
Website

[SOLVED]squid problem with dns lookups

I installed squid yesterday, and I've found while browsing that sometimes squid will randomly fail to resolve a dns which is fine.
After refreshing the dns will usually resolve.
An example of the error message:

The requested URL could not be retrieved

While trying to retrieve the URL: http://bbs.archlinux.org/ 

The following error was encountered: 
Unable to determine IP address from host name for bbs.archlinux.org 

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. 

Your cache administrator is webmaster.

Some domains which I have received errors for, but after (sometimes multiple) refreshes resolved are:
bbs.archlinux.org www.linuxjunkies.org www.swelltech.com
Those are just a few.

I've just done basic squid configuration, nothing to do with timeout or anything. I've attached my squid.conf.
My resolv.conf just has the router (which gets the dnses from my isp) as my nameserver.

Any ideas on how this could be fixed?

Last edited by ewaller (2013-10-18 02:44:12)

Offline

#2 2007-03-02 18:33:38

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: [SOLVED]squid problem with dns lookups

It might be that your router is the one failing to return dns...
You might try installing dnsmasq on that machine, and then changing the resolv.conf to point to the loopback. I have done that on one of my servers, and the dns caching alone has been useful....


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2007-03-02 19:52:25

beejayzed
Member
From: New Zealand
Registered: 2006-12-15
Posts: 24
Website

Re: [SOLVED]squid problem with dns lookups

I thought squid cached dns requests?
Anyway, I'll try pointing my resolv.conf to the dns servers directly and see what happens.

Offline

#4 2007-03-02 20:48:25

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: [SOLVED]squid problem with dns lookups

it should indeed be caching dns. Just not sure how long.

You might try setting squid to log access, and tailing the access and error logs to see what kind of traffic you are seeing....that is..if this issue is consistent and reproducable.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#5 2007-03-03 10:37:26

beejayzed
Member
From: New Zealand
Registered: 2006-12-15
Posts: 24
Website

Re: [SOLVED]squid problem with dns lookups

Well, upon removing the router's dns caching from the equation, the problem seems to have disappeared.
Wonder if it's a bug in squid.

Last edited by beejayzed (2007-03-03 10:38:37)

Offline

#6 2007-03-03 18:33:34

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: [SOLVED]squid problem with dns lookups

If it was a bug in squid, I would expect that it would have behaved the same.
Maybe your router is flakey for dns requests...or maybe it takes a while to return a response...and squid has a shorter timeout or something.
dunno.

Glad you are functional again though. smile


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#7 2013-10-18 01:40:10

cyberbandya
Member
From: India भारत देश
Registered: 2012-09-02
Posts: 7

Re: [SOLVED]squid problem with dns lookups

Kindly mark this as solved .


The true sign of intelligence is not knowledge but imagination AND SO We cannot solve our problems with the same thinking we used when we created them.

Offline

#8 2013-10-18 02:43:19

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 16,120

Re: [SOLVED]squid problem with dns lookups

cyberbandya wrote:

Kindly mark this as solved .

Although Cactus is still around The OP is not.  I think this six year old thread may have predated that practice smile

I will mark this as solved and will close it.

Last edited by ewaller (2013-10-18 02:45:01)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB