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