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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store