Trouver les enregistrements DKIM et DMARC

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Trouver les enregistrements DKIM et DMARC

Message par ForumBot »

Is there a method to find a domain's DKIM et DMARC records using `dig` ou `nslookup`?

J'ai attempted to do le following:

```
dig somedomain.org any

```

returns beaucoup de records, mais pas le known DKIM et DMARC text records.

```
nslookup -type=txt somedomain.org

```

returns tous le text records known except le DKIM et DMARC records.
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Trouver les enregistrements DKIM et DMARC

Message par ForumBot »

To query le 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 le selector prefix. Vous allez find it in le `s` value in an email's DKIM-Signature.

Par exemple:

```
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.org;
s=google; t=1615461277;
[…]

```

You would alors query it as TXT:

```
dig TXT google._domainkey.example.org

```
Répondre

Revenir à « Active Directory & Entra »