An SPF lookup retrieves and analyses the Sender Policy Framework (SPF) TXT record for a domain — the DNS record that specifies which mail servers are authorised to send email on behalf of that domain. SPF is the first line of defence against email spoofing and phishing, and a correctly configured SPF record is required by Google, Microsoft, and other major email providers to avoid messages being marked as spam.
When a receiving mail server accepts an incoming email, it checks the SPF record of the sending domain. If the sending mail server's IP address is listed in the SPF record, the message passes SPF authentication. If it is not listed, the message fails — and depending on the domain's DMARC policy, may be rejected or quarantined.
Our SPF lookup tool queries the live DNS record for any domain, displays the raw SPF string, and breaks it down into its component mechanisms: include statements, ip4 and ip6 ranges, redirect modifiers, and the all qualifier. Whether you are setting up a new email provider, auditing an existing configuration, or troubleshooting delivery failures, this tool gives you an immediate view of what is published.
SPF records are limited to 10 DNS lookups (mechanisms that trigger additional DNS queries, such as include: and a:). Exceeding this limit causes SPF evaluation to fail permanently, even if the sending server is authorised. This tool helps you spot records that are approaching or have exceeded the DNS lookup limit.
How to Use the SPF Lookup Tool
- 1
Enter the domain name
Type the domain you want to check — for example, example.com. Use the root domain, not a subdomain. SPF records are always published at the root of the sending domain.
- 2
Click Lookup
The tool queries the TXT records for the domain and extracts the SPF record — the one starting with v=spf1. Results appear within seconds.
- 3
Review the raw SPF string
The full SPF record is displayed so you can verify exactly what is published. The tool also breaks down each mechanism to make it easier to read.
- 4
Check for issues
Look for the all qualifier at the end — ~all (softfail) or -all (hardfail) are recommended. A missing SPF record or +all (pass everything) is a significant misconfiguration.
Understanding SPF Record Results
| Field | Description |
|---|---|
| v=spf1 | Version tag — must be the first element. Identifies this TXT record as an SPF record. |
| include: | Delegates SPF evaluation to another domain. Each include: counts as one DNS lookup. |
| ip4: / ip6: | Explicitly authorises an IPv4 or IPv6 address or CIDR range. Does not count towards the DNS lookup limit. |
| a: / mx: | Authorises the IPs from the domain's A or MX records. Each counts as one DNS lookup. |
| redirect= | Replaces the SPF record with the SPF record of another domain. Used to centralise SPF management. |
| all qualifier | -all (hardfail), ~all (softfail), ?all (neutral), +all (pass all). Controls what happens to senders not matching any mechanism. |
Common SPF Lookup Use Cases
Verify SPF record after adding a new mail service
When you add a new email sending service (CRM, marketing platform, transactional email), you need to add its include: mechanism to your SPF record. Use SPF lookup to confirm the new mechanism is published and the DNS lookup count stays under 10.
Diagnose emails being marked as spam
If legitimate email from your domain is landing in spam folders, SPF failure is often the cause. Run an SPF lookup to confirm the sending server's IP or domain is covered by your SPF record. Missing or incorrect mechanisms cause SPF to fail, which triggers spam filters.
Audit SPF before a domain migration
Before migrating email to a new provider, verify the existing SPF record. Document all authorised senders so the new SPF record on the new provider includes all required mechanisms and nothing is accidentally dropped.
Check DNS lookup count
SPF is limited to 10 DNS lookups. Domains with many include: mechanisms (multiple marketing platforms, CRMs, security tools) frequently exceed this limit, causing SPF to return PermError. SPF lookup helps you count mechanisms that trigger DNS queries before they cause delivery failures.
SPF Lookup — Frequently Asked Questions
What is an SPF record?
How do I check the SPF record for a domain?
What does -all vs ~all mean in SPF?
What is the SPF 10 DNS lookup limit?
Why does my email fail SPF even though I have an SPF record?
Can a domain have more than one SPF record?
What is SPF flattening?
Is SPF enough to protect my domain from email spoofing?
What does SPF "include:" do?
How do I add a new email service to my SPF record?
Related Tools
DKIM Lookup
Check the DKIM public key that authenticates email signatures alongside SPF.
DMARC Lookup
Review the DMARC policy that ties SPF and DKIM results to the visible From header.
MX Lookup
Check mail server records to verify the full email configuration for a domain.
DNS Lookup
Query all TXT records for the domain to see SPF alongside other DNS configuration.