Add include mechanisms for your email providers. Each adds 1 DNS lookup.
DNSai SPF Validator
Paste an SPF record, or load the one your domain publishes, and test it before it goes into DNS. The validator checks syntax, counts DNS lookups against the 10-lookup limit, and flags common misconfigurations with suggested fixes. To start a record from nothing, use the SPF Record Generator.
Email Provider Includes
▾IP Addresses
▾Authorize specific IP addresses or ranges. Does NOT count toward DNS lookups.
Enter single IP or CIDR notation (e.g., 192.168.1.0/24)
Custom Include
▾Add custom include mechanisms. Each adds 1 DNS lookup.
A & MX Records
▾Authorize servers based on your domain's A or MX records. Each adds 1 DNS lookup.
Fail Policy (All Qualifier)
▾What should happen to emails from unauthorized senders?
Processing...
...
Quick Start Guide (5 minutes)
- Check your current record — Use the "Lookup Domain" tab above. Enter your domain (e.g., yourbusiness.com) to see if you already have an SPF record.
- Create or change the record — No record yet? Build one with the SPF Record Generator. Changing the one you have? Click "Edit this record" in the lookup result, or open the "Edit Record" tab.
- Validate it — Open "Validate Record", paste the record, and fix anything the validator flags before you publish.
- Add it to your DNS — Log into where you bought your domain (GoDaddy, Namecheap, Google Domains, etc.) and add a TXT record.
- Verify it works — Wait 5-10 minutes, then use "Lookup Domain" again to confirm your record is live.
Which Email Provider Do I Use?
Not sure which email service to add? Here's how to tell:
-
Google Workspace / Gmail
You log into mail.google.com or Gmail app for your business email. Your email might end in @gmail.com or your custom domain through Google. -
Microsoft 365 / Outlook
You log into outlook.com or use the Outlook app. Common if your business uses Microsoft Office products. -
Email Marketing Tools
If you send newsletters or marketing emails, add those too: Mailchimp, SendGrid, Constant Contact, HubSpot, etc. -
Still not sure?
Check your email settings or ask whoever set up your email. You can also look at a recent email you sent — the "from" address domain is what you need to protect.
Understanding the Editor Options
- DNS Lookups: 0/10
- SPF has a limit of 10 "lookups" (checking other servers). Each email provider you add uses 1 lookup. If you exceed 10, your SPF record will break. Most small businesses use 2-4 lookups.
- Fail Policy: ~all vs -all
-
~all (Soft Fail) — Recommended for beginners. Emails from unauthorized servers get marked as suspicious but still delivered. Safer while you're getting set up.
-all (Hard Fail) — Strict mode. Emails from unauthorized servers are rejected entirely. Use this once you're confident your SPF is complete. - IP Addresses
- Only needed if you have your own email server or a specific server that sends emails. Most small businesses using Gmail/Outlook don't need to add IPs.
- A & MX Records
- Advanced options. Check "mx" if your website hosting also sends emails. Most users can skip this section.
Where Do I Add My SPF Record?
Once your SPF record validates, you need to add it to your domain's DNS settings. This is usually where you bought your domain:
- GoDaddy: My Products → DNS → Add Record → TXT
- Namecheap: Domain List → Manage → Advanced DNS → Add New Record
- Google Domains: My Domains → DNS → Custom Records
- Cloudflare: Select Domain → DNS → Add Record
- Squarespace: Settings → Domains → DNS Settings
When adding the record:
• Type: TXT
• Host/Name: @ (or leave blank)
• Value: Paste your SPF record (starts with v=spf1)
• TTL: 3600 (or "1 hour" or leave as default)
Validate SPF Records Before They Go Live
SPF (Sender Policy Framework) records protect your domain from email spoofing by specifying which servers are allowed to send email on behalf of your domain. This tool validates SPF syntax before you publish, lets you correct a record in a visual editor, and provides actionable recommendations based on best practices.
Example Output
Static sample of a live check for dnsai.com, captured June 2026. Run the form above for current results.
Published SPF record
v=spf1 include:_spf.google.com include:mailgun.org ip4:74.48.223.135 ip4:45.76.60.87 -all
Validation result
- Valid
- Yes
- Score
- 100 / 100
- Grade
- A
- DNS lookups (est.)
- 4 of 10
- All policy
-all— fail (strict — rejects unauthorized)
Parsed mechanisms
| Mechanism | Qualifier | Value |
|---|---|---|
| include | + (pass) |
_spf.google.com |
| include | + (pass) |
mailgun.org |
| ip4 | + (pass) |
74.48.223.135 |
| ip4 | + (pass) |
45.76.60.87 |
| all | - (fail) |
— |
No issues or warnings detected. Info: using -all (hardfail) — strictest protection.
Lookup Domain Data at Scale
DNS Explorer — Run bulk DKIM, SPF, and DMARC lookups across thousands of domains. Built for security teams, MSPs, and IT administrators who need to audit email authentication configurations across their entire domain portfolio.
Start free DNS Explorer trial14-day full-feature trial