Re: [squid-users] dnsserver error

From: Timofey A. Bychkov <boobooin@dont-contact.us>
Date: Mon, 17 Jun 2002 19:13:34 +0400

>
> How should squid resolve this address, if you put it only in your local
> hosts file? Squid does not use your local hosts file for address
resolution.
>
> Hermann
>

Ok, lets examine a situation.
1) we got an "alias" named "search" for host www.rambler.ru (194.67.57.51)
in c:/winnt/system32/drivers/etc/hosts

217.73.192.109 search

We DO NOT use proxy.
Then in browser we request for http://search and we successfully achieve a
www.rambler.ru
In my opinion, browser firstly ask for "search" to system primary DNS
server, then to secondary DNS server and after 2 failed requests it asks to
c:/winnt/system32/drivers/etc/hosts (maybe its possible to do it at first,
like in /etc/host.conf , im not a winnt guru) and then convert an
alias_name to IP and sends a request to http://217.73.192.109/
OK.
The main idea is: the dns convertion is the browser problem (mission)
Then situation #2
2) We DO use proxy.
When option "use proxy" is activated in browser he directs a DNS convertion
to proxy.
No local system Primary and Secondary DNS server at all. No
c:/winnt/system32/drivers/etc/hosts too. Just proxy dnsserver.
If proxy not able to resolve IP he returns 503 error.
Very likely squid's dnsserver appeals to DNS servers that in network
configuration of the server he installed on. And in one message in this
thread we ca see that " Squid doesn't know how to query a hosts-file "
(/etc/hosts)
OK.
If everything is as above than my problem is not easy to solve.
Possible 2 ways:
1) Do not directs a DNS convertion to proxy and solve this locally.
2) Use another DNS resolver than native squid's dnsserver , which can query
/etc/hosts file.

In your message you advise me "As a workaround you can compile Squid
with --disable-internal-dns".
But not everything is clear for me in this situation. What DNS resolver
squid using if compile with that option? What external resolver you know (if
it corresponding to way 2 - its great)?

If if i mistake in my supposition, please correct me.
If you know answers to questions above, please help me.
Thanks
Received on Mon Jun 17 2002 - 09:13:46 MDT

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