# Resolve a hostname to IP(s)
dig +short example.com # 93.184.216.34
host example.com # example.com has address 93.184.216.34
getent hosts example.com | awk '{print $1}' # respects /etc/hosts AND DNS
# Look up MX records
dig +short MX example.com
# 0 .
# Reverse DNS (PTR)
dig +short -x 8.8.8.8 # dns.google.
host 8.8.8.8
# DNSSEC + TTL info
dig example.com +noall +answer +ttlid
# Query a specific resolver
dig @1.1.1.1 example.com
Create a free account and build your private vault. Share publicly whenever you want.