Report this

What is the reason for this report?

How to use google._domainkey as hostname for DNS record when setting up DKIM.

Posted on February 21, 2021

When setting up DKIM for gmail Google uses the value google._domainkey as the DNS Host name (TXT record name).

This video shows the correct name being added in a control panel. https://www.youtube.com/watch?v=9UOQ-miNCAk

However when I use that value for my hostname DO adds my domain to it.

For example, google._domainkey.example.com.

Google isn’t able to find this DKIM record with the wrong name.

How do I fix this?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @thr333one,

When adding the google._domainkey as a TXT DNS record or any DNS record infact, this is always added to the domain, it’s just how DNS works

Example: I have a domain example.com I want to add a TXT record to that domain. There are two possibilities, add it for the main domain - example.com or like in your case add it for google._domainkey. When you add it for google._domainkey it automatically picks it up as being part of the main domain - google._domainkey.example.com. That’s the proper way for a DNS TXT record or again any other DNS record to look like.

Please note that you might need to wait sometime before Gmail star seeing your DNS. Usually, the DNS propagation period can be up to 48 hours.

Regards, KFSys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.