How to still using DNS even when switch the proxy in Mozilla Firefox?
2014-07
I'm using some DNS on my connection on Ubuntu 14 and then I want to still using it even I switch the proxy on foxyproxy. Can I do it?
If you use Google's DNS, 8.8.8.8, for example, try this one: Advanced >> Network >> Connections >> No Proxy for: 8.8.8.8
see more here: https://developer.mozilla.org/en/docs/No_Proxy_For_configuration
The behaviour of DNS is different for different types of proxies.
In case of an HTTP proxy: Your HTTP request is sent to a HTTP proxy server which resolves the domain. Since the proxy is forwarding the request to the actual destination server, only it needs to know the real IP of the destination host.
In case of a SOCKS proxy: Firefox (by default) resolves DNS locally but it can be forced to resolve DNS trough a SOCKS proxy by entering about:config in the address bar and enabling the setting "network.proxy.socks_remote_dns".
I am using Firefox 3.5.7 with FoxyProxy. I have an ssh tunnel forwarding 8080 through to an HTTP proxy server on the other end. With FoxyProxy, I send work traffic direct but everything else goes through the proxy server. DNS lookups, though, still go to work's DNS servers for resolution. Is there an add-on that can funnel certain DNS traffic to the OS but shove everything else through my ssh tunnel? It's a long shot, but it never hurts to ask....
In firefox type this in your address bar:
about:config
Click that you promise to be careful.
In the filter textbox, type: proxy
Find the preference name called *network.proxy.socks_remote_dns*. Double click it to set it to true.
Firefox will now proxy DNS requests instead of trying to resolve them locally.
Configure your ssh client to do Dynamic forwarding (-D flag on the openssh client) so that it acts like a SOCKS server. Then you can do remote DNS lookups via SOCKS. A straight up HTTP proxy doesn't support what you want.
FoxyProxy has info on how to do what you want with SOCKS. Privoxy is another good option, too.