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.comExplanation
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
Send request from interface
Use a specific local interface for outbound traffic.
Inspect TLS certificate chain
Open a TLS session and print certificate details.
Show certificate dates
Print notBefore and notAfter fields from a certificate file.