SPF Record
Sender Policy Framework
- Type code
- 99
- Status
- Obsolete
- Defined in
- RFC 7208
What the SPF record is for
RFC 4408 defined RR type 99, named SPF, as a dedicated home for Sender Policy Framework policies, alongside the TXT records that most domains were already using. Publishers were told to publish both.
RFC 7208 dropped the type: section 3.1 says SPF records must be published as TXT only, because almost nobody had moved to type 99 and having two types caused interoperability problems (RFC 6686 has the data). Receivers following RFC 7208 never query type 99.
When people talk about an "SPF record" today they mean a TXT record that starts with v=spf1. The SPF lookup on dns.tools reads those TXT records.
The SPF lookup reads the domain's TXT records, where SPF policies are published today.
Wire format and fields
| Field | Size | Meaning |
|---|---|---|
| TXT-DATA | variable | One or more character-strings, in the same format as TXT. |
The RDATA has the same format as TXT: each string is a length byte followed by up to 255 bytes.
Zone file syntax
<owner> <ttl> IN SPF "<string>" ["<string>" ...]
Example
The SPF record at jprs.co.jp, fetched from live DNS on 27 November 2026:
jprs.co.jp. 86345 IN SPF "v=spf1 ip4:202.11.16.144/28 ip4:117.104.133.128/28 ip6:2001:218:3001:17::/64 ip6:2001:df0:8:17::/64 include:spf.tricorn.net ~all"
One of the few domains still publishing type 99. It publishes the same policy as a TXT record, which is the copy receivers actually use.
Common mistakes
- Publishing the policy only as type 99. Receivers look for TXT, so the domain effectively has no SPF policy.
- Keeping a type 99 copy alongside the TXT record and updating only one of them, so the two disagree.
- Publishing more than one v=spf1 TXT record at the same name, which makes SPF evaluation fail with a permanent error.
- Exceeding the limit of 10 DNS-querying mechanisms (include, a, mx, ptr, exists, redirect) in the TXT policy, which also causes a permanent error.
Specifications
- RFC 7208: Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1 (Obsoletes RFC 4408 and discontinues the SPF record type; SPF policies must be TXT records.)
- RFC 4408: Sender Policy Framework (SPF) for Authorizing Use of Domains in E-Mail, Version 1 (The experimental specification that defined RR type 99. Obsoleted by RFC 7208.)
- RFC 6686: Resolution of the Sender Policy Framework (SPF) and Sender ID Experiments (Reports how little the SPF type was used, which led to it being dropped.)
- IANA DNS Resource Record (RR) TYPEs registry: type code and status
Related record types
Domain Intelligence APIs
Get started with our easy-to-use API docs.