⚡
CentricSell Mail
DNS & Infrastructure9 min readUpdated 2026-03-15

What is DNS? All DNS Record Types Explained for Email (A, MX, TXT, CNAME, PTR & More)

The Domain Name System (DNS) is the critical backbone of global email delivery. Learn how resolving MX, A, TXT, CNAME, and PTR records determines whether your message reaches the primary inbox or the spam folder.

Executive Key Takeaways

  • •MX records tell sending mail servers exactly which host to deliver mail to, using priority weighting (lower numbers mean higher priority).
  • •TXT records hold modern email security policies including SPF (Sender Policy Framework) and DMARC.
  • •CNAME records are the industry standard for delegating DKIM public keys to providers without manual private key handling.
  • •PTR records (Reverse DNS) prove that your sending server IP legitimately belongs to your verified domain name.
  • •CentricSell Mail runs automated DNS pre-flight verification before any campaign or API send to prevent domain blacklisting.

1. What is DNS and How Does It Work for Email?

The Domain Name System (DNS) is the internet's decentralized phonebook. While web browsers use DNS primarily to resolve a human-friendly domain like centricsell.com to an IP address like 198.51.100.1, email relies on DNS for far more: mail routing, sender cryptographic authentication, transport encryption enforcement, and fraud prevention.

Whenever you send an email from user@yourcompany.com to client@acme.com, the sending server must query DNS servers across the globe in milliseconds to answer three essential questions:

  • Where do I deliver this mail? (Queried via MX records).
  • Is this sending IP authorized to mail on behalf of yourcompany.com? (Queried via SPF TXT records).
  • Is the cryptographic signature on the email authentic and untampered? (Queried via DKIM TXT/CNAME records).

2. The Email DNS Lookup Sequence Step-by-Step

Here is the exact technical sequence that occurs when an email is dispatched:

  1. Envelope Sender Inspection: The sending Mail Transfer Agent (MTA) prepares the message envelope (MAIL FROM: user@yourcompany.com).
  2. MX Query: The sending MTA asks recursive DNS resolvers for the MX records of the recipient's domain (acme.com).
  3. A/AAAA Resolution: Once the recipient's MX hostname is returned (e.g., aspmx.l.google.com), a secondary DNS query resolves that hostname to an IPv4/IPv6 address.
  4. SMTP Handshake: The sender establishes a TCP connection on port 25 with STARTTLS encryption.
  5. Reverse DNS Check: The receiving server immediately looks up the sender's IP address in the in-addr.arpa zone to verify its PTR record matches the sender's EHLO hostname.
  6. Authentication Queries: The receiver looks up the sender domain's SPF TXT record, DKIM public key, and DMARC policy.

3. Complete Breakdown of Every DNS Record Used in Email

Record Type Primary Role in Email Sample Value RFC Standard
MX Directs inbound mail to target mail servers with priority. 10 mail.yourdomain.com RFC 5321
A / AAAA Resolves mail server hostnames to IPv4 / IPv6 addresses. 198.51.100.25 RFC 1035
TXT (SPF) Specifies authorized sending IPs and provider includes. v=spf1 include:_spf.centricsell.com ~all RFC 7208
TXT / CNAME (DKIM) Publishes asymmetric public key for cryptographic signature verification. v=DKIM1; k=rsa; p=MIGfMA0GCS... RFC 6376
TXT (DMARC) Declares handling policy (none, quarantine, reject) & report inbox. v=DMARC1; p=reject; rua=mailto:dmarc@... RFC 7489
PTR Reverse DNS: maps sending server IP back to its verified hostname. mail.yourdomain.com RFC 1035
TLSA / DANE Pins TLS certificates to DNSSEC to prevent man-in-the-middle downgrade. 3 1 1 a1b2c3d4... RFC 6698

4. MX Records: Priorities, Fallbacks, and Zero Naked IPs

The Mail Exchanger (MX) record directs incoming messages to your designated email infrastructure. Unlike web hosting, MX records incorporate an integer priority:

yourdomain.com.    300   IN   MX   10   mail1.yourdomain.com.
yourdomain.com.    300   IN   MX   20   mail2.yourdomain.com.
mail1.yourdomain.com. 300 IN   A         198.51.100.10
mail2.yourdomain.com. 300 IN   A         198.51.100.20
        

Crucial Rule: The priority number signifies preference. 10 is attempted before 20. If mail1 experiences high load or a network timeout, senders seamlessly buffer and deliver to mail2.

5. TXT Records: The Foundation of SPF, DKIM, and DMARC

Modern deliverability is built on three authentication standards published as DNS TXT entries:

  • SPF (Sender Policy Framework): Defines which outbound server IPs are authorized to send mail carrying your domain in the Return-Path.
  • DKIM (DomainKeys Identified Mail): Holds the public cryptographic key. The sending MTA signs email headers using the private key; the receiver downloads the public key via DNS to mathematically verify integrity.
  • DMARC (Domain-based Message Authentication, Reporting & Conformance): Instructs Gmail, Outlook, and Yahoo how to treat emails that fail SPF or DKIM alignment, and where to send daily deliverability health XML reports.

6. CNAME Records & Provider Key Delegation

A Canonical Name (CNAME) record aliases one domain name to another. In modern email setups, CNAME records are indispensable for DKIM key rotation:

cs1._domainkey.yourdomain.com.  IN  CNAME  cs1.dkim.centricsell.com.
cs2._domainkey.yourdomain.com.  IN  CNAME  cs2.dkim.centricsell.com.
        

By delegating DKIM selectors to CentricSell Mail via CNAME, we automatically rotate 2048-bit cryptographic keys on schedule without requiring you to manually touch DNS records every quarter.

7. PTR Records & Reverse DNS (rDNS)

A PTR (Pointer) record operates in reverse. Instead of translating a name to an IP, it translates an IP (e.g. 198.51.100.10) to its canonical hostname (mail.yourdomain.com). Every major inbox provider strictly enforces Forward-Confirmed Reverse DNS (FCrDNS). Without a valid PTR record matching your SMTP handshake banner, Gmail and Yahoo will reject connections at the TCP layer before an email is even accepted for scanning.

8. 5 Critical DNS Mistakes That Trigger Spam Filters

  1. Publishing Multiple SPF Records: Having more than one TXT record starting with v=spf1 instantly triggers an SPF PermError, failing authentication on all outbound email.
  2. Exceeding the 10 DNS Lookup Limit: RFC 7208 limits SPF evaluation to 10 DNS queries. Unchecked nesting of include: mechanisms causes hard failures.
  3. Pointing MX to an IP address or CNAME: Violating RFC standards by pointing an MX record to an IP or a CNAME leads to silent drops by strict enterprise firewalls.
  4. Forgetting Trailing Dots in Zone Files: Omitting the terminal dot (e.g. mail.yourdomain.com instead of mail.yourdomain.com.) can accidentally append your root domain twice.
  5. Mismatched HELO and PTR: The hostname given in the SMTP EHLO command must resolve to the IP sending the mail, which must have a PTR record pointing back to that same hostname.

9. How CentricSell Mail Automates DNS Verification

Configuring email DNS manually is error-prone. One syntax mistake can silence your transactional notifications and password resets. CentricSell Mail eliminates this friction completely:

  • Pre-Flight DNS Scanner: Our platform automatically scans your SPF, DKIM, DMARC, and MX records before you ever initiate a send, ensuring 100% compliance with Google & Yahoo 2026 bulk sender standards.
  • One-Click ESP & Server Routing: Whether sending through Amazon SES, SendGrid, Mailgun, or your own dedicated server, we generate exact, copy-paste DNS records tailored to your domain.
  • Zero Per-Email Markups: Send millions of emails without paying inflated SaaS subscription fees.
⚡
CentricSell Mail Automation

Automate DNS & Infrastructure in 5 Minutes

Stop manually wrestling with DNS records and server configs. CentricSell Mail runs automated pre-flight deliverability checks, provisions dedicated servers over SSH, and routes traffic across Amazon SES, SendGrid, and Mailgun.

Create Free Account →10,000 Free Contacts Included

Frequently Asked Questions

What is the primary DNS record required to receive email?

The MX (Mail Exchanger) record is the primary DNS record required to receive email. It points receiving mail servers to the fully qualified domain name (FQDN) of your mail server and assigns a priority weighting.

Can an MX record point directly to an IP address?

No. According to RFC 2181 and RFC 5321, MX records must always point to a valid domain hostname (e.g., mail.yourdomain.com), never directly to a bare IPv4 or IPv6 address. That hostname must then have a corresponding A or AAAA record.

What happens if a domain has multiple MX records with different priorities?

Sending mail transfer agents (MTAs) connect to the MX record with the lowest priority number first. If that server is unreachable, times out, or returns a 4xx temporary failure, the sender automatically falls back to the next lowest priority record.

Why are TXT records used for email security instead of dedicated record types?

TXT records were historically designed to carry arbitrary human- and machine-readable text. Using TXT records allowed SPF, DKIM, and DMARC to be deployed across the global internet without requiring every DNS server worldwide to update its underlying software.

High-Availability Email Infrastructure

Ready to scale your transactional & bulk email?

Get started with CentricSell Mail in minutes. Bring your existing AWS SES, SendGrid, or Mailgun credentials, or deploy onto your own dedicated VPS with verified SPF, DKIM, and rDNS.

PostgreSQL RLS Isolation
Multi-Provider Failover
Zero Per-Email Fees