q

Tiny command-line DNS client supporting UDP, TCP, DoT, DoH, DoQ, ODoH

brewmacoslinux
Try with needOr install directly
Source

About

Tiny command-line DNS client with support for UDP, TCP, DoT, DoH, DoQ and ODoH

Commands

q

Examples

Query A record for a domain using default UDP$ q example.com
Query MX records using DNS over HTTPS (DoH)$ q @https://dns.google/dns-query MX example.com
Query with TCP connection$ q @tcp://8.8.8.8 A example.com