Allow DNS override via --connect-to curl paramater

We have a need to validate changes in our akamai staging. This is possible by overriding DNS and connecting to akamai staging dns entries, instead of production.
For this the connect-to parameter of curl can be exposed for configuration.

An example of how this works:

curl --connect-to www.microsoft.com:443:www.microsoft.com-c-3.edgekey-staging.net https://www.microsoft.com


In the above example the DNS resolution of www.microsoft.com is changed to whatever ip www.microsoft.com-c-3.edgekey-staging.net returns. Allowing connection to the hostname while on a different ip than is in DNS.

Please authenticate to join the conversation.

Upvoters
Status

Product Review

Board

πŸ’‘ Feature Request

Date

11 months ago

Subscribe to post

Get notified by email when there are changes.