Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-27-2006, 03:26 PM   #1
LQ Newbie
Registered: Apr 2006
Posts: 2

Rep: Reputation: 0
Angry Squid DNS issue in FC5


I am having an issue with squid and DNS and hope that someone else has seen this issue and can point me in the right direction.

The problem is that squid is erratic in resolving DNS for hosts that are going through the squid proxy. Squid will pass requests for clients for awhile and then suddenly come back with the error "cache was not able to resolve the hostname". If you wait awhile most of the time it will start working again but only for a short period of time, then come back with the error again.

The strange thing is that the localhost will work fine no matter what is going on with squid and you can also reach hosts by ip addess. I am running squid 2.5 with dansguardian, on FC5.

Any help would be greatly appreciated.

Old 04-28-2006, 11:39 AM   #2
Registered: Nov 2001
Location: London, UK
Distribution: Fedora
Posts: 161

Rep: Reputation: 43
Sounds like a timeout issue - squid giving up before the resolver. Check the squid configuration for DNS timeout and retry settings.

Are you using the default resolver library, Name Service Caching Daemon (nscd), a caching-only name server or a full bind 9 DNS server?

bind plus caching-nameserver.noarch should give a more stable, more reliable and faster solution than nscd. The system-config-network and system-config-bind packages should be able to handle the configuration for you in X-Windows.
Old 05-01-2006, 02:52 PM   #3
LQ Newbie
Registered: Apr 2006
Posts: 2

Original Poster
Rep: Reputation: 0

I bumped up the dns_timeout to 3 minutes and the dns_retransmit_interval to 10 seconds and still have the same results.

Wasn't running bind on this server but I did install it just to see if it would reslove the problem. I am still having issues and I am beginning to think this is a hardware issue with the firewall I have between the server and the Internet. I have the exact same configuration on another server and it works just fine. The only variable is the firewall. The other server goes out a different firewall. I will need to swap the connections and give this server a try on the "known good" firewall.

Thanks for the help.
Old 02-02-2007, 12:33 PM   #4
LQ Newbie
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
DNS resolv issue

Hi paulqwinn

Make sure httpd_accel_single_host is set to off for transparent proxying it is recommended to set to on then dns resolution on squid breaks - if it's off resolution is fine and so is transparent proxying.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid/DNS Intermittent Issue win32sux Slackware 4 10-29-2009 04:59 PM
pyorbit version issue with gdesklets on FC5 GPD1310 Linux - Software 3 05-25-2006 08:11 PM
FC5 Graphic display issue abcd_test Fedora 2 04-27-2006 06:59 PM
DNS for Squid abhi_crusader Linux - Enterprise 1 09-29-2005 01:38 AM
DNS issue or caching issue? AZDAVE Linux - Networking 7 10-02-2004 12:28 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration