xref: /curl/docs/cmdline-opts/dns-interface.md (revision e7219c2b)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, 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