aboutsummaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/resolve.d
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-11-28 00:50:25 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-11-28 00:50:25 +0100
commit5c4a526388e5d45f332d241b03114eaff98c53ce (patch)
treee6f7e4c19074b9a892b5d3c80aaed6722f8c096d /docs/cmdline-opts/resolve.d
parent720ea577dc2f850c24adbba463e307eed017bc11 (diff)
cmdline-opts: more command line options documented
Moved over to the new format
Diffstat (limited to 'docs/cmdline-opts/resolve.d')
-rw-r--r--docs/cmdline-opts/resolve.d17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/cmdline-opts/resolve.d b/docs/cmdline-opts/resolve.d
new file mode 100644
index 000000000..ba3967a14
--- /dev/null
+++ b/docs/cmdline-opts/resolve.d
@@ -0,0 +1,17 @@
+Long: resolve
+Arg: <host:port:address>
+Help: Resolve the host+port to this address
+Added: 7.21.3
+---
+Provide a custom address for a specific host and port pair. Using this, you
+can make the curl requests(s) use a specified address and prevent the
+otherwise normally resolved address to be used. Consider it a sort of
+/etc/hosts alternative provided on the command line. The port number should be
+the number used for the specific protocol the host will be used for. It means
+you need several entries if you want to provide address for the same host but
+different ports.
+
+The provided address set by this option will be used even if --ipv4 or --ipv6
+is set to make curl use another IP version.
+
+This option can be used many times to add many host names to resolve.