Check DNS TXT Records


Quick way to get DNS TXT records under Linux is use the dig command:

# dig TXT

To look up DKIM or DMARC records, you specify the prefix in the domain such as:

# dig TXT


Linux or Windows 7 DOS shell can be used to retrieve the DNS TXT records for a domain using the same command:

# nslookup
> server
> set type=txt

The result is:

Address:      text = "v=spf1 ip4: ip4: ~all"

The server directive in the command above allows us to check the DNS TXT records using the DNS server where the timeout problem is occurring. Without this directive, you would be troubleshooting against your own local DNS server such as that provided by your ISP.

September 30th, 2012 Posted by Jon Jaroker Filed in: Email Troubleshooting

Be the first to comment. Leave a comment

Your email address will not be published. Required fields are marked *