Lookup the IP(s) associated with a hostname (A records) using DNS over HTTPS (DoH)

dog

  • DNS lookup utility.
    It has colorful output, supports DNS-over-TLS and DNS-over-HTTPS protocols, and can emit JSON.
    More information: <https://dns.lookup.dog>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

dog {{example.com}} --https @{{https://cloudflare-dns.com/dns-query}}

click the source code to copy install dog on any operating system with command-not-found.com