kdig
Advanced DNS lookup utility. tldr-pages
On several platforms
Several platforms
Look up the IP(s) associated with a hostname (A records)
kdig example.comIdentifySpecify a specific DNS server to query (e.g. Google DNS)
kdig example.com @8.8.8.8IdentifyQuery a specific DNS record type associated with a given domain name
kdig example.com AIdentifyLook up the IP(s) associated with a hostname (A records) using DNS over TLS (DoT)
kdig -d @8.8.8.8 +tls-ca +tls-host=dns.google example.comIdentifyLook up the IP(s) associated with a hostname (A records) using DNS over HTTPS (DoH)
kdig -d @1.1.1.1 +https +tls-hostname=1dot1dot1dot1.cloudflare-dns.com example.comIdentify