DNS provider

Add an SPF record in Azure DNS

SPF must be a single TXT starting with v=spf1 at the domain that sends mail. Azure DNS will let you break this with duplicate TXT — don’t.

Provider gotcha: For apex records the name field uses @. TXT values go in the TXT Records box — one value per line if the UI splits long strings.

Reference: SPF DNS.

Step by step

Step 1 Azure Portal → your DNS zone+ Record set.
Step 2 TXT record. For root domain SPF: SPF/DMARC/DKIM names are relative to the zone — e.g. _dmarc or google._domainkey for a selector..
Step 3 Single SPF only — merge vendors into one string:
v=spf1 include:_spf.google.com ~all
Step 4 Save. For apex records the name field uses @. TXT values go in the TXT Records box — one value per line if the UI splits long strings.
Step 5 Propagation: Minutes to about an hour depending on TTL and downstream resolvers.
Step 6 Use DNS Preflight — SPF tree shows lookup count. Link: SPF guide.

DNS Preflight — full auth check for your domain.

Open DNS Preflight →

Propagation — compare resolvers.

Open DNS Propagation →

FAQ

Can I add two SPF TXT records?

No — merge into one v=spf1 string or you get PermError.

How does Azure DNS want SPF quoted?

Follow the code block on this page; Route 53 requires quotes around the full TXT.

Why PermError after saving?

Syntax error, duplicate SPF, or over 10 DNS lookups — use Preflight’s SPF tree.

Include SendGrid and Google?

Yes in one record: v=spf1 include:... include:... ~all — watch lookup count.

How long until live?

<strong>Minutes to about an hour</strong> depending on TTL and downstream resolvers.