xref: /curl/docs/cmdline-opts/doh-url.md (revision 6e494a23)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: doh-url
5Arg: <URL>
6Help: Resolve hostnames over DoH
7Added: 7.62.0
8Category: dns
9Multi: single
10See-also:
11  - doh-insecure
12Example:
13  - --doh-url https://doh.example $URL
14---
15
16# `--doh-url`
17
18Specifies which DNS-over-HTTPS (DoH) server to use to resolve hostnames,
19instead of using the default name resolver mechanism. The URL must be HTTPS.
20
21Some SSL options that you set for your transfer also applies to DoH since the
22name lookups take place over SSL. However, the certificate verification
23settings are not inherited but are controlled separately via --doh-insecure
24and --doh-cert-status.
25
26This option is unset if an empty string "" is used as the URL.
27(Added in 7.85.0)
28