xref: /aosp_15_r20/external/curl/docs/cmdline-opts/dns-interface.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1---
2c: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3SPDX-License-Identifier: curl
4Long: dns-interface
5Arg: <interface>
6Help: Interface to use for DNS requests
7Protocols: DNS
8Added: 7.33.0
9Requires: c-ares
10Category: dns
11Multi: single
12See-also:
13  - dns-ipv4-addr
14  - dns-ipv6-addr
15Example:
16  - --dns-interface eth0 $URL
17---
18
19# `--dns-interface`
20
21Send outgoing DNS requests through the given interface. This option is a
22counterpart to --interface (which does not affect DNS). The supplied string
23must be an interface name (not an address).
24