Hello. I'm trying to set up jabberd2 routing through Tor, to make it possible to use .onion address as jabber server. I have added "export LD_PRELOAD=$LD_PRELOAD:libproxychains4.so" to jabberd2 init.d script, and I see that it is getting loaded on startup.
However, DNS queries are not going through Tor. s2s.log tells me:
[notice] dns lookup for **.onion failed
As I see in Tor logs, jabberd2 even tries to connect some IPs through Tor.
So my question is - what is requirments for software, to be possible to route DNS queries through Tor? Why does software like firefox and pidgin started with proxychains just send DNS queries through Tor out-of-box, but jabberd2 with modified LD_PRELOAD doesn't?

 

Last edit: Alexander Varnin 2013-12-17