[Qt-interest] Host lookups not working with QNetworkProxy?

Bastian Bense bastibense at gmail.com
Wed Apr 29 11:19:06 CEST 2009


Hey guys,

I'm using QNetworkProxy to provide SOCKS5 support in my application
and Tor (www.torproject.org) to provide additional privacy.
In order to use some features of Tor (hidden services), the requested
host name has to be looked up by Tor's SOCKS service and not on the
local machine's normal DNS.
It seems that QNetworkProxy has a host lookup capability, so I assume
that a QTcpSocket would pass the hostname to the SOCKS proxy instead
of looking it up itself.

However, for some reason QTcpSocket does look up the hostname itself
before passing the resulting IP address to the SOCKS proxy. Is there a
way to have the socket pass the lookup requests to the SOCKS proxy?

Thanks in advance!
-- 
Best regards,
Bastian Bense



More information about the Qt-interest-old mailing list