I have a gentoo linux where I run an application that makes requests to a certain domain but does not respect my proxy setting I made in the environment variables (http_proxy, https_proxy, HTTP_PROXY, HTTPS_PROXY).
Unfortunately I can't configure that application to respect my proxy.
So I wonder if it is possible, to redirect these request to the proxy server manually.
My idea was an entry in /etc/hosts ?
Is it right that etc/hosts takes precedence before my dns server, to resolve the request?
Does anybody know if that is possible or has alternative ideas to redirect requests to certain domains to my proxy server?
If this is possible what would be the entry need to look like. Given the request is made to anydomain.com and my proxy is my.proxy.com:1234?
Thanks alot!