TXT Records for SPF, DKIM, and Domain Verification
What are TXT Records?
TXT records store text-based information in DNS. They are commonly used for email security and domain ownership verification.
SPF Record (Sender Policy Framework)
SPF specifies which mail servers can send email for your domain.
Example SPF Record:
v=spf1 include:_spf.google.com ~all
Common SPF includes:
- Google:
include:_spf.google.com - Microsoft:
include:spf.protection.outlook.com - Mailchimp:
include:servers.mcsv.net
DKIM Record
DKIM adds a digital signature to verify emails are from your domain.
Format: selector._domainkey.yourdomain.com
Your email provider will give you the specific DKIM value to add.
DMARC Record
DMARC tells receiving servers what to do with emails that fail SPF/DKIM.
Example:
v=DMARC1; p=quarantine; rua=mailto:dmarc@yourdomain.com
Domain Verification TXT Records
Services like Google, Microsoft, and Facebook require TXT records to verify domain ownership.
Example:
google-site-verification=abcd1234xyz
How to Add TXT Records
- Log into DNS management panel
- Click Add Record → TXT
- Enter hostname (@ for root domain)
- Paste the TXT value exactly as provided
- Save and wait for propagation
Was this article helpful?
0% of readers found this helpful