skip to content

Why did RFC 7208 retire the dedicated SPF DNS record type, number 99, and what do you do with a zone still serving it?

level: middleimportance: should knowfreq 30%

answer

  1. two carriers, no common one
  2. an experiment's leftover
  3. verifiers ask for one type
  4. the policy must live in TXT

basics

~20 s

RFC 7208 (April 2014) made TXT the only SPF carrier: the older dual TXT and type-99 scheme had no type every publisher had to serve and every verifier to check. Verifiers query TXT only, so keep the policy there and delete type 99.

solid answer

~50 s

RFC 4408 (April 2006) let SPF be published either as `TXT` or as the new SPF record type 99, which had an identical format. Reviewing it, the SPFbis working group found the dual model fundamentally flawed: no single type was required to be served and required to be checked, type 99 saw little real use, and it caused interoperability problems (background in RFC 6686, July 2012). RFC 7208 therefore says SPF MUST be published as `TXT` only, verifiers query `TXT` only, and implementations are not to use type 99. In a legacy zone the type-99 record is never read: if it is the only copy, receivers find no policy and return `none`; if a `TXT` copy also exists, only that copy counts. Make sure one correct `TXT` record holds the policy, then delete the type-99 record and fix whatever template still generates it.

go deeper

for a junior

Recall that SPF is published only as TXT today and that the old SPF record type, number 99, is ignored.

for a middle

Explain why the dual-type model failed: no type everyone had to serve and check, little use of type 99, interoperability problems, and RFC 7208 dropping it in April 2014.

for a senior

Show how you would clean up a legacy zone: find type-99 copies everywhere, make the TXT record correct first, delete type 99, and fix the template that recreates it.

for a principal

Use the episode as a lesson in migrations: a transition that obliges neither publishers nor verifiers never finishes, so name the required carrier and retire the alternative.

## Two carriers, then one SPF has been published in DNS since its experimental phase, and for its first decade it had two possible carriers. - **RFC 4408** (April 2006) defined SPF version 1 with two record types: the general-purpose `TXT` record and a new record type, number **99**, assigned to SPF by IANA. The format of type 99 is identical to `TXT` (RFC 7208 section 14.1). - In its review of RFC 4408, the **SPFbis working group** concluded that this dual record-type transition model was "fundamentally flawed since it contained no common RR type that implementers were required to serve and required to check" (RFC 7208 section 3.1). Background is in **RFC 6686** (July 2012), Appendix A. - Studies showed type 99 "has not seen any substantial use", and its existence had "led to some interoperability issues" (section 14.1). - **RFC 7208** (April 2014, Standards Track) obsoletes RFC 4408. It says SPF records **MUST** be published as `TXT` only (section 3.1), that the verifier's DNS query is "for type TXT only" (section 4.4), and that type 99 is "no longer appropriate for SPF version 1; implementations are not to use it" (section 14.1). Its Appendix B lists the removal first among the changes from RFC 4408. ## Why two types could not work Picture the mismatch. With two permitted carriers and no single one that publishers were required to serve and verifiers required to check, a publisher using one type and a verifier looking at the other could miss each other entirely. Unless every publisher served both and every verifier checked both, some pairs would fail, and nothing in the old model forced either side. The history explains why `TXT` won: when SPF was being developed in 2003, a new record type was much harder to get assigned than it is now, and DNS servers and provisioning systems did not support new types easily, so developers found `TXT` more practical. The working group judged that significant migration to type 99 was very unlikely and dropped it from SPF version 1. RFC 7208 adds two notes worth knowing. A future SPF version that did not reuse existing records could use type 99. And SPF's use of `TXT` for structured data "should in no way be taken as precedent" for future protocol designers. ## What a legacy zone looks like to a receiver today | Records at example.com | What an RFC 7208 verifier sees | What it means for the domain | |---|---|---| | Type 99 only | No `TXT` record beginning `v=spf1`, so `none` | No SPF protection at all | | `TXT` and type 99, identical | The `TXT` record | Type 99 is dead weight | | `TXT` and type 99, different | The `TXT` record | Type 99 misleads anyone reading the zone | | `TXT` only | The `TXT` record | Correct | The dangerous row is the first: the owner believes the domain has an SPF policy because a record that looks like one is published. The quietly confusing row is the third: a reviewer reads the type-99 copy and reasons about a policy no receiver applies. ## Retiring it safely 1. **Look up both types** at every name that sends mail or appears in `HELO`, not just the apex. 2. **Compare them.** Decide which content is the intended policy today. 3. **Make the `TXT` record correct first.** If the name has only type 99, publish the policy as a single `TXT` record beginning `v=spf1`, checking that no other SPF `TXT` record already exists there. 4. **Delete the type-99 records**, and find the zone template, provisioning script or panel default that still creates them, or the next zone rebuild will bring them back. 5. **Verify** with a `TXT` query that exactly one record beginning `v=spf1` remains. Watch for the opposite mistake as well. "The SPF record type is retired" does not mean "SPF records are retired"; deleting the `TXT` record along with type 99 leaves the domain with no policy. ## Reading older material - Material written under RFC 4408 may tell publishers to publish both types. Under RFC 7208 that advice is obsolete. - The IANA registry still lists type 99, with RFC 7208 as its reference document, so DNS software may still let you create one. Accepted by the DNS server does not mean read by any SPF verifier. - Even RFC 7208's own Appendix A.4 example still labels its three zone lines with the SPF type. Read them as `TXT`.

  • If type 99 has the same format as TXT, why not keep publishing both for safety?
    Because nothing reads it. RFC 7208 verifiers query `TXT` only, so the type-99 copy adds no protection and creates a second place for the policy to drift. Over time the copies diverge, and reviewers end up reasoning about the copy no receiver applies.
  • Does the retirement of type 99 mean SPF could never use a dedicated record type?
    No. RFC 7208 notes that a future SPF version that did not reuse existing records could use type 99. The retirement applies to SPF version 1, records beginning `v=spf1`, which are published as `TXT` only.

  • Publish SPF as both TXT and type 99 so every verifier finds it.
  • Receivers prefer the type 99 record when a zone has both.
  • A type 99 record still protects the domain if no TXT record exists.
  • Type 99 was dropped because it could not hold long records.
  • The SPF record type being retired means SPF records should be removed.