Skip to content


dig (domain information groper) is a flexible tool for interrogating DNS name servers. The syntax for this tool is a bit cryptic and is not standard.


Simple usage


Show only the Answer section

dig +noall +answer ""

Show only the returned IP Address

dig +short

Trace a query from the root servers

This is the most accurate way to get a DNS record as it will appear to anybody else on the internet who has not queried it before, and will show you all the DNS steps involved in the resolution.

dig +trace

If this doesn't give you a trace you must specify an alternate DNS server

dig @ +trace