This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Http proxy question (dns resolve??)

I am having a few problems with squid (http proxy)

Squid works well for some pages but others it doesnt:
 http://www.mvhs.alpine.k12.ut.us/~dannyr/Yahoo-Squid-Problem.JPG

It loads half of the page sometimes, other times it loads the entire page

The other error I get is:
Read Time Out Error

here is my cache.log:
Code:
2003/07/08 18:50:24| Starting Squid Cache version 2.4.STABLE6+filter0.6 for i686-pc-linux-gnu...

2003/07/08 18:50:24| Squid_MaxFD = 4096 FD_SETSIZE = 1024
2003/07/08 18:50:24| Process ID 24504
2003/07/08 18:50:24| With 4096 file descriptors available
2003/07/08 18:50:24| DNS Socket created on FD 5
2003/07/08 18:50:24| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2003/07/08 18:50:24| Unlinkd pipe opened on FD 10
2003/07/08 18:50:24| Swap maxSize 1290240 KB, estimated 99249 objects
2003/07/08 18:50:24| Target number of buckets: 4962
2003/07/08 18:50:24| Using 8192 Store buckets
2003/07/08 18:50:24| Max Mem  size: 8192 KB
2003/07/08 18:50:24| Max Swap size: 1290240 KB
2003/07/08 18:50:24| Rebuilding storage in /cache (DIRTY)
2003/07/08 18:50:24| Using Least Load store dir selection
2003/07/08 18:50:24| Set Current Directory to /cache
2003/07/08 18:50:24| Loaded Icons.
2003/07/08 18:50:24| Accepting HTTP connections at 0.0.0.0, port 8080, FD 12.
2003/07/08 18:50:24| Accepting SNMP messages on port 3401, FD 13.
2003/07/08 18:50:24| WCCP Disabled.
2003/07/08 18:50:24| Ready to serve requests.
2003/07/08 18:50:25| Done reading /cache swaplog (126 entries)
2003/07/08 18:50:25| Finished rebuilding storage from disk.
2003/07/08 18:50:25|       123 Entries scanned
2003/07/08 18:50:25|         0 Invalid entries.
2003/07/08 18:50:25|         0 With invalid flags.
2003/07/08 18:50:25|       120 Objects loaded.
2003/07/08 18:50:25|         0 Objects expired.
2003/07/08 18:50:25|         3 Objects cancelled.
2003/07/08 18:50:25|         0 Duplicate URLs purged.
2003/07/08 18:50:25|         0 Swapfile clashes avoided.
2003/07/08 18:50:25|   Took 0.7 seconds ( 166.3 objects/sec).
2003/07/08 18:50:25| Beginning Validation Procedure
2003/07/08 18:50:25|   Completed Validation Procedure
2003/07/08 18:50:25|   Validated 120 Entries
2003/07/08 18:50:25|   store_swap_size = 948k
2003/07/08 18:50:25| storeLateRelease: released 0 objects



It reads a dns server from resolve.conf, should I put a different dns server in there or is there anything wrong you can tell from that information.

I would really really love to get squid working, I am trying to set it up to use in my WISP.

Thanks,
Danny aka HAiRY  


This thread was automatically locked due to age.
  • Have you enabled DNS proxy and entered a valid forwarding name server (or 2). It looks like your proxy is doing dns queries on the local machine, by starting the DNS proxy this 'may' help speed up queries. 

    If you want to hack the resolv.conf file it needs to be in a format like this

    search yourdomain.com
    nameserver xxx.xxx.xxx.xxx
    nameserver xxx.xxx.xxx.xxx

    replacing yourdomain.com  with your local domain and the xxx's with the IP address of your ISP's name servers  
  • Ok I added those lines in /var/chroot-squid/etc/resolve.conf of my nameservers and I still have the same problem.
    But I didnt add the "search yourdomain.com" part because I do not have a domain for my network I only have an IP.


    http://www.mvhs.alpine.k12.ut.us/~dannyr/Squid-Ebay.JPG

    I would really really like to get squid working on my network.

    Also here is what my cache.log looks like now
    Code:
    2003/07/18 16:31:40| Starting Squid Cache version 2.4.STABLE6+filter0.6 for i686-pc-linux-gnu...
    
    2003/07/18 16:31:40| Squid_MaxFD = 4096
    FD_SETSIZE = 1024
    2003/07/18 16:31:40| Process ID 31952
    2003/07/18 16:31:40| With 4096 file descriptors available
    2003/07/18 16:31:40| DNS Socket created on FD 5
    2003/07/18 16:31:40| Adding nameserver 209.210.176.9 from /etc/resolv.conf
    2003/07/18 16:31:40| Adding nameserver 209.210.176.10 from /etc/resolv.conf
    2003/07/18 16:31:40| Unlinkd pipe opened on FD 10
    2003/07/18 16:31:40| Swap maxSize 1290240 KB, estimated 99249 objects
    2003/07/18 16:31:40| Target number of buckets: 4962
    2003/07/18 16:31:40| Using 8192 Store buckets
    2003/07/18 16:31:40| Max Mem  size: 8192 KB
    2003/07/18 16:31:40| Max Swap size: 1290240 KB
    2003/07/18 16:31:40| Rebuilding storage in /cache (DIRTY)
    2003/07/18 16:31:40| Using Least Load store dir selection
    2003/07/18 16:31:40| Set Current Directory to /cache
    2003/07/18 16:31:40| Loaded Icons.
    2003/07/18 16:31:40| Accepting HTTP connections at 0.0.0.0, port 8080, FD 12.
    2003/07/18 16:31:40| Accepting SNMP messages on port 3401, FD 13.
    2003/07/18 16:31:40| WCCP Disabled.
    2003/07/18 16:31:40| Ready to serve requests.
    2003/07/18 16:31:40| Done reading /cache swaplog (27 entries)
    2003/07/18 16:31:40| Finished rebuilding storage from disk.
    2003/07/18 16:31:40|        27 Entries scanned
    2003/07/18 16:31:40|         0 Invalid entries.
    2003/07/18 16:31:40|         0 With invalid flags.
    2003/07/18 16:31:40|        27 Objects loaded.
    2003/07/18 16:31:40|         0 Objects expired.
    2003/07/18 16:31:40|         0 Objects cancelled.
    2003/07/18 16:31:40|         0 Duplicate URLs purged.
    2003/07/18 16:31:40|         0 Swapfile clashes avoided.
    2003/07/18 16:31:40|   Took 0.0 seconds (  27.0 objects/sec).
    2003/07/18 16:31:40| Beginning Validation Procedure
    2003/07/18 16:31:41|   Completed Validation Procedure
    2003/07/18 16:31:41|   Validated 27 Entries
    2003/07/18 16:31:41|   store_swap_size = 264k
    2003/07/18 16:31:41| storeLateRelease: released 0 objects


    Thanks,
    HAiRY