Skip to main content

DKIM and CloudFlare

Comments

9 comments

  • syslint
    Are you sure the domain keys are resolving properly using "dig" from the cloudflare dns cluster ?
    0
  • esports
    Are you sure the domain keys are resolving properly using "dig" from the cloudflare dns cluster ?

    I am not sure what you mean. Can you be more specific, in a noob way? If it helps, prior moving domain, the cf was resolving the dns correctly.
    0
  • syslint
    Run the following command in your shell. # dig -t TXT default._domainkey.YOURDOMAINNAME.COM +trace
    0
  • esports
    Run the following command in your shell. # dig -t TXT default._domainkey.YOURDOMAINNAME.COM +trace

    Returns this: ;; global options: +cmd . 6158 IN NS c.root-servers.net. . 6158 IN NS f.root-servers.net. . 6158 IN NS m.root-servers.net. . 6158 IN NS j.root-servers.net. . 6158 IN NS g.root-servers.net. . 6158 IN NS l.root-servers.net. . 6158 IN NS a.root-servers.net. . 6158 IN NS b.root-servers.net. . 6158 IN NS d.root-servers.net. . 6158 IN NS i.root-servers.net. . 6158 IN NS h.root-servers.net. . 6158 IN NS e.root-servers.net. . 6158 IN NS k.root-servers.net. ;; Received 228 bytes from 8.8.8.8#53(8.8.8.8) in 92 ms com. 172800 IN NS a.gtld-servers.net. com. 172800 IN NS b.gtld-servers.net. com. 172800 IN NS c.gtld-servers.net. com. 172800 IN NS d.gtld-servers.net. com. 172800 IN NS e.gtld-servers.net. com. 172800 IN NS f.gtld-servers.net. com. 172800 IN NS g.gtld-servers.net. com. 172800 IN NS h.gtld-servers.net. com. 172800 IN NS i.gtld-servers.net. com. 172800 IN NS j.gtld-servers.net. com. 172800 IN NS k.gtld-servers.net. com. 172800 IN NS l.gtld-servers.net. com. 172800 IN NS m.gtld-servers.net. ;; Received 487 bytes from my.IP in 103 ms I guess this means that I have none. How can I generate one, copy it and add it in WHM & CloudFlare? If I click enable / disable in CPanel I do not see the key to copy it
    0
  • cPanelMichael
    Hello :) Please let us know if this document from CloudFlare is helpful: How do I add DKIM records? Also, have you used a website such as IntoDNS to verify which name server your DNS records are handled at? Thank you.
    0
  • esports
    Hello :) Please let us know if this document from CloudFlare is helpful: How do I add DKIM records? Also, have you used a website such as IntoDNS to verify which name server your DNS records are handled at? Thank you.

    Thank you for your reply. I know how to add the DKIM key to CloudFlare. I don't have a DKIM key to add... The nameservers are the ones from CloudFlare. It works ok. I just don't have a DKIM. I need to generate one, add it to DNS Editor in WHM and to CloudFlare. Not sure how to generate one..... (or better said, a new one) Edit: I did check intodns . Everything was fine there. The only thing I am missing is a DKIM key which doesn't show up there
    0
  • esports
    Last night I tried again: I activated DKIM in CPANEL, added a new TXT in DNS Editor (WHM) and the same in CloudFlare. This is the result I got. Not sure what to do. The "public key" there is also the one displayed when running # dig -t TXT default._domainkey.YOURDOMAINNAME.COM +trace - Removed - I also do not understand now what do the DNS entries in the WHM do? So far I know, Cloudflare handles all the DNS so I went on and deleted all DNS from WHM... Now I cannot activate / deactivate SPF and DKIM...
    0
  • cPanelMichael
    Last night I tried again: I activated DKIM in CPANEL, added a new TXT in DNS Editor (WHM) and the same in CloudFlare.

    Hello :) You don't need to add an additional TXT record to the DNS zone on the cPanel server after enabling DKIM via the "Authentication" option in cPanel. This option automatically adds the DNS record for you. Thus, you simply need to copy the record over to CloudFlare. Please ensure you remove any existing TXT records for this DKIM entry in cPanel, and then enable DKIM through cPanel. You can obtain the record by viewing the zone file through "WHM >> Edit DNS Zone" or via this command:
    cat /var/named/domain.com.db
    Thank you.
    0
  • PHILLIP BOOTH
    This is what you are using "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3+thDBzPCu5HvHAo4176Jg04x42FYoYtOPIEf6Px1ScCfdf2lFp9QDQL1iXc89IkA4Tpu8GjWc/U80zGSXYY3uNNTjr8miHdKAGfNyzGGIOKcRmIqKk6wBzNWVICPDOZnXRYf6wiQXNM7sgK2kc2QaCN27JX6Wt3WSgp7yfug1qtTha9PavQSxf4bQewYCs66" GrExjY3SmEdduvT/+AwcZBlnDAMdCYG9UYAVpxEWahITCGalv8XfrhWWG/t/ar0tQH2ZeIj0Spo+TlUx0b+XLqGKZkp7AoMT61ReW/IAVgNuQXAqT18cnLE5IIFtkKOpT8UP18lc+7E7qlkQsVWYQIDAZAB Change it to this "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3+thDBzPCu5HvHAo4176Jg04x42FYoYtOPIEf6Px1ScCfdf2lFp9QDQL1iXc89IkA4Tpu8GjWc/U80zGSXYY3uNNTjr8miHdKAGfNyzGGIOKcRmIqKk6wBzNWVICPDOZnXRYf6wiQXNM7sgK2kc2QaCN27JX6Wt3WSgp7yfug1qtTha9PavQSxf4bQewYCs66GrExjY3SmEdduvT/+AwcZBlnDAMdCYG9UYAVpxEWahITCGalv8XfrhWWG/t/ar0tQH2ZeIj0Spo+TlUx0b+XLqGKZkp7AoMT61ReW/IAVgNuQXAqT18cnLE5IIFtkKOpT8UP18lc+7E7qlkQsVWYQIDAZAB" The key is broken down into multiple parts remove the " in the middle and join the string together and then add the " to the end so 66" Gr becomes 66Gr
    0

Please sign in to leave a comment.