SPF Record Generator

Assemble an SPF TXT record from selected mechanisms and policy options.

Generated TXT Record

-

DNS Record TypeTXT
Host / Name@
Record Value-
TTL3600 seconds (1 hour)

How to use it

  1. Enter the domain that will own the SPF record.
  2. Choose whether to add the mx mechanism.
  3. Choose whether to add the a mechanism.
  4. Enter any third-party include domains as a comma-separated list.
  5. Select SoftFail, Fail, or Neutral as the final all policy.
  6. Click Generate SPF Record and copy the generated TXT value.

The generator concatenates the chosen text and does not validate domains or count DNS lookups. Review the result before publishing it.

What is the purpose of the tool

SPF Record Generator builds a basic v=spf1 policy from a small set of controls. It can add the domain's MX and A sources, third-party include mechanisms, and one final all qualifier.

The output is formatted for a DNS TXT record and runs entirely in the browser. It is not a complete policy designer for IP mechanisms, redirect modifiers, or lookup analysis.

What parameters it generates in output

FieldMeaningHealthy result
Generated TXT RecordThe assembled SPF string displayed in the result header.It begins with v=spf1 and ends with the chosen all policy.
DNS Record TypeThe DNS type to use for SPF publication.TXT is displayed.
Host / NameThe entered domain, or example.com when blank.It matches the owner format required by your DNS provider.
Record ValueThe same generated SPF policy for the TXT value.It includes only authorized sending mechanisms.
TTLThe suggested static cache value shown by the page.3600 seconds (1 hour) is displayed.

FAQs related to that specific tool

What happens if Domain Name is blank?

The generator uses example.com for Host / Name. The SPF string itself is still built from the selected mechanisms and policy.

How do I add several include services?

Separate their domains with commas. Each nonblank item becomes its own include mechanism in the generated value.

Does the generator validate include domains?

No. It prefixes include: to each entered item without DNS lookup or syntax validation.

What is the difference between SoftFail, Fail, and Neutral?

The choices append ~all, -all, or ?all respectively. Select a policy that matches your tested mail deployment.

Why are mx and a added without a plus sign?

An omitted SPF qualifier means pass, so mx and a are equivalent to +mx and +a in the generated policy.

Does the generated string guarantee a valid SPF deployment?

No. The page assembles text but does not test lookup limits, duplicate records, sending sources, or DNS publication.