4
1
I've configured my browser(firefox) to use proxy ,but I find that it's still looking up the dns when I visit http://domain.name, why is that still necessary?
4
1
I've configured my browser(firefox) to use proxy ,but I find that it's still looking up the dns when I visit http://domain.name, why is that still necessary?
1
Even when connecting via a proxy your browser needs to get the IP address for the web site domain. Generally it will directly query the DNS servers. If you are using a Socks 5 proxy, you can have the DNS queries go through your proxy. There is a check box for that in the Proxies option panel in Firefox.
Why does the browser need to know the IP address for the web site domain when it's using proxy?I don't think it's necessary at all... – None – 2011-04-19T09:53:58.133
As explained: DNS queries are not performed by the proxy. If you want DNS queries to be performed by the proxy, then you have to use a proxy protocol that tells the proxy to do that, eg. SOCKS 5. – Rushyo – 2011-04-19T12:14:32.680
1More generally what people think is necessary, in the context of browser internals, is very rarely correct. – Rushyo – 2011-04-19T12:15:27.763
@Rushyo: HTTP proxy servers always perform DNS queries (confirmed by watching raw traffic), as do SOCKS 4a and optionally SOCKS 5 proxies. It's only SOCKS 4 that requires the browser to do it. – user1686 – 2011-04-19T14:16:04.603
Ok let me put it another way: It's based on the implementation - shorthand for what I wrote. – Rushyo – 2011-04-19T15:20:55.653
HTTP or SOCKS proxy? – user1686 – 2011-04-19T14:14:56.477