问题原文
原帖链接 · Evil Genius · CC BY-SA 3.0
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 somedomain.org any
returns many records, but not the known DKIM and DMARC text records.
nslookup -type=txt somedomain.org
returns all the text records known except the DKIM and DMARC records.
已采纳解答
原帖链接 · gparent · CC BY-SA 4.0
To query the TXT record for DMARC, you can use:
dig TXT _dmarc.example.org
To query for a particular record for DKIM, you would need to know the selector prefix. You will find it in the s value in an email's DKIM-Signature.
For example:
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.org;
s=google; t=1615461277;
[…]
You would then query it as TXT:
dig TXT google._domainkey.example.org
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
