DNS guide

TXT Record Setup Guide

TXT records store text data in DNS. They're how you add SPF, DKIM, DMARC, and domain verification records. Here's how to add them correctly — and the one rule that breaks most email setups.

The one rule

You can only have one SPF record. One TXT record starting with v=spf1. Two SPF records = immediate PermError. Every other TXT record can coexist.

Common TXT records

SPF

@ TXT "v=spf1 include:_spf.google.com ~all"

DMARC

_dmarc TXT "v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com"

Google domain verification

@ TXT "google-site-verification=abc123..."

Microsoft domain verification

@ TXT "MS=ms12345678"

Inspect DNS in the browser

Open DNS Preflight →

Step by step

Step 1 Identify which TXT records you need (SPF, DMARC, DKIM, verification).
Step 2 Check for an existing SPF record before adding a new one — merge, don't duplicate.
Step 3 Add each TXT record with the correct name/host value (@ for root, _dmarc for DMARC).
Step 4 For long values (DKIM keys), ensure your DNS provider doesn't truncate the record.
Step 5 Verify with DNS Preflight or the Propagation checker.

FAQ

What is a TXT record used for?

Storing text data in DNS — mainly SPF, DKIM, DMARC, and domain verification for services like Google and Microsoft.

Can I have multiple TXT records?

Yes — except for SPF. You can have multiple TXT records but only one can start with v=spf1.

What host value do I use for DMARC?

_dmarc — the DMARC record always goes at _dmarc.yourdomain.com.

My DKIM key is too long — what do I do?

Some DNS providers split long TXT records into 255-character chunks. DKIM keys must be properly formatted — check your provider's documentation for long TXT record handling.

How do I verify my TXT records are live?

Use DomainPreflight Propagation checker — select TXT type, enter your domain, confirm the record appears.