blob: 91539b8e9f50e313319deed4af730c79ff076cc8 [file] [log] [blame]
Elliott Hughes82be86d2017-09-20 17:00:17 -07001Long: resolve
2Arg: <host:port:address>
3Help: Resolve the host+port to this address
4Added: 7.21.3
5---
6Provide a custom address for a specific host and port pair. Using this, you
7can make the curl requests(s) use a specified address and prevent the
8otherwise normally resolved address to be used. Consider it a sort of
9/etc/hosts alternative provided on the command line. The port number should be
10the number used for the specific protocol the host will be used for. It means
11you need several entries if you want to provide address for the same host but
12different ports.
13
14The provided address set by this option will be used even if --ipv4 or --ipv6
15is set to make curl use another IP version.
16
Alex Deymo486467e2017-12-19 19:04:07 +010017Support for providing the IP address within [brackets] was added in 7.57.0.
18
Elliott Hughes82be86d2017-09-20 17:00:17 -070019This option can be used many times to add many host names to resolve.