Pin a host:port to a chosen IP address.

Section: HTTP and TLS Testing

Override DNS for one request

bash
bash
curl --resolve example.com:443:203.0.113.10 https://example.com
Explanation

Pin a host:port to a chosen IP address.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing HTTP and TLS Testing
Fetch response headers
Make a HEAD request to inspect headers.
OpenIn sheetbashsame section
Verbose HTTP request
Display request and response details.
OpenIn sheetbashsame section
Send request from interface
Use a specific local interface for outbound traffic.
OpenIn sheetbashsame section
Use an HTTP proxy
Send an HTTP request through a proxy.
OpenIn sheetbashsame section
Inspect TLS certificate chain
Open a TLS session and print certificate details.
OpenIn sheetbashsame section
Show certificate dates
Print notBefore and notAfter fields from a certificate file.
OpenIn sheetbashsame section