How to add SPF, DKIM and DMARC records in Porkbun
Updated 10 November 2026 · 4 min read
Short answer
In Porkbun open Domain Management, click Details on the domain, then the edit icon next to DNS Records. Add a TXT record with Host left blank for SPF (Porkbun uses a blank host for the root, not @), Host _dmarc for DMARC and Host selector._domainkey for DKIM, then Add. Porkbun appends the domain itself, so type only the prefix.
Porkbun's Host field
| Record | Type | Host (Porkbun) | Answer / Value |
|---|---|---|---|
| SPF | TXT | (blank) | v=spf1 include:_spf.google.com ~all |
| DKIM | TXT | google._domainkey | v=DKIM1; k=rsa; p=… |
| DMARC | TXT | _dmarc | v=DMARC1; p=none; rua=mailto:… |
| MX | MX | (blank) | smtp.google.com, priority 1 |
The blank host is the main difference from GoDaddy or Namecheap, which use @. Porkbun's own guide for root records uses a blank host and www for the subdomain. If you type @ by habit, check the saved record shows your bare domain and not a literal @ label.
Email forwarding and default records
Porkbun offers free email forwarding. When it is on, Porkbun publishes its own MX records and an SPF entry for the forwarder. Before pointing MX at Google Workspace or Zoho, turn forwarding off for the domain (or remove those records), otherwise mail splits between two sets of MX records and you may get two v=spf1 records. New domains can also carry parking or default records; delete what you do not use.
Step by step
- 1
Open DNS records
Account → Domain Management → Details on the domain → edit icon next to DNS Records.
- 2
Remove what conflicts
Delete forwarding MX records and any old
v=spf1TXT record you are replacing. - 3
Add MX and SPF
Use the form at the top: type, blank host, answer, priority for MX.
- 4
Add DKIM and DMARC
TXT with host
google._domainkey, then TXT with host_dmarc.
Long DKIM keys
Paste a 2048-bit key as one value. If a provider gives you the key already split into quoted chunks ("v=DKIM1; k=rsa; p=MIIB…" "…IDAQAB"), Porkbun accepts the joined value without quotes as well. Either way the published key must be identical to the provider's, with no spaces inserted inside the p= data.
Check the result
A blank-host SPF record shows up as the root domain's TXT record. Run the domain through the free ReplyDak deliverability check: it reads MX, SPF, DKIM and DMARC live from public DNS, counts SPF lookups and checks the main blocklists, with no sign-up. If your DKIM selector is not a common one, type it into the optional selector box.
More setups and errors: SPF, DKIM and DMARC by provider, DNS host and error.
FAQ
Does Porkbun use @ for the root domain?
Porkbun's DNS form uses a blank Host for the root domain. Enter only prefixes such as _dmarc for other names.
Why do I have two SPF records on Porkbun?
Usually Porkbun's email forwarding added one. Turn forwarding off or merge the records into one.
How long do Porkbun DNS changes take?
Porkbun is the authoritative DNS for domains using its nameservers, so new records usually appear within minutes; edits can take as long as the old record's TTL.