Squid problem.

mr_i_davis_at_hotmail.com
Date: 10/28/05


Date: 28 Oct 2005 00:13:20 -0700

I am setting up Squid on a debian machine (a Knoppix 4.0.2 remaster to
be specific), and am having a problem with Squid and the dns. When I
fire up the remaster on my laptop, there is no network connection. ie:
no DNS entries in the resolv.conf file until I specify my SSID and WEP
key to my wireless card and bring it up. Since I am staring with no
network connection, I am having to start Squid with the -D option to
bypass the initial DNS lookup. Here's where the problem comes in. I
wrote a sript to set up my wireless card and bring it to life.
Everything works fine, except Squid will not automatically reload the
resolv.conf file. At this point, I have Squid running, Dansguardian
running, the proper iptables rules in place, and the browser will
connect to Squid/Dansguardian, just Squid sits there never looking up
the correct ip. I can ping an address and it resolves fine. Here's the
next catch. If I manually issue the command 'squid -k reconfigure' as
root, it will pick up the new entries, and off we go. But since this is
a Knoppix distribution, I eventually want to lock down the ability of
the user to be able to issue these commands on their own. Defeats the
purpose of a kid proof distro when the kids can stop the processes
implemented to keep them safe.

If anyone is still with me, it boils down to how can you get Squid to
reload the resolv.conf file even if it's on a set timeframe, like each
minute? I have tried with a crontab entry - no luck. I need it to be
"squid" contained and not another script or program causing this.
Thanks in advance,
Isaac



Relevant Pages

  • Re: Squid stalls
    ... If it is DNS then it's difficult for me to determine because I ssh on to ... So when I restart squid the resolv.conf file has ... > Does the problem disappear if you use a different client? ...
    (comp.os.linux.networking)
  • Re: squid configuration for small office
    ... In my office we have 15 PCs. ... Set up the Debian box serve as Local DNS server. ... Aptitude installed squid and in the squid.conf file set http_port ... You'll need to set up ACLs to allow your clients to connect to the squid cache. ...
    (Debian-User)
  • DNS caching: Squid, BIND or anything else?
    ... > | BIND is a DNS server. ... It will reply to DNS queries from others. ... Is Squid is enough for that task? ... > looking for DNS caching, ...
    (freebsd-questions)
  • Re: Squid Performance - Default Options Tweak?
    ... > I am installing Squid on RedHat 9 out of the Distro CDs on a Dell PowerEdge ... > forward queries to my ISP DNS. ... > Since I started to use Squid and BIND, my ISP notified me that, my 1Mbps ...
    (Fedora)
  • Re: BIND 9 Problem - DNS Forwarding
    ... If DNS responds normally take a look at the squid ... I setup my squid with delay pools to take 80% of our bandwith ... My PIX keeps getting Input Packet Errors (the number of errors keeps ...
    (Fedora)