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.

With the intention of tunneling web traffic through an SSH connection, the following has been done:

I've manually configured a PAC file in IE7 in the LAN Settings dialog. I've verified that traffic is routed through my SSH tunnel that is setup for SOCKS5 dynamic port forwarding. I see that IE7 is always trying to resolve the name locally first.

What I'm looking for is the ability to have the DNS name resolved at the proxy, rather than locally by the browser.

There's a setting in Firefox that specifies DNS remote resolution, and Safari does it automatically. I've verified correct operation for these 2 other browsers. It would be nice if I could get IE to work also.


This is for reference so you could understand where does the question originate from.

Notice: The question was actually found by the help of google but with no answers available. Considering how it is exactly my question I figured I should just copy/paste over here because I don't think I could describe any better (there is a small introduction though).

share|improve this question

3 Answers 3

One workaround, while inconvenient, is to set your DNS from ncpa.cpl to 127.0.0.1, and tell your SSH client to forward 127.0.0.1:53 to the remote side.

share|improve this answer
    
I tried this but didn't work, probably because the DNS server I am trying to use in the remote side doesn't have TCP port 53 enabled, only UDP. I might be able to make it work using fifos as described here, but I don't have to test right now: qcnetwork.com/vince/doc/divers/udp_over_ssh_tunnel.html –  Juan Carlos Muñoz Aug 8 '13 at 19:08
    
I didn't consider that ... good point. –  ultrasawblade Aug 8 '13 at 19:40

Do you know if this happens in IE6?

You'd have to ask Microsoft about this behavior, and if it is intended. I tried looking around there site.

The best guess is that they used to support SOCKS4, then they added SOCKS5, but did not think about how to re-factor the other network behaviors to leverage the protocol features.

When SOCKS5 was implemented in Mozilla, we had a lot of discussion about it. Some people wanted it to be one way (local DNS), others wanted it another way (server-side DNS). I had my preference, but since I had supported Netscape Proxy Server before, I realized that there would be people in both configurations. Adding the option was probably the right choice...

share|improve this answer

Disabling client-Side DNS caching may be one option, although this would cause all DNS resolution to take place remotely. This basically involves disabling the DNS Client service and flushing the local DNS resolver cache.

Instead of checking the local DNS resolver cache first, all DNS resolution would immediately be performed remotely at the proxy DNS servers specified in your TCP/IP settings for the active network connection.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.