xref: /curl/docs/cmdline-opts/dns-servers.md (revision 911fc964)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: dns-servers
5Arg: <addresses>
6Help: DNS server addrs to use
7Protocols: DNS
8Requires: c-ares
9Added: 7.33.0
10Category: dns
11Multi: single
12See-also:
13  - dns-interface
14  - dns-ipv4-addr
15Example:
16  - --dns-servers 192.168.0.1,192.168.0.2 $URL
17  - --dns-servers 10.0.0.1:53 $URL
18---
19
20# `--dns-servers`
21
22Set the list of DNS servers to be used instead of the system default. The list
23of IP addresses should be separated with commas. Port numbers may also
24optionally be given, appended to the IP address separated with a colon.
25