Dig
Published
Updated
🔍
Query DNS records from terminal.
dig +short example.com shows the IP a domain points to. Use dig to check DNS records from the terminal.
Look up DNS records with dig
dig asks DNS for the records of a domain. Use it to check whether a domain points to fortrabbit, see DNS troubleshooting.
# A record, short answer
dig +short example.com
# CNAME record of a subdomain
dig +short CNAME www.example.com
# Ask a public resolver instead of the local one
dig +short www.example.com @1.1.1.1
# IP of the environment
dig +short {{app-env-id}}.frbit.app
Without +short, dig prints the full answer with TTL and the resolver it used. macOS and most Linux distributions ship with dig. On Windows, use nslookup example.com or dig in WSL.