Howdy. I'm going to tweak the existing e-builds to handle this, however I'll need to add some USE flags to do it. The existing USE flag "tordns" doesn't implement this feature. From "man 8 tsocks": " DNS ISSUES tsocks will normally not be able to send DNS queries through a SOCKS server since SOCKS V4 works on TCP and DNS normally uses UDP. Version 1.5 and up do however provide a method to force DNS lookups to use TCP, which then makes them proxyable. This option can only enabled at compile time, please consult the INSTALL file for more information." From INSTALL: " --enable-socksdns This option causes tsocks to intercept DNS lookups and attempt to force them to use TCP instead of UDP and thus be proxied through the socks server. This is not a very elegant thing to do and should be avoided where possible. --disable-hostnames This disables DNS lookups on names provided as socks servers in the config file. This option is necessary if socks dns is enabled since tsocks can't send a socks dns request to resolve the location of the socks server." Yeah, the upstream says that it isn't very elegant. When has that ever stopped us before? ;)
Ah, I just looked through the "tordns" patch, and indeed this is included there. Large patch, sorry I hadn't checked earlier. :/