res_init() is not always implicitly called
Brought to you by:
delius
I have built tsocks with --disable-hostnames, --enable-socksdns.
On my Debian sid system, an application using getpeername does not seem to implicly call res_init(), so that the resolver options are never set to use TCP DNS methods.
The only way I found to fix this was to explicitly call res_init() at the end of tsocks _init().