doh - Man Page

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

Info

17 Sep 2019 doh 0.1 doh Manual