Skip to main content
F
Foglift
← Back to Blog

DNS Records for SEO: Complete Guide to A, MX, TXT, SPF & DMARC

March 15, 2026·11 min read

DNS (Domain Name System) is the backbone of the internet — it translates domain names like foglift.io into IP addresses that computers use to communicate. While DNS records don't directly affect search rankings, misconfigured DNS can cause downtime, slow resolution, broken email, and security vulnerabilities that all hurt your SEO indirectly.

This guide explains every DNS record type, how they affect your website and email, and what to check for optimal SEO and deliverability.

Check your DNS records

Our free DNS checker looks up all record types and checks email authentication automatically.

Free DNS Record Checker →

DNS Record Types Explained

A Record (Address)

The A record maps your domain to an IPv4 address. It's the most fundamental DNS record — without it, browsers can't find your web server. Most domains have at least one A record, and many have multiple for redundancy (load balancing across several servers).

SEO impact: If your A record points to a slow or unreliable server, your site's performance suffers. Multiple A records (or CNAME to a CDN) can improve global load times, which is a Core Web Vitals factor.

AAAA Record (IPv6)

The AAAA record is the IPv6 equivalent of the A record. While IPv6 adoption is still growing, having AAAA records ensures your site is accessible from IPv6-only networks and future-proofs your infrastructure.

CNAME Record (Canonical Name)

A CNAME record creates an alias from one domain to another. For example, www.example.com might CNAME to example.com. Many hosting providers and CDNs (Vercel, Netlify, Cloudflare) use CNAME records to route traffic to their infrastructure.

Important: You cannot have a CNAME record at the root domain (apex) alongside other record types. Some DNS providers offer CNAME flattening or ALIAS records to work around this limitation.

MX Record (Mail Exchange)

MX records specify which mail servers handle email for your domain. Without MX records, nobody can send email to your domain. MX records have priority values — lower numbers are tried first.

SEO impact: While MX records don't directly affect rankings, having working email is essential for business operations — customer communication, outreach, link building, and receiving Google Search Console notifications.

TXT Record (Text)

TXT records store arbitrary text data and are used for multiple purposes: domain verification (Google Search Console, email services), email authentication (SPF, DKIM, DMARC), and security policies. They're the Swiss Army knife of DNS records.

NS Record (Name Server)

NS records define which DNS servers are authoritative for your domain. Having at least 2 NS records ensures redundancy — if one nameserver goes down, the other responds. Most registrars configure these automatically when you set up hosting.

SOA Record (Start of Authority)

The SOA record contains administrative information about the DNS zone: the primary nameserver, the responsible party's email, zone serial number, and refresh/retry timers. You rarely need to modify SOA records manually.

CAA Record (Certificate Authority Authorization)

CAA records specify which Certificate Authorities (CAs) are allowed to issue SSL certificates for your domain. Without CAA records, any CA can issue a certificate. Adding CAA records prevents unauthorized certificate issuance — a security best practice. For more on SSL, see our SSL/TLS Checker.

Email Authentication: SPF, DKIM, and DMARC

Email authentication records are critical for deliverability. Without them, your business emails land in spam, your domain can be spoofed for phishing, and your sender reputation suffers.

SPF (Sender Policy Framework)

SPF is a TXT record that lists all servers authorized to send email from your domain. It looks like:

v=spf1 include:_spf.google.com include:sendgrid.net ~all

The include: directives authorize specific email services. ~all means "soft fail" unauthorized senders (mark as suspicious), while -all means "hard fail" (reject outright).

DKIM (DomainKeys Identified Mail)

DKIM adds a cryptographic signature to your outgoing emails, proving they haven't been tampered with in transit. It's configured as a TXT record at a selector subdomain (e.g., google._domainkey.yourdomain.com). Most email providers generate the DKIM record for you.

DMARC (Domain-based Message Authentication)

DMARC tells receiving mail servers what to do when SPF or DKIM checks fail. It's a TXT record at_dmarc.yourdomain.com:

v=DMARC1; p=quarantine; rua=mailto:dmarc@yourdomain.com

The p= policy can be none (monitor only), quarantine (send to spam), or reject (block completely). Start with none and gradually tighten.

How DNS Affects Website Performance

DNS Resolution Time

DNS resolution is the first step when a browser loads your website. The browser queries a DNS resolver to translate your domain name to an IP address. This lookup typically takes 20-120ms but can take longer with misconfigured or slow DNS providers.

TTL (Time to Live) Optimization

TTL values control how long DNS resolvers cache your records. Lower TTLs (300 seconds) mean changes propagate faster but generate more DNS queries. Higher TTLs (3600+ seconds) reduce server load but make changes take longer to take effect.

Best practice: Use 3600s (1 hour) for stable records. Before planned changes, lower TTL to 300s (5 minutes) 24 hours in advance, make your change, then raise TTL back.

CDN and DNS

CDNs like Cloudflare, Fastly, and AWS CloudFront use CNAME records or custom nameservers to route traffic to their edge servers. This dramatically reduces latency for global audiences. If you're not using a CDN, your A record points directly to your origin server, which may be far from some visitors.

Common DNS Issues That Hurt SEO

  • Missing A/CNAME records — domain doesn't resolve, site is offline
  • Wrong MX records — email bounces, you miss Google Search Console alerts
  • No SPF/DMARC — outreach emails go to spam, domain gets spoofed
  • Single nameserver — no redundancy, single point of failure for DNS
  • Extremely low TTL — excessive DNS queries, slightly slower resolution
  • No CAA records — any CA can issue certs, potential security risk
  • Missing AAAA records — IPv6 users may have slower access

DNS Checklist for SEO Professionals

  1. Verify A/CNAME records point to the correct server
  2. Ensure at least 2 NS records for redundancy
  3. Set up MX records for working email
  4. Add SPF TXT record listing all authorized email senders
  5. Configure DKIM with your email provider
  6. Set up DMARC with at least p=none policy
  7. Add CAA records to restrict certificate issuance
  8. Consider adding AAAA records for IPv6 support
  9. Review TTL values — 3600s is a good default
  10. Enable DNSSEC through your registrar (check with WHOIS Lookup)

Frequently Asked Questions

Do DNS records directly affect SEO rankings?

DNS records don't directly affect SEO rankings, but DNS misconfiguration can cause downtime, slow resolution times, and broken email — all of which indirectly hurt SEO. Proper DNS setup ensures your site is always reachable and performs well.

What DNS records do I need for email?

For email you need: MX records (point to your mail server), SPF TXT record (authorize sending servers), DKIM TXT record (cryptographic email signing), and DMARC TXT record (policy for failed authentication). Without these, your emails will go to spam.

What TTL should I use for DNS records?

For most websites, a TTL of 300-3600 seconds (5 minutes to 1 hour) is recommended. Lower TTLs (300s) allow faster DNS changes but increase query load. Higher TTLs (3600-86400s) reduce DNS queries but make changes propagate slower. Before major DNS changes, lower your TTL temporarily.

How do I check if my SPF and DMARC are configured correctly?

Use a DNS record checker to look up TXT records for your domain. Your SPF record should start with v=spf1 and list authorized sending IPs/domains. Your DMARC record should be a TXT record at _dmarc.yourdomain.com starting with v=DMARC1.

Check Your DNS Configuration

Verify all DNS record types, email authentication (SPF, DMARC), and find configuration issues.

Free tool

Check your website's SEO + GEO score

Scan any URL in 30 seconds. See scores for SEO, AI search readiness, performance, security, and accessibility.

Scan Your Site Free

No signup. 5 free scans/day. Results in 30 seconds.