We currently have 4 squid proxy servers in no specific hierarchy. Some of which are experiencing intermittent DNS issues where we receive the following error:
"The cache was not able to resolve the hostname presented in the URL."
However, if I point my browser to a different proxy server and reload the page, all is OK.
As a fallback for any future DNS issues I would like to configure squid's cache_peer setting to automatically query another proxy server if the hostname cannot be resolved locally.
I have attempted to configure cache_peer as below:
cache_peer 22.214.171.124 sibling 8080 0 no-query cache_peer 126.96.36.199 sibling 8080 0 no-query cache_peer 188.8.131.52 sibling 8080 0 no-query
After a squid -k reconfigure, my cache log shows:
Configuring Sibling 184.108.40.206/8080/0 Configuring Sibling 220.127.116.11/8080/0 Configuring Sibling 18.104.22.168/8080/0
When I browse to my troublesome URL, I get the same error, and this shows in the access.log:
1329952290.176 22100 my.ip.ad.dr TCP_MISS/503 1663 GET http://www.troublesomeUrl.com - DIRECT/www.troublesomeUrl.com text/html
Can anyone help me out with this? Not sure what I'm doing wrong here!