Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add CNAME records to Google Domain?

I just signed up for SendGrid and I need to add these (top image) SendGrid CNAME records to my Google domain. The issue is that it doesn't tell me what to put into the first field ("@"). If I leave it blank I get an error (see bottom image). Please help.

PS: Adding www as per the Google Domains Help page gives me a naming conflict as there is already an A record with www.

SendGrid CNAME records to install Google Domains records list

like image 823
FiringBlanks Avatar asked Jun 23 '20 03:06

FiringBlanks


People also ask

Where are CNAME records in Google Domains?

Log in to your Google Domains account. Click on the domain you want to update with a CNAME record. Under Resource Records, click Custom records, then Manage custom records.

How do I add a DNS record to Google?

In the Google Cloud console, go to the Cloud DNS page. Click the zone for which you want to create a resource record set. On the Zone details page, click Add record set. Enter the DNS name for the record set—for example, test.example.com .


2 Answers

You need to add the CNAME records with the domain you are trying to authenticate removed from the host name. For example, if you are trying to authenticate the domain abc.com, SendGrid will show three CNAME records with host names: emXXXX.abc.com, s1._domainkey.abc.com and s2._domainkey.abc.com. In Google Domains you will need to add three custom resource records of type CNAME with names: emXXXX, s1._domainkey and s2._domainkey. For each of these you must add the value SendGrid provides as the data of the CNAME record. It can take a while for the information to propagate, so verification won't work straight away. Retry after a few hours.

like image 156
Ciambello Avatar answered Oct 15 '22 01:10

Ciambello


It took me a few days to figure out the issue. It's quite misleading based on what SendGrid shows you. Anyway, the solution is simple. When you copy from SendGrid, make sure you delete the name of your domain when you paste it in Google Domains field. For example:

Your domain is ABC.COM From SendGrid you will have:

------------------------------------------------------------------------------
|  url444.ABC.COM    (COPY)    |     u2225555.cf555.sendgrid.net   (COPY)    |
------------------------------------------------------------------------------

When you go to Google Domains to add a record, you will type: url444 and then you select CNAME from the dropdown menu, leave the default value for TTL to 1, and in the next field you will put whatever SendGrid provided with no deletion. So, in Google you should have:

------------------------------------------------------------------------------
|  url444.ABC    |     CNAME    |  1  |    u2225555.cf555.sendgrid.net       |
------------------------------------------------------------------------------
like image 36
ASH Avatar answered Oct 15 '22 00:10

ASH