Squid 3.1 DNS Timeout Problem
Hi folks,
Every time i try to connect with squid proxy i got this error Code:
The following error was encountered while trying to retrieve the URL: http://google.com/ Code:
1392635595.842 10003 41.137.74.142 TCP_MISS/404 0 CONNECT aus3.mozilla.org:443 - DIRECT/- - Code:
# Recommended minimum configuration: Thanks, |
The error message tells you exactly what is wrong. Squid cannot resolve the domain.
By default Squid uses the DNS which is specified in "/etc/resolv.conf" So check that you can do lookups on the server where squid is running. Like: Code:
nslookup google.com |
Thanks for the answer but the squid give me this error for all websites not just google..
resolv.conf domain mediatoolsbox.us nameserver 127.0.0.1 nameserver 216.120.250.182 Quote:
|
What is the result if you open a terminal and run these 2 commands?
Code:
nslookup google.com 127.0.0.1 |
Server: 216.120.250.182
Address: 216.120.250.182#53 ** server can't find google.com: NXDOMAIN Quote:
|
Dude, I am gonna stop helping here if you do not answer my questions. I already went out of my way to pre-empt the problem. I asked for the result of the nslookups, but you have not posted it here. This is not a a squid issue but a most likely a DNS issue that you have.
|
I have posted the output of nslookup google.com 216.120.250.182
Server: 216.120.250.182 Address: 216.120.250.182#53 ** server can't find google.com: NXDOMAIN and nslookup google.com 127.0.0.1 didnt work. what should i do about dns issue? thanks |
Sorry missed that. So the DNS specified is not working (216.120.250.182).
Does this machine have full access to the internet? If so then change the resolve.conf file and specify the Google DNS 8.8.8.8 and/or 8.8.4.4. You can later setup your own DNS if you want, using Bind, for example. After editing "/etc/resolv.conf" it should look like this: Code:
domain mediatoolsbox.us Code:
squid -k reconfigure |
Yes Its seems working thanks dude :) . Do u have any guide how to setup my own dns to use it instead of google public DNS.
|
Install Bind and sometimes running with the default configs may work. This site is excellent to learn Bind:
http://www.zytrax.com/books/dns/ To test your local DNS, you will run like: Code:
nslookup google.com 127.0.0.1 Quote:
|
All times are GMT -5. The time now is 03:24 AM. |