Set up DNS for Twilio SendGrid
To use Twilio SendGrid with a custom domain, you need to add specific DNS records to your domain's DNS configuration. This allows Twilio SendGrid to send emails on behalf of your domain.
mail2dns is the fastest way to create the DNS records. You can use mail2dns with the supported DNS providers listed below to create the necessary records in one command.
CLI Usage
mail2dns setup <your-domain> sendgrid <dns-provider> Supported DNS Providers
Follow the relevant setup guide for using mail2dns to set up your DNS configuration for Twilio SendGrid
Is your DNS provider missing? Let us know
DNS records required for Twilio SendGrid
Twilio SendGrid requires the following DNS records to send email from your domain. These are created automatically by the mail2dns setup command:
TXT Record
@ → v=spf1 include:sendgrid.net ~all
TXT Record
_dmarc → v=DMARC1; p=none;
CNAME Record
s1._domainkey → {DKIM1}
CNAME Record
s2._domainkey → {DKIM2}