Query TXT/SPF, DKIM and DMARC at once
Pull SPF, DMARC and DKIM TXT records in one loop for mail audits
for r in example.com _dmarc.example.com sel._domainkey.example.com; do dig +short TXT $r; done
- tool
- dig11 commands
More dig commands
-
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
-
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