ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.64k stars 187 forks source link

Support server-side DNS resolution when using Socks5h for internal/external proxy #1668

Open seidnerj opened 1 year ago

seidnerj commented 1 year ago

Description

Socks5 usually indicates that host name resolution to IP address happens on the client side whereas Socks5h denotes it happens on the server side. It would be great to have support for server-side DNS resolution (AKA "socks5h")

Why this feature/change is important?

Many times, the result of responses differ depending on what IP you connect to (e.g. geographical considerations etc.).

When proxying through Proxyman using an external socks proxy, resolution happens where Proxyman is installed, while all other traffic goes through the socks server is intended, this creates inconsistent results comparing to connecting directly to the Socks server which is confusing an undesirable.

The same is true when Proxyman supports a socks proxy as well (not just for an external proxy).

NghiaTranUIT commented 1 year ago

Proxyman only supports SOCKS4 and SOCKS5, but not socks5h. I'd keep this ticket open, if we have more requests, I can consider to support it 👍