Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
HTTP or SOCKS proxy? –  grawity Apr 19 '11 at 14:14
add comment

migrated from stackoverflow.com Apr 19 '11 at 10:08

This question came from our site for professional and enthusiast programmers.

1 Answer

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.

share|improve this answer
    
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... –  wireshark Apr 19 '11 at 9:53
    
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 Apr 19 '11 at 12:14
1  
More generally what people think is necessary, in the context of browser internals, is very rarely correct. –  Rushyo Apr 19 '11 at 12:15
    
@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. –  grawity Apr 19 '11 at 14:16
    
Ok let me put it another way: It's based on the implementation - shorthand for what I wrote. –  Rushyo Apr 19 '11 at 15:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.