drill
Perform various DNS queries. tldr-pages
On several platforms
Several platforms
Look up the IP(s) associated with a hostname (A records)
drill example.comIdentifyLook up the mail server(s) associated with a given domain name (MX record)
drill mx example.comIdentifyGet all types of records for a given domain name
drill any example.comIdentifySpecify an alternate DNS server to query
drill example.com @8.8.8.8IdentifyPerform a reverse DNS lookup on an IP address (PTR record)
drill -x 8.8.8.8IdentifyPerform DNSSEC trace from root servers down to a domain name
drill -TD example.comIdentifyShow DNSKEY record(s) for a domain name
drill -s dnskey example.comIdentify