Hi
I have linux (RHEL 5.0) running squid-2.6.STABLE6-4.el5.
I have juniper box working as UTM which changes the default route when the ISP is down.
Iptables of my proxy server (linux server) redirects all my traffic to squid port
-A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128
When my 1st IPS is UP I generally have no problem to get to sites . But when the 1st ISP is down the UTM changes route to 2nd ISP. My ping traceroute is fine from through the 2nd ISP. But I have problem only using squid throug the the 2nd ISP. And get the following error.
The requested URL could not be retrieved
While trying to retrieve the URL:
http://www.icts.res.in/program/pninmp
The following error was encountered:
Unable to determine IP address from host name for
www.icts.res.in
The dnsserver returned:
Refused: The name server refuses to perform the specified
operation.
This means that:
The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.
Your cache administrator is root.
Generated Mon, 10 Mar 2014 09:26:17 GMT by saltlake.
yyy.xxx.in (squid/2.6.STABLE6)
I have declared the dns_nameserver in my squid.conf file.
dns_nameservers 14.139.5.5 8.8.8.8 4.2.2.2 14.139.199.23
dns_nameservers 218.248.241.6
Where 14.139.5.5 is dns of the 1st ISP and 218.248.241.6 is of the 2nd.
I have checked them individually and found to resolve properly when the corresponding links are UP.
PLEASE let me known how do i configure the squid so that it also works proper when when the 2nd ISP is UP not the 1st.
Thanking you
Sanjib Gupta