Product
Docs
Resources
Log In

Error: sendgrid expected cname for to match

What's Causing This Error

The CNAME record points to sendgrid.net and creates an alias for subdomain.yourdomain.com. Your communications will also be signed by this address, and CNAME will be visible to your recipients.

What it should look like:

1 subdomain.yourdomain.com. | CNAME | sendgrid.net.

You'll need to add certain records to your DNS server if your account has a dedicated IP and you want to configure reverse DNS for it. There will be one CNAME record within that set of records.

Some DNS hosts may add your top-level domain to the end of DNS records you create, resulting in "example.domain.com.domain.com" for a CNAME for "example.domain.com."

When inserting new records to your DNS panel, try to strictly adhere to the practice on existing records, since you may only have to append what is to the left of the top-level domain.

For example, a CNAME for "example." becomes "example.domain.com"

1 Expected TXT record at "m1._domainkey.example.com" to match "k=rsa; t=s; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHLyl8Wk4J06nv56v5+OeEgp9LW3f/""LOlBjWJ9NS4l9X5UlbPJkKeHDXThTig2CxhVuKmIVvRcc9yJ27Tdthj1C1q0rvRtFpNlHbdrJvD8wpxe5rmFeiRPH1KUYbvtbs84aApMwN6Y3A0dgQE7vGkHnPTjwT7q/xv3mu2CvkVntQIDAQAB", but got the following error: lookup m1._domainkey.example.com: no such host

Here's How To Resolve It

If you encounter this error, it means that the TXT record has been divided up. The fix will be reassembling the key into a single set of quotations, as follows:

1 "k=rsa; t=s; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHLyl8Wk4J06nv56v5+OeEgp9LW3f/LOlBjWJ9NS4l9X5UlbPJkKeHDXThTig2CxhVuKmIVvRcc9yJ27Tdthj1C1q0rvRtFpNlHbdrJvD8wpxe5rmFeiRPH1KUYbvtbs84aApMwN6Y3A0dgQE7vGkHnPTjwT7q/xv3mu2CvkVntQIDAQAB"

Other Common SendGrid Errors (and Solutions)

View all errors

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Email & push notification

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Email & push notification

Product

Pricing

Providers

Developers

Documentation

API

Libraries

Status

© 2022 Courier. All rights reserved.