DNS Records Guide: How to Configure MX, DKIM, DMARC, SPF & SRV Settings

DNS Records Guide: How to Configure MX, DKIM, DMARC, SPF & SRV Settings

By Michael Turner

January 21, 2025 at 01:19 PM

An essential guide to configuring email-related DNS records, including MX, DKIM, SPF, DMARC, and SRV records for proper email functionality and security.

MX Records (Mail Exchange) MX records direct email traffic to the correct mail servers. Multiple MX records are typically needed, each with a specific priority level (0-255).

Quick Setup Options:

  • Use pre-set records for popular providers (Google Workspace, Microsoft 365, Fastmail, Proton Mail, Neo, Titan, iCloud, Zoho Mail)
  • Manually add custom records using:
    • Type: MX
    • Host: @ (or subdomain)
    • Priority: Provider-specified number
    • Data: Mail server URL

DKIM and SPF Records These TXT records authenticate emails and prevent unauthorized sending:

  • DKIM: Add as TXT/CNAME record with provider-specific host and data
  • SPF: Add as TXT record starting with "v=spf1"
  • Multiple SPF records should be combined into one

Product grid for sale

Product grid for sale

DMARC Records Add as TXT record to verify domain for email marketing:

  • Host: _dmarc
  • Data: Provider-specific TXT value
  • Only one DMARC record allowed per domain
  • Multiple records must be merged with:
    • Comma-separated email addresses
    • Most secure policy tag values

SRV Records (Service Records) Required components:

  • Service (e.g., _smtp)
  • Protocol (e.g., _tcp)
  • Priority (optional)
  • Weight (single digit)
  • Port number
  • Target (host URL)

Format:

  • Type: SRV
  • Host: _service._protocol
  • Priority: Optional TTL value
  • Data: Weight Port Target (space-separated)

For optimal email delivery and security, ensure all records are properly configured and regularly maintained. Verify records with your email provider's specifications and update as needed.

Related Articles

Previous Articles