[squid-users] DNS caching for dialup use

From: Tong Sun <sun_tong_001@dont-contact.us>
Date: Mon, 10 Nov 2003 22:30:06 -0500

Hi,

What is the recommended way to setup/use squid's DNS caching capability,
especially for dialup use?

In my current dial-up environment, the DNS request path is:

   Browser => squid => local cache-only DNS server => my ISP DNS server => ...

But I found a problem -- I can't access my localhost when I'm not on Internet:

- - - - >8 - - - -
    While trying to retrieve the URL: http://localhost/~tong/

    The following error was encountered:

    * Connection Failed

    The system returned:

        (110) Connection timed out
- - - - >8 - - - -

From cache.log:

- - - - >8 - - - -
2003/11/04 11:00:35| idnsCheckQueue: ID 2: giving up after 60 tries and 302.6 seconds
2003/11/04 11:01:26| idnsCheckQueue: ID 3: giving up after 60 tries and 303.0 seconds
2003/11/04 11:02:16| idnsCheckQueue: ID 4: giving up after 60 tries and 303.2 seconds
2003/11/04 11:02:35| idnsCheckQueue: ID 5: giving up after 60 tries and 303.6 seconds
2003/11/04 11:03:26| idnsCheckQueue: ID 6: giving up after 60 tries and 303.1 seconds
- - - - >8 - - - -

Strangely, from the store.log log file, I can see that squid knows about
 http://xpt:3128/, but not http://xpt/:

- - - - >8 - - - -
1067960187.724 SWAPOUT 00 00000014 2855D26FD4C8AE0152774C5E1DEF5085 200 106796018
7 1030425329 -1 image/gif 192/192 GET http://xpt:3128/squid-internal-static
/icons/anthony-bomb.gif
1067961572.016 RELEASE -1 FFFFFFFF AD4AA7297DA44CF00594B79E8E5312F6 504 -1
        -1 -1 unknown -1/950 GET http://xpt/~tong/
1067961623.016 RELEASE -1 FFFFFFFF 3BCCE34D5F30332A57005B2BBF7211B3 504 -1
        -1 -1 unknown -1/962 GET http://localhost/~tong/
- - - - >8 - - - -

NB.

- I'm using squid out of box from RH8.
- My http server is up and running fine.
- My local cache only DNS server starts only on successfully dialing up.
- http://localhost/~tong/ is only accessible after dialing up.

Any suggestions? Thanks

-- 
SUN, Tong
Received on Mon Nov 10 2003 - 20:30:17 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:21:13 MST