Check DNS TXT Records
dig
Quick way to get DNS TXT records under Linux is use the dig command:
# dig google.com TXT
To look up DKIM or DMARC records, you specify the prefix in the domain such as:
# dig _dmarc.google.com TXT
nslookup
Linux or Windows 7 DOS shell can be used to retrieve the DNS TXT records for a domain using the same command:
# nslookup
> server google-public-dns-a.google.com
> set type=txt
> google.com
The result is:
Server: google-public-dns-a.google.com
Address: 8.8.8.8#53
google.com text = "v=spf1 include:_netblocks.google.com ip4:216.73.93.70/31 ip4:216.73.93.72/31 ~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.
Be the first to comment. Leave a comment