
How to Add DNS Records: Email Configuration Guide
Your domain's email functionality requires specific DNS records for proper setup and security. Here's how to configure them:
MX Records (Mail Exchange)
- Direct email traffic to correct mail servers
- Multiple records needed with different priority levels
- Can use predefined records for major providers like Google Workspace, Microsoft 365, Fastmail, Proton Mail
- Manual setup requires:
- Type: MX
- Host: @ (or subdomain)
- Priority: 0-255
- Data: Provider's mail server URL
DKIM and SPF Records (Email Authentication)
- Added as TXT or CNAME records
- Prevent unauthorized email sending
- SPF records start with "v=spf1"
- Setup requires:
- Type: TXT/CNAME
- Host: Provider's information or @
- Data: Provider's DKIM/SPF record
DMARC Records (Domain Validation)
- Added as TXT record
- Reduces spam flagging
- Setup requires:
- Type: TXT
- Host: _dmarc
- Data: Provider's TXT record value
- Only one DMARC record allowed per domain
- Multiple records must be combined using commas
SRV Records (Service Records)
- Connect domain to email services
- Required information:
- Service name (e.g., _smtp)
- Protocol (e.g., _tcp)
- Priority (optional)
- Weight (single digit)
- Port number
- Target URL
- Setup requires:
- Type: SRV
- Host: Service.Protocol
- Priority: Optional TTL
- Data: Weight Port Target
For all record types, verify with your email provider for specific values and requirements. After adding records, allow time for propagation before testing email functionality.