Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Is there a method to find a domain's DKIM and DMARC records using dig or nslookup?

I have attempted to do the following:

dig any

returns many records, but not the known DKIM and DMARC text records.

nslookup -type=txt

returns all the text records known except the DKIM and DMARC records.

share|improve this question
DKIM records are applied to arbitrary subdomains (Google Apps uses that you'd have to know/guess to look for. –  ceejayoz Aug 29 '14 at 15:38
It depends on the selector prefix used, part of the DKIM header in a signed email –  Mathias R. Jessen Aug 29 '14 at 15:57

1 Answer 1

up vote 10 down vote accepted

To query the TXT record for DMARC, you can use:

dig TXT

To query for a particular record for DKIM, you would need to know the selector prefix. You would then query it as TXT (for example with a google one):

dig TXT
share|improve this answer
Worth mentioning is that in the DKIM-Signature header the selector name is found in the s= value. –  andol Aug 29 '14 at 16:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.