dig commands
11 commands, each with a one-line explanation. Click a command to copy it, or its title for details.
Commands 11 shown
-
dig +noall +answer example.comStrip headers/stats; show only the answer section for scripting/diffs
-
dig +nssearch example.comQuery each authoritative NS directly; reveals SOA serial mismatches between them
-
dig axfr @ns1.example.com example.comDump full zone if AXFR is open; note: success on public NS is a misconfig
-
dig +dnssec +multi example.com @1.1.1.1Show RRSIG records; check AD flag in flags line for validated answer
-
dig +trace +nodnssec example.comFollow delegation from root to authoritative, hiding RRSIG/DS clutter
-
diff <(dig +short @1.1.1.1 example.com) <(dig +short @8.8.8.8 example.com)Spot split-horizon or stale cache differences between resolvers
-
dig -x 2606:4700:4700::1111 +shortPTR for an IPv6 address; -x expands nibble format automatically
-
for r in example.com _dmarc.example.com sel._domainkey.example.com; do dig +short TXT $r; donePull SPF, DMARC and DKIM TXT records in one loop for mail audits
-
dig +short CAA example.comShow which CAs may issue certs; missing CAA lets any CA issue
-
dig +short SRV _sip._tcp.example.comGet priority/weight/port/target for a service; used by AD, SIP, XMPP
-
dig +tcp +ttlunits +noall +answer example.com @8.8.8.8Test TCP/53 reachability; +ttlunits prints TTL as 1h/30m not raw seconds
no commands match — try a different search