DNS host
Porkbun DKIM, SPF and DMARC setup
In Porkbun open Domain Management, click DNS under the domain and select Add Record. SPF is a TXT record with the Host left blank, DMARC a TXT record with Host _dmarc, and DKIM a TXT or CNAME record at <selector>._domainkey. Porkbun shows your domain after the Host field, so type only the part before it. Porkbun email gets its DKIM key at default._domainkey from one button.
Porkbun
What goes in Host
- SPF · Host
Leave blank (the root domain)
- DKIM · Host
<selector>._domainkey- DMARC · Host
_dmarc
Check the records after you save them
Enter the domain: SPF, DKIM at common selectors, DMARC and MX are looked up live, so you see whether Porkbun is serving the new records yet.
Try
Lookups go from your browser to Cloudflare's public DNS resolver; nothing is stored. Without a selector the checker tries the ones providers document.
What you get
The result, in plain words
- Pass, warning or fail for SPF, DKIM, DMARC and MX
- SPF lookups counted against the limit of 10
- DKIM keys found at google, selector1, selector2 and 50+ other selectors
- The records to publish, with the steps at your DNS host
Porkbun email
DKIM and SPF for Porkbun email and Google Workspace
Porkbun sets DKIM and DMARC for its own mailboxes with one button, and its Quick Setup writes Google Workspace's MX and SPF records. If you only host DNS here, skip to the field values.
Porkbun Email Hosting and Forwarding
Porkbun's own mailboxes and free forwards, both on Porkbun's mail servers
- SPF record
v=spf1 include:_spf.porkbun.com ~all- MX records
fwd1.porkbun.com (priority 10) and fwd2.porkbun.com (priority 20)
- DKIM · Host
default._domainkey- DKIM and DMARC values
TXT records Porkbun creates when you click Configure DMARC
- A DMARC Warning in place of the notice usually means the domain uses third-party nameservers: copy the default._domainkey and _dmarc TXT records from Porkbun DNS and add them as TXT records at that hostsource (opens the vendor's page in a new tab)
- Fix DNS at the bottom of Email Hosting and Forwarding puts Porkbun's MX and SPF records backsource (opens the vendor's page in a new tab)
- Forwarding only receives mail; replies go out from the address the mail is forwarded tosource (opens the vendor's page in a new tab)
Step by step
Open the email pagesource (opens the vendor's page in a new tab)
In Domain Management click the envelope icon under EMAIL next to the domain to open Email Hosting and Forwarding
Click Configure DMARCsource (opens the vendor's page in a new tab)
Scroll to Additional Notices & Configuration and click Configure DMARC in the DMARC Notice box; it sets up DKIM too. The button shows only when the domain has a hosted mailbox
Confirmsource (opens the vendor's page in a new tab)
Click OK to confirm, then OK again on the message that the DMARC and DKIM records are queued
Refresh after 5 to 10 minutessource (opens the vendor's page in a new tab)
The DMARC Notice now says the domain is configured for DKIM and DMARC, with buttons to delete or reset the records
Google Workspace on a Porkbun domain
Google's mailboxes; Porkbun's Quick Setup adds MX and SPF, and you add DKIM and DMARC by hand
- SPF record (Quick Setup)
v=spf1 include:_spf.google.com ~all- DKIM · Host
google._domainkey- DMARC (Porkbun's example)
v=DMARC1; p=quarantine;
- Porkbun's guide adds DMARC as a TXT record with Host _dmarc and links its DMARC generator for other policiessource (opens the vendor's page in a new tab)
Step by step
Run Quick Setupsource (opens the vendor's page in a new tab)
Details > the edit icon at DNS RECORDS > Add record > Quick Setup tab > Google Workspace, then OK. Porkbun adds the smtp.google.com MX record and the SPF record
Generate the key at Googlesource (opens the vendor's page in a new tab)
In the Google Admin console generate the DKIM record; with the default prefix selector its Name is google._domainkey
Add it as a TXT recordsource (opens the vendor's page in a new tab)
In Porkbun: Add record, Manual tab, Type TXT - Text record, Host google._domainkey, paste Google's value into Answer / Value and click Add
Start authenticationsource (opens the vendor's page in a new tab)
After a minute or two click Start Authentication in Google; the status changes to Authenticating email with DKIM
Field values
What goes in each field in Porkbun
Where: Domain Management > DNS under the domain (or Details > DNS RECORDS) > Manage DNS Records > Add Recordsource (opens the vendor's page in a new tab)
- Type
- TXT - Text record
- Host
- Leave blank (the root domain)
- Answer / Value
- v=spf1 include:<your provider> ~all
- TTL
- 600 (the default and the minimum)
- Type
- TXT - Text record, or CNAME - Canonical name record if your provider gives a CNAME
- Host
<selector>._domainkey- Answer / Value
- The key, or the CNAME target in the Target field
- TTL
- 600 (the default and the minimum)
- Type
- TXT - Text record
- Host
_dmarc- Answer / Value
- v=DMARC1; p=none; rua=mailto:<address>
- TTL
- 600 (the default and the minimum)
Step by step
Add a record in Porkbun
TXT record: SPF, DMARC and DKIM keys
Open Manage DNS Recordssource (opens the vendor's page in a new tab)
Log in to Domain Management and click DNS under the domain, or Details and the edit icon under DNS RECORDS
Add a TXT recordsource (opens the vendor's page in a new tab)
Click Add Record, keep the Manual tab and set Type to TXT - Text record
Host and Answer / Valuesource (opens the vendor's page in a new tab)
Leave Host blank for SPF, or type _dmarc or <selector>._domainkey. Paste the record into Answer / Value
Addsource (opens the vendor's page in a new tab)
Keep the TTL at 600 and click Add. No error message means the record is saved; Back shows it in the list
CNAME record: DKIM from a provider that hosts the key
Open Manage DNS Recordssource (opens the vendor's page in a new tab)
Domain Management > DNS under the domain, then Add Record
Choose CNAMEsource (opens the vendor's page in a new tab)
Set Type to CNAME - Canonical name record and type the Host, such as selector1._domainkey
Fill in Targetsource (opens the vendor's page in a new tab)
Paste the full target your provider gives; it must be a fully qualified domain name
Addsource (opens the vendor's page in a new tab)
Click Add, then Back to see the record in the list
Porkbun specifics
Before you save
- Leave Host blank for the root domain and type only the part before your domain, such as _dmarc; Porkbun shows the domain after the Host fieldsource (opens the vendor's page in a new tab)
- The root domain can hold only one SPF record; to send from Porkbun email and another service, merge both includes into one recordsource (opens the vendor's page in a new tab)
- Porkbun DNS allows a TTL of 600 seconds at the lowest. A new record usually resolves within seconds; a changed one takes about ten minutessource (opens the vendor's page in a new tab)
- Records here are served when the domain uses Porkbun's nameservers: curitiba, fortaleza, maceio and salvador.ns.porkbun.comsource (opens the vendor's page in a new tab)
- Moving to another DNS host usually breaks Porkbun email and hosting until the new host serves those records; nameserver changes take up to 48 hourssource (opens the vendor's page in a new tab)
- Bulk Manage changes DNS records or nameservers on many domains at once; it applies on Submit with no further confirmation and replaces the previous settingssource (opens the vendor's page in a new tab)
Records by provider
The exact values each service asks for:
Troubleshooting
Common Porkbun errors and fixes
Could not add DNS record: A CNAME or ALIAS record with that host already exists
Delete the records that point to pixie.porkbun.com (Porkbun's parking page) or an old host's records on that Host, then add yourssource (opens the vendor's page in a new tab)
CNAME on a blank or shared Host
Porkbun needs a CNAME Host that is filled in and used by no other record; enter the Host your provider gives, such as selector1._domainkeysource (opens the vendor's page in a new tab)
DMARC Warning on the email page
The domain usually uses third-party nameservers, so Porkbun cannot add DKIM and DMARC itself; add default._domainkey and _dmarc at that DNS hostsource (opens the vendor's page in a new tab)
Two SPF records on the root domain
Merge them into one, such as v=spf1 include:_spf.porkbun.com include:<other provider> ~allsource (opens the vendor's page in a new tab)
Error while editing a record
Delete the record and add it again from scratchsource (opens the vendor's page in a new tab)
New record does not resolve on your computer
Negative caching from an earlier lookup; flush your DNS cache or check from another resolversource (opens the vendor's page in a new tab)
Porkbun email stopped after a DNS edit
Click Fix DNS at the bottom of Email Hosting and Forwarding to restore Porkbun's MX and SPF recordssource (opens the vendor's page in a new tab)
For cold email
Mailboxes that come with the DNS records done
Outreach2day buys the domains, publishes SPF, DKIM and DMARC, creates the mailboxes and starts warmup, then sends your campaigns from its own sequencer or exports the mailboxes to Instantly or Smartlead.
- SPF, DKIM and DMARC set for youOn every domain, checked after setup and kept in place
- $2.50 a mailbox a month12-mailbox minimum; warmup and the sending engine included
- 1,000+ mailboxesA volume price per mailbox, quoted on a call
Questions
How do I add a Porkbun DKIM record?
Open Domain Management, click DNS under the domain and select Add Record. Set Type to TXT - Text record (or CNAME - Canonical name record if your provider gives a CNAME), type <selector>._domainkey in Host without your domain, paste the value and click Add.
For Porkbun's own email you do not paste a key: Configure DMARC on the Email Hosting and Forwarding page creates the default._domainkey record together with DMARC.
What is the Porkbun SPF record?
For Porkbun's own email it is v=spf1 include:_spf.porkbun.com ~all; for any other provider, use that provider's include. To add it, select Add Record, set Type to TXT - Text record, leave Host blank and paste the value into Answer / Value. The root domain can hold only one SPF record, so put every sending service's include in that one record.
How do I add the Google Workspace DKIM record in Porkbun?
Generate the DKIM record in the Google Admin console with the default selector, then in Porkbun add a TXT - Text record with Host google._domainkey and Google's value in Answer / Value. Wait a minute or two and click Start Authentication in Google. Porkbun's Quick Setup for Google Workspace adds the MX and SPF records but leaves DKIM and DMARC to you.
How do I set up SPF, DKIM and DMARC on many Porkbun domains for cold email?
Each sending domain needs its own SPF record at the root, the DKIM record from the service that sends its mail and a TXT record at _dmarc. Porkbun's Bulk Manage can change DNS records or nameservers across many domains at once, and it replaces the previous settings without asking again, so test the change on one domain first.
Outreach2day cold email infrastructure sets SPF, DKIM and DMARC automatically, including on domains you connect by pointing their nameservers to us.
Sources
Porkbun documentation, checked . Menus and values change; if a step differs, Porkbun's own page is the reference.
- How to Add DNS Records on Porkbun (kb.porkbun.com)
- How to Edit DNS Records (kb.porkbun.com)
- How to fix the CNAME or ALIAS record with that host already exists error (kb.porkbun.com)
- How long will it take for changes to DNS to show up? (kb.porkbun.com)
- How to Change Nameservers (kb.porkbun.com)
- How to switch to Porkbun's Nameservers (kb.porkbun.com)
- How to use Bulk Manage to modify several domains at once (kb.porkbun.com)
- How To Turn On DKIM and DMARC (kb.porkbun.com)
- How to use Porkbun email when your DNS is hosted elsewhere (kb.porkbun.com)
- How to fix your Porkbun email MX records (kb.porkbun.com)
- Hosted email vs. email forwarding (kb.porkbun.com)
- How to Connect a Domain to Google Workspace Email (kb.porkbun.com)
Deliverability call
Talk to our deliverability team
Book a call with the people who run our mailbox infrastructure. We look at your current setup and tell you what to change. Running 1,000+ mailboxes? We also quote a volume price below every vendor list price in our comparisons, warmup and sending included.
- Review your domains, DNS records and current inbox placement
- Size the setup: domains, mailboxes per domain and daily volume per mailbox
- Plan warmup and the move from your current provider or sequencer
- 1,000+ mailboxes: a volume price per mailbox for your setup
Free call
See open times in your time zone and book on this page.
Or open the booking pageLoading available times…
Open the booking page instead