Skip to main content

How to check TXT records from the command line?

Command line DNS queries for TXT records:

Using dig:

dig TXT tidalmail.com

dig TXT _dmarc.tidalmail.com

dig TXT selector._domainkey.tidalmail.com

Using nslookup:

nslookup -type=TXT tidalmail.com

Using host:

host -t TXT tidalmail.com

Tips:

Add +short to dig for cleaner output.

Query specific nameservers: dig @8.8.8.8 TXT domain.com

Check authoritative servers: dig +trace TXT domain.com

Output includes the full record. Long records show as multiple quoted strings.

Directly querying the port registry for specific documents. Multiple methods, same result.