So if you can make your software (e.g. MicroB, which can) perform DNS lookup via TCP, you can push it through SOCKS to the DNS server, and then make a connection to the resulting IP through SOCKS. Qole's instructions included a setting for that. (I think...)
don't forget to set network.proxy.socks_remote_dns to 1 or true for properly secure browsing...
And TSOCKS, if you can get it working right, makes everything run through the tunnel instead of configuring each app separately...