master-server/deps/curl/docs/cmdline-opts/dns-servers.md
2024-05-15 15:20:32 -04:00

25 lines
615 B
Markdown

---
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
SPDX-License-Identifier: curl
Long: dns-servers
Arg: <addresses>
Help: DNS server addrs to use
Protocols: DNS
Requires: c-ares
Added: 7.33.0
Category: dns
Multi: single
See-also:
- dns-interface
- dns-ipv4-addr
Example:
- --dns-servers 192.168.0.1,192.168.0.2 $URL
- --dns-servers 10.0.0.1:53 $URL
---
# `--dns-servers`
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 may also
optionally be given, appended to the IP address separated with a colon.