Lookup Tools
Analysis
Bulk & Enterprise
Resources
Close

DNSai SPF Builder

Build, test, and validate SPF records

Enter your domain to lookup the existing SPF record. Supports subdomains.

Your SPF Record
DNS Lookups: 0/10 | Length: 11 chars

Email Provider Includes

Add include mechanisms for your email providers. Each adds 1 DNS lookup.

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.

include:

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?

Paste your SPF record to validate syntax and get recommendations.

Processing...

...

Quick Start Guide (5 minutes)

  1. 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.
  2. Build your SPF record — Click "Build SPF" and select your email provider(s). Don't know which one? See the guide below.
  3. Copy your new record — Click the copy button next to your generated SPF record.
  4. Add it to your DNS — Log into where you bought your domain (GoDaddy, Namecheap, Google Domains, etc.) and add a TXT record.
  5. 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:

Understanding the Builder 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?

After building your SPF record, you need to add it to your domain's DNS settings. This is usually where you bought your domain:

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)

Build SPF Records the Right Way

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 helps you build SPF records correctly with a visual builder, validates syntax before you publish, and provides actionable recommendations based on best practices.

DNS Explorer

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 trial

14-day full-feature trial