Proxy only for some domains
<p>Is there a possibility to configure proxy (global or for few processes) only for one domain (and its subdomains)?</p>

<p>What I'd like to achieve:
All connections (HTTP/HTTPS, database connections, etc) to the subdomains of <code>dupa.xyz</code> should go through a proxy, connections to other domains should be direct. I know that I can define <code>all_proxy</code> and a long exclusion list using <code>no_proxy</code> environment variables, but I don't feel that it is the right way. </p>

<p>Is there maybe a third party application which provides this functionality?</p>