Extract DKIM key for primary and addon domains


Aug 21, 2016
cPanel Access Level
Reseller Owner
I have had a lot of problems lately with DKIM and external DNS. Cpanel doesn't have a proper DKIM implementation and doesn't give any info about domains.

I have found a way to retrieve DKIM for any domain. Here is how:

1. Open site:

2. Enter the following information in the field of lookup tool:
Host/IP address: default._domainkey.example.com
DNS server:
Query type: TXT
Don’t forget to replace example.com with your hosted domain name.

3. Click "Query!". It will return two chunks of data looking like

v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4aRAKPIsvUuNEWW6dAaIB75 7i/9NLGBvuYq+G5BE2vaSArA6wbLs/Qjoi9aV/iwBNwCaMK71k4IwPLzKvqUYKcTpS1Bd HN7mkbr3HKAx7Jy/IdwEM4hKmAnQ+yZZz9ho/938sICmsfKaByHVOwbAnkKGLhDPJCKQh pXMpqBQn/eWNPS6+KzpM/yQaxJI0H8dW


5LyNcrK6jaD2MhgQwjjDDeAYJiofNo/QK9Qgrk6p9l/vD1nOd8QmjRqN2JY+gnNIDFmCJ c2FqNGGbLI7Oa+tDlpGNZdbDmJmHovNgVUjT+F5eu3wUd5PPPs70T+4wBvUA6Q6XQDA+Y 04mDXA+QiyQIDAQAB;

4. Open any text editor capable of handling long lines, and paste both chunks into it. Do not allow whitespace between chunks, make sure there's no whitespace on either sides, as well. The resulting long string is DKIM record you need to create.

5. Go to the DNS and add the required record.

Credits for this go to billing.mxroute.com/knowledgebase.php?action=displayarticle&id=11
Last edited by a moderator: