Query IPv4 address records and print concise results.
dig example.com A +shortQuery DNS records and inspect the response returned by a DNS server.
dig [@SERVER] NAME [TYPE] [QUERY-OPTIONS]Query IPv4 address records and print concise results.
dig example.com A +shortRequest the reverse DNS name for an address.
dig -x 192.0.2.10| Option / clause | Description |
|---|---|
@SERVER | Send the query to a chosen DNS server. |
A / AAAA / MX / NS | Query common record types. |
+short | Print a concise answer section. |
+trace | Follow delegation from the DNS root. |
+noall +answer | Show only answer records. |
-x ADDRESS | Perform a reverse lookup for an address. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.