Resolving domains on host for specific SOCKS forwards

[email protected] Sun, 24 Jan 2021 20:42:25 +0000
Newsgroups gmane.comp.web.privoxy.user
Message-ID <[email protected]>
Hello.

I've been wondering if it is possible to use forward-socks5 while still
resolving the domain queries on the host system, without any external
software.

With default settings, if you send a request which gets forwarded to 
SOCKS
proxy, it would be sent "as is", and then fully processed by remote 
SOCKS
server, including domain resolving.

This behaviour can create unneeded complications in environments with
specific DNS setup, especcially if making this setup on remote server 
isn't
feasible.

As such, I'm searching for a way to disable DNS query forwarding, so 
that
domain resolving will happen on the same host as Privoxy, and not on the
SOCKS server. Right now I've managed to achieve that with a combination 
of
badvpn-tun2socks and dante-sockd, but it would be much better it that
feature was built-in.