DNS lookup in Linux Terminal

+short prints just the answer data. Use dig {host} MX or dig {host} -t TXT for other record types; ANY queries are commonly refused by resolvers (RFC 8482).

Shell: Linux Terminal · Category: network · Risk level: safe

What you provide

The exact syntax, a worked example and the flag reference are behind sign-in.

This is a limited preview. The full walkthrough, command syntax and copy-ready examples are available to signed-in users.

Sign in to read the full page