I need solve how to request an API through a VPN in a local environment, this API needs to be consumed with a https domain but it has to be configured to redirect to specific IP address in the /etc/hosts configuration like this:
So making a ping to subdomain.domain.com will result in:
PING https://subdomain.domain.com (10.5.1.1): 56 data bytes
When I use the reqwest client it always occur a timeout and I'm afraid the domain to IP conversion never happen, if I do a local CURL it works, but not with my http client.
Any ideas what should I need to do? I'm lost.
Thanks in advance.