Home DNS Which DNS records do I need for my website and email?

Which DNS records do I need for my website and email?

Last updated on Nov 03, 2026

Use Add record on the Manage DNS records page for each line below. Always use the exact values your provider gives you; the ones here are the usual published values.

Website

Host Type Value
@ A your server's IP address
www CNAME example.com (your domain)

Google Workspace email

Host Type Value
@ MX 1 smtp.google.com
@ TXT v=spf1 include:_spf.google.com ~all
google._domainkey TXT the DKIM key from your Google Admin console

Microsoft 365 email

Host Type Value
@ MX 0 example-com.mail.protection.outlook.com (from your Microsoft 365 admin center)
@ TXT v=spf1 include:spf.protection.outlook.com -all
autodiscover CNAME autodiscover.outlook.com

Protect your email from spoofing (DMARC)

Host Type Value
_dmarc TXT v=DMARC1; p=quarantine; rua=mailto:you@example.com

Start with p=none if you are not sure every service that sends email for you is covered by SPF or DKIM.

Certificates

Host Type Value
@ CAA 0 issue letsencrypt.org

Only add CAA records if you know which certificate authority you use. A wrong CAA record stops certificates from being issued.

Only one SPF record

A domain can have only one SPF record (v=spf1 ...). If you use several email services, combine them into one, for example v=spf1 include:_spf.google.com include:spf.protection.outlook.com ~all.