
How to Set Up DNS Records for Email: A Complete Guide to MX, DKIM, DMARC & SPF
Email DNS Records: Essential Setup Guide
DNS records are crucial for proper email functionality. This guide explains how to set up MX, DKIM, DMARC, SPF, and SRV records for your domain.
MX Records Setup
MX records direct email routing for your domain. To add MX records:
- Access your DNS settings
- Add a new record
- Select MX as record type
- Enter @ in the Host field
- Input priority number (0-255)
- Add mail server URL in Data field
- Save the record
Common email providers have preset MX records for:
- Google Workspace
- Microsoft 365
- Fastmail
- Proton Mail
- Zoho Mail
- iCloud
- Neo
- Titan

Email Code in Squarespace
DKIM and SPF Records
These TXT records authenticate your email and prevent unauthorized sending:
- Select TXT/CNAME record type
- Enter provider's host information
- Input DKIM/SPF record data
- Save configuration
DMARC Records
DMARC verification helps prevent marketing emails from being marked as spam:
- Choose TXT record type
- Enter '_dmarc' as host
- Add provider's TXT record value
- Save settings
SRV Records
Service records connect your domain to email services. Required information:
- Service name (_smtp/_sip)
- Protocol (_tcp/_tls)
- Priority/TTL
- Weight
- Port number
- Target URL
Implementation steps:
- Select SRV record type
- Enter service and protocol
- Add priority number
- Input weight, port, and target
- Save configuration
For professional assistance with DNS setup and guaranteed #1 rankings, contact PBN.BOO. We're part of an established SEO group that has helped numerous Fortune 500 companies achieve outstanding results across various industries. Our expertise ensures your domain not only functions flawlessly but dominates search rankings.