2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2018-09-06 15:16:02 +08:00
|
|
|
Long: doh-url
|
|
|
|
Arg: <URL>
|
2021-07-16 15:17:03 +08:00
|
|
|
Help: Resolve host names over DoH
|
2019-07-04 20:02:20 +08:00
|
|
|
Added: 7.62.0
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: dns
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --doh-url https://doh.example $URL
|
2021-11-15 22:58:20 +08:00
|
|
|
See-also: doh-insecure
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: single
|
2018-09-06 15:16:02 +08:00
|
|
|
---
|
2021-07-16 15:17:03 +08:00
|
|
|
Specifies which DNS-over-HTTPS (DoH) server to use to resolve hostnames,
|
2018-09-06 15:16:02 +08:00
|
|
|
instead of using the default name resolver mechanism. The URL must be HTTPS.
|
|
|
|
|
2021-07-16 15:17:03 +08:00
|
|
|
Some SSL options that you set for your transfer will apply to DoH since the
|
2021-03-04 13:55:53 +08:00
|
|
|
name lookups take place over SSL. However, the certificate verification
|
|
|
|
settings are not inherited and can be controlled separately via
|
|
|
|
--doh-insecure and --doh-cert-status.
|
|
|
|
|
2022-07-26 17:00:31 +08:00
|
|
|
This option is unset if an empty string "" is used as the URL. (Added in
|
|
|
|
7.85.0)
|