Question

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

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?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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