Playbook · Marketing Sites · 22 November 2026
Buy your domain and give your developer access
Buy the domain in your own Porkbun account, then let your developer run its DNS on Cloudflare. You keep the domain, and you can take it back at any time. You need about 15 minutes, and your developer needs about 10.
Before
In the developer’s account
- The developer holds the only key
- You cannot change or renew it yourself
- If the developer leaves, the domain goes too
After
In your own account
- You hold the key
- The developer runs the DNS on Cloudflare
- To take it back, you change two nameservers
We wrote this after we set up a domain for a Client, as part of a Marketing Sites job. A marketing site lives on your own domain, and your email uses it too. So the domain must stay in your hands, even when somebody else builds the site.
Keep the domain in your own account. Your developer does not need your password. To run the DNS of the domain, they need only one thing from you: you put two nameservers on the domain. If something goes wrong, or you change developers, you change the nameservers back and you are in control again.
In this guide, yourcompany.com is your domain. Your developer is the person or the studio that builds your site.
The words in this guide
- A domain is the name of your site, such as
yourcompany.com. - A registrar is the company that sells and renews the domain. Here, the registrar is Porkbun.
- DNS is the list of records that tells the internet where your site and your email are.
- Nameservers are the servers that hold this list. The nameservers that you set at the registrar decide who controls the DNS.
- An Authorized User is a Porkbun feature. It lets another Porkbun account work in your account without your password.
Why Porkbun and Cloudflare
At the time of writing, we buy domains from Porkbun. A .com costs $11.81 a year, and the renewal price is the same. WHOIS privacy is free. WHOIS privacy hides your name and address from the public record of the domain.
Cloudflare runs the DNS on its Free plan, for $0. We do not buy the domain from Cloudflare Registrar, because a domain there must keep Cloudflare as its DNS. With Porkbun, you can move the DNS to a different provider at any time.
Setups that go wrong
Most domains that we see are set up in one of the three ways below. The picture at the top of this page shows a fourth way: the domain is in the account of the developer.
Shared login
Your password with the developer
The developer can do anything, even move the domain away. Nobody can tell who changed what.
Site builder
Bought with the site builder
The DNS settings are hard to find. To leave the builder, you must move the domain out first.
Personal card
On a personal card, auto-renew off
The card expires or the renewal date passes. Then the site and the email stop.
Before you start
You need a card to pay for the domain. You also need an email address and a phone number that you will keep, because Porkbun uses them to recover your account.
Your developer needs their own Porkbun account with two-factor authentication on. They also need a Cloudflare account. Ask your developer for their Porkbun username before step 3.
Step 1: Buy the domain on Porkbun
You
porkbun.com → ACCOUNT → Settings / Billing → Domain Renewal Settings
- Make a Porkbun account with your own email address. Do not use the email address of the developer.
- Under Domain Renewal Settings, turn on New Registrations Default. Then each domain that you buy renews by itself.
- On porkbun.com, search for
yourcompany.com. Add it to the cart and pay. WHOIS privacy is included free.
Step 2: Turn on two-factor authentication
You
Porkbun lets you add an Authorized User only when two-factor authentication is on. Two-factor authentication asks for a code from an app on your phone each time that you sign in.
porkbun.com → ACCOUNT → Settings / Billing → Security and sign-in
- In Account Owner and Recovery, make sure that your email address and your phone number are verified.
- Under Security and sign-in, turn on Two-factor authentication with an app.
- Scan the QR code with an authenticator app. Enter the code from the app in Verification Code, then click Submit.
- Save the backup codes that Porkbun shows you. Keep them in a safe place.
Step 3: Add your developer as an Authorized User
You
An Authorized User can change the DNS and the hosting of every domain in your account. They can also buy and renew domains with your saved card. They cannot unlock or transfer your domains, change your contact details, change your password or remove WHOIS privacy.
If you want to change the nameservers yourself, skip this step and do step 5 yourself.
porkbun.com → ACCOUNT → Authorized Users
- Enter the Porkbun username of your developer, then click Submit.
- Porkbun sends an email to your developer. Your developer clicks Accept or Decline Access in it and accepts.
- Make sure that your developer shows on the Authorized Users page.
Step 4: Add the domain to Cloudflare
Your developer
If you know Cloudflare, your developer can set up a Cloudflare account that is only for you. If you do not, we keep the domain in our own Cloudflare account and run the DNS for you.
dash.cloudflare.com → Domains → Onboard a domain
- Enter
yourcompany.com. Let Cloudflare scan for the DNS records that the domain has now, then click Continue. - Choose the Free plan.
- Copy the two nameservers that Cloudflare shows. Copy each name exactly. If you do step 5, your developer sends you these two names.
Step 5: Point the nameservers to Cloudflare
Your developer, or you
After this step, Cloudflare runs the DNS. Porkbun web hosting and Porkbun email forwarding stop working on the domain.
porkbun.com → ACCOUNT → Domain Management → Details → Nameservers
- Find
yourcompany.comand click Details on the right side of its row. - Look at Registry DNSSEC. A new domain has no DNSSEC record. If it has one, remove it first. Cloudflare says that the domain can stop working if you change the nameservers while DNSSEC is on.
- Click the edit icon next to Nameservers. Delete the nameservers that are there, then enter the two names from step 4, one on each line.
- Click Save Nameservers. If Porkbun asks you to confirm, click Submit.
Step 6: Test it
Your developer
- In
dash.cloudflare.com → Domains, make sure that the status ofyourcompany.comis Active. - In a terminal, run
dig NS yourcompany.com +short. Make sure that it shows the two names from step 4.
If the status stays at Pending Nameserver Update, wait. The change can take up to 24 hours. Make sure that the two names in Porkbun match the names in Cloudflare letter for letter. Then make sure that Registry DNSSEC in Porkbun has no record.
To take back control
- Go to
porkbun.com → ACCOUNT → Authorized Usersand remove your developer. - In step 5, enter the nameservers of your new DNS provider.
You do not need anything from your old developer. The domain was in your account the whole time.