Scroll to navigation

DOH-CLI(1) Simple DNS-over-HTTPS client DOH-CLI(1)

NAME

doh-cli - a simple DNS over HTTPS client.

SYNOPSIS

doh-cli [ OPTIONS ] domain [ rr ... ]

rr := { A | AAAA | CNAME | HTTPS | MX | NS | SOA | SPF | SRV | SVCB | TXT | CAA | DNSKEY | DS }

DESCRIPTION

This is a simple DoH Python client (RFC 8484, GET), which supports plain and json output.

OPTIONS

show the entire response.

choose DoH endpoint. Possible values of dns are:
The default value.
LibreDNS No-Trackers/Ads.
blocks access to adult, pornographic and explicit sites, also VPNs.
blocks access to phishing, malware and malicious domains.
blocks access to all adult, pornographic and explicit sites.
CIRA's Canadian Shield.
malware and phishing protection.
blocking pornographic content plus protected.
blockign ads, malware and phishing.

request DNSSEC signatures.

display DNS response in json format.
show query time. This value is related to the client request towards the DoH provider, not the actual dns response.

provide your own DoH endpoint. This option overrides the --dns option.

show the entire request.

print version information and exit.

EXAMPLES

doh-cli libredns.gr A

doh-cli --json libredns.gr A

You can use jq(1) to format, parse output:

doh-cli --json libredns.gr A | jq .

September 2025 0.8