Domain host
How to add MX, TXT and CNAME records in Porkbun
Low-cost registrar with a simple one-form DNS editor.
Which email provider are you setting up?
- Fastmail Fastmail on Porkbun
- Google Workspace Google Workspace on Porkbun
- Hostinger Email Hostinger Email on Porkbun
- iCloud+ Custom Email Domain iCloud+ Custom Email Domain on Porkbun
- Microsoft 365 Microsoft 365 on Porkbun
- Migadu Migadu on Porkbun
- Namecheap Private Email Namecheap Private Email on Porkbun
- Proton Mail Proton Mail on Porkbun
- Rackspace Email Rackspace Email on Porkbun
- Titan Email Titan Email on Porkbun
- Zoho Mail Zoho Mail on Porkbun
Find the DNS editor
- Open Domain Management (ACCOUNT, then Domain Management).
- Click the DNS button under your domain, or Details and then the edit icon under DNS RECORDS.
What goes in each field
| Record | Host field | Value field |
|---|---|---|
| MX | Host | Answer + Priority |
| TXT | Host | Answer |
| CNAME | Host | Answer |
- For your bare domain, leave Host empty.
- For other names, type only the part before your domain (for example _dmarc). Porkbun adds your domain automatically.
Adding a record at Porkbun
MX record
- Choose MX as the Type.
- Leave Host blank, enter the mail server in Answer and the Priority your provider gives you. Leave TTL at its default.
- Click Add.
TXT record
- Choose TXT as the Type.
- Leave Host blank for your bare domain (or enter the subdomain name), and paste the value in Answer.
- Click Add.
CNAME record
- Choose CNAME as the Type.
- Enter the Host (it can't be empty) and the target in Answer.
- Click Add.
Porkbun gotchas
Porkbun DNS: questions
How do I add an MX record in Porkbun?
Open Domain Management (ACCOUNT, then Domain Management). Click the DNS button under your domain, or Details and then the edit icon under DNS RECORDS. Choose MX as the Type. Leave Host blank, enter the mail server in Answer and the Priority your provider gives you. Leave TTL at its default. Click Add.
How do I add a TXT record in Porkbun?
Open Domain Management (ACCOUNT, then Domain Management). Click the DNS button under your domain, or Details and then the edit icon under DNS RECORDS. Choose TXT as the Type. Leave Host blank for your bare domain (or enter the subdomain name), and paste the value in Answer. Click Add.
What goes in the Host field at Porkbun?
Leave it empty for records on your bare domain, such as MX and SPF. For the others, enter only the part before your domain, for example _dmarc. Porkbun adds your domain automatically.