doh(1)

NAME
doh - query a DoH server

SYNOPSIS
doh [options] [host] [server URL]

DESCRIPTION
doh sends DNS queries to a DNS-over-HTTPS (DoH) server. If no server URL is specified, it defaults to Cloudflare's public server.

OPTIONS

-h  Show the help output.

-k  Run in insecure mode. It completely switches off certificate checking of the DoH server!

-tTYPE
    Set query type. Supported values are A, AAAA, CNAME and TXT.

-T  Test mode. Returns an exit code if there isn't a proper DoH response.

-v  Verbose mode. Shows lots of details from the underlying HTTPS connection and transfer.

-4  Use only IPv4 transport to DOH server.

-6  Use only IPv6 transport to DOH server.

-r NAME:PORT:ADDRESS
    Provide a fixed IP address for the given host name + port pair. This option can be provided several times. This preloads the DNS cache. Example: "-r example.com:443:127.0.0.1"

-V  Show version number and exit.

WWW
https://github.com/curl/doh