usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
21.79k stars 1.03k forks source link

DNS does not work over socks5 proxy #820

Open UnsolvedCypher opened 8 months ago

UnsolvedCypher commented 8 months ago

When attempting to reach a server only available in the proxy, I get ENOTFOUND. It appears that the DNS resolution doesn't happen over the proxy.

This appears to be an issue with using socks-proxy-agent according to this StackOverflow post. Perhaps switching to socks5-http(s)-client is the solution.

I am able to reproduce this in the latest version (0.27.2). I am happy to pull a branch and test a fix if needed.

Mika56 commented 7 months ago

It doesn't work over http either. It feels like Bruno tries to manually resolve the name before sending the request through the proxy? My dev environment uses a proxy which is responsible for resolving the DNS queries, so I can't make any query for now :(

sentoc commented 5 months ago

Issue still there on version 1.7.1

emilio-cea commented 2 weeks ago

Using DNS through Socks5 still doesn't work using Bruno 1.19.0. To be clear, queries do work using this proxy but not to addresses that are not discoverable by a surface request e.g: any .onion site.