Linux

dig

SafeDNS query

dig <name>

More detailed DNS responses than nslookup; +short for brevity.

Examples

  • dig example.com +shortJust the IP, concise

Syntax

dig <name> [@DNS] [+short]

Before you run it

Read-only.

Used when you see

Name resolution problems
3
Query a different DNSTest against 8.8.8.8
See the whole flow →
Checking anti-spoofing (SPF/DKIM)
1
Verify the domain's SPF/DMARC recordsdig TXT for the domain and _dmarc subdomain.
See the whole flow →

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store