Disable Torsocks DNS feature

1.8k Views Asked by At

How can I stop torsocks from making DNS queries?

Instead I want to make normal DNS queries. I know that will mean a DNS leak, but I need it.

Because for some reason when I do torsocks npm login it returns a socket hang up error, which I remember I fixed it, back in the day, by blocking those DNS queries.

Any ideas are welcome.

EDIT: Using this approach:

tordns_enable = false in the conf file

Returns me this, when running the command shown above:

ERROR: npm is setuid. torsocks will not work on a setuid executable.

1

There are 1 best solutions below

3
drew010 On BEST ANSWER

If you edit your torsocks.conf file and add a line:

tordns_enable = false

That should disable DNS resolution over Tor and instead use the computer's regular DNS resolvers.