2022-06-14 06:12:03 +08:00
|
|
|
c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
|
|
SPDX-License-Identifier: curl
|
2016-11-16 06:44:58 +08:00
|
|
|
Long: dns-servers
|
|
|
|
Arg: <addresses>
|
|
|
|
Help: DNS server addrs to use
|
|
|
|
Requires: c-ares
|
|
|
|
Added: 7.33.0
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: dns
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --dns-servers 192.168.0.1,192.168.0.2 $URL
|
2021-11-15 22:58:20 +08:00
|
|
|
See-also: dns-interface dns-ipv4-addr
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: single
|
2016-11-16 06:44:58 +08:00
|
|
|
---
|
|
|
|
Set the list of DNS servers to be used instead of the system default.
|
|
|
|
The list of IP addresses should be separated with commas. Port numbers
|
2021-03-22 23:50:57 +08:00
|
|
|
may also optionally be given as *:<port-number>* after each IP
|
2016-11-16 06:44:58 +08:00
|
|
|
address.
|