How to Connect a Custom Domain to Ghost
A practical walkthrough for pointing your own domain at a Ghost publication, with DNS records, redirects, email safety and a checklist of common mistakes.
10 min readUpdated Nov 27, 2026By XPASS Editorial Team

Ghost is a publishing platform that many writers, newsletters and small businesses choose because it is fast and focused. Out of the box your site lives on a default address supplied by your host. That is fine for testing, but a real publication needs its own name: readers remember it, search engines treat it as one stable address, and your brand does not depend on someone else's domain.
Connecting your own domain is mostly a DNS exercise. You tell the internet which server answers for your name, then you tell Ghost which name it should expect. This guide walks through the whole process in plain language, covers both a hosted Ghost site and a self-managed one, and ends with a checklist for the mistakes that cause most support questions. If you also publish other kinds of sites, the same ideas appear in our guides for connecting a domain to Astro and connecting a domain to Notion Sites.
What "connecting a domain" really means
A domain name such as example.com is only a label. For a browser to reach your Ghost site, two separate things have to line up.
- DNS has to point the name at the right place. DNS is the system that turns a name into an address. You add records at the company that manages your domain's DNS. Each record says "this name leads there". If you want a refresher, the Cloudflare explainer on DNS is a good short read, and the underlying rules are described in RFC 1034.
- Ghost has to know the name belongs to your site. Ghost generates links, feeds and canonical tags from the address you configure. If the configured address and the address in the browser do not match, you get redirect loops, broken images or a site that answers only on the old address.
Both halves matter. Changing DNS without telling Ghost leaves you with a site that loads but links back to the old address. Changing the setting in Ghost without DNS leaves you with a name that goes nowhere.

Before you start: a short checklist
Spend five minutes gathering these items and the rest of the work is calm.
- A domain you control. You should be able to sign in to the registrar or DNS host and edit records. If you have not chosen a name yet, see the domains page for registration options.
- Your Ghost address. For a hosted site this is the default address shown in your admin area. For a self-managed site it is the public IP address of your server.
- A decision about the main address. Decide whether readers will see the bare name (example.com) or the www version (www.example.com). Pick one and treat the other as a redirect.
- A note of existing records. Copy the current DNS records into a text file before you change anything. If something goes wrong you can restore them in minutes.
- A list of what else uses the domain. Email, a shop on a subdomain, verification records for other services. These must keep working.
Choosing between the apex domain and www
The bare name is called the apex or root. The www name is a subdomain. They behave differently in DNS, and that is where most confusion starts.
| Point | Apex (example.com) | www (www.example.com) |
|---|---|---|
| Typical record | A record (and AAAA for IPv6) | CNAME record |
| Why | A CNAME is not allowed to sit beside other records at the apex | A CNAME simply says this name is an alias of another name |
| Flexibility | Needs fixed addresses from your host, or a provider feature that flattens a CNAME | Follows your host if it changes addresses |
| Typical use | Short, clean address | Easy to set up, easy to change |
Neither choice is wrong. A common pattern is to make the apex the main address, add the A records your host provides, and add a www CNAME that redirects to the apex. Another common pattern is the reverse. What matters is that exactly one version is canonical and the other sends a permanent redirect.
Connecting a hosted Ghost site
If your Ghost site is run by a hosting service, the service normally gives you the exact records to add. The details vary, so always trust the values shown in your own admin panel over any example written in an article, including this one.
- Open the domain settings in Ghost admin. Look for the section where you can enter a custom domain. Type the name you chose as the main address.
- Read the DNS instructions the panel shows. For a subdomain it will give you a CNAME target. For an apex it will give you one or more IP addresses to use in A records.
- Sign in to your DNS provider. Open the DNS zone for your domain.
- Add the records. Create the CNAME or A records exactly as shown. Copy and paste the values rather than retyping them. Remove any old A or CNAME record for the same name, because two conflicting answers cause unpredictable results.
- Save and wait. Return to Ghost admin and use the check button if there is one. If the check fails, wait a little and try again.
- Test in a private window. Visit the new address. You should see your publication over HTTPS.
- Add the redirect for the other version. If the main address is the apex, make sure www redirects to it, or the other way round.
Many hosts issue the certificate for you after the DNS check passes. If you want to understand how that works, read how Let's Encrypt issues certificates. If you need a certificate for a setup that your host does not cover, the SSL page is a good place to start.
Connecting a self-managed Ghost site
If you run Ghost on your own server, you are responsible for more of the chain, but the DNS part is simple.
- Find the public IP address of your server. Your hosting panel shows it. If your server also has an IPv6 address you can add it later.
- Create an A record. Name it with the apex symbol (often an at sign or empty field) and set the value to the server IP.
- Create a www record. Add a CNAME from www to the apex name, or add a second A record with the same IP.
- Set the site URL in Ghost. The configuration for your Ghost installation has a URL setting. It must be the full public address, including https. If it still contains a local or temporary address, Ghost will generate wrong links.
- Set up the web server and certificate. The web server in front of Ghost must answer for the new name. Most guided installers can request a certificate automatically once DNS is correct. Run the certificate step only after the A record is visible, because the certificate authority checks the name before issuing.
- Restart Ghost so that it reads the new URL, then test in a private window.
A frequent trap is requesting a certificate too early. If the name does not yet point at your server, the check fails and some providers pause further attempts for a while. Confirm the record first, then request the certificate once.
Verifying that everything works
Do not rely on a single browser tab. Check from a few angles.
- Look up the records. Use any DNS lookup tool or the dig command to ask for the A or CNAME record of your name. The answer should show your new values.
- Open the site in a private window. Private windows do not reuse cached redirects or old certificates.
- Check both versions. Visit the apex and the www name. One should load, the other should redirect to it.
- Click through a post. Open a post, an image and the RSS feed. If any of them loads from the old address, the URL setting in Ghost is wrong.
- View the padlock details. The certificate should list your name and be currently valid.
DNS answers are cached. The TTL on a record says how long other servers may remember the previous answer. A short TTL set in advance makes a change appear sooner, but you cannot hurry servers that already cached an older answer. If your results differ between devices, give it time before you edit again.

Protecting email and other services on the same domain
Websites and email share a domain but use different records. The website uses A, AAAA and CNAME records. Email uses MX records for delivery and TXT records for sender checks. As long as you edit only the website records, mail keeps flowing.
Three habits keep you safe.
- Never delete the whole zone to start over. Change individual records instead.
- Do not replace a TXT record casually. Some services need several TXT values at the same name. Add the new value alongside the old ones unless a guide says otherwise.
- Test mail after any change. Send a message to yourself and to another provider.
If you plan to send newsletters or business mail from the same name, take a look at the business email page so the sender setup is planned at the same time as the website.
Limits and what to watch for
Even a clean setup can hit some well-known snags. Knowing them in advance saves hours.
- Conflicting records. An existing A record from a previous host, or a parked-domain page, can override or compete with your new record. Delete the old one.
- CNAME at the apex. Many DNS panels refuse a CNAME on the bare name, and for good reason. Use A records, or a provider feature described as ALIAS, ANAME or CNAME flattening.
- IPv6 mismatch. If an old AAAA record still exists, visitors on IPv6 may reach the old server while IPv4 visitors see the new one. Remove or update it.
- Cached redirects. Browsers remember permanent redirects for a long time. If you tested a redirect in the wrong direction, clear the cache or use a private window.
- Wrong site URL. If Ghost has the old address stored, links and canonical tags will point there. Update the setting and clear any cache.
- Mixed content. Images or scripts that are still requested over plain http will be blocked or flagged on an https page. Update the links in your content.
- Registrar lock and transfers. Changing DNS hosts is not the same as transferring the domain. Do not confuse the two, and note that a recent transfer can have a waiting period before some changes are allowed.
- Expiry. A domain that expires takes your site with it. Turn on auto-renewal at the registrar and keep the contact email current.
Search engines care about consistency. After the move, keep one canonical address, redirect the others permanently and submit the new address in your search tools if you use them.
A worked example
Imagine a writer who runs a newsletter called Field Notes on a hosted Ghost site. She has bought fieldnotes.example and wants readers to use the bare name.
- She decides the apex is canonical and www redirects to it.
- She opens her Ghost admin domain settings and enters fieldnotes.example. The panel lists two IP addresses for A records.
- At her DNS provider she deletes the old parking A record, adds the two new A records, and adds a CNAME for www pointing at the apex.
- She leaves her MX and TXT records untouched because her mail is handled elsewhere.
- Twenty minutes later the Ghost check passes. She opens a private window, loads both versions, confirms that www redirects, opens a post and the RSS feed, and sends a test email to herself.
Total effort is a handful of record edits. The care goes into what she did not touch.
Summary
Connecting a domain to Ghost is two jobs done together: DNS points the name at the right host, and Ghost is told that the name is its public address. Choose one canonical version, copy the exact values your host gives you, avoid conflicting old records, leave email records alone and verify in a private window. Most trouble comes from caching, stale records and a wrong URL setting, all of which are easy to fix once you know where to look.
When you are ready to pick a name or manage its records, the domains page lists what is available.
Frequently asked questions
Do I need to buy a domain before I connect it to Ghost?
Yes. You need a domain you control and access to its DNS settings. Without the DNS panel you cannot add the records that send visitors to your Ghost site.
Should I use the apex domain or www?
Either works. A www name is the simplest because it can use a CNAME record. An apex name needs the A record values your host gives you, or a provider feature that flattens a CNAME. Pick one as the main address and redirect the other to it.
How long does it take for the domain to work?
Often a few minutes, but DNS caches can keep old answers for the length of the TTL, and some changes take several hours to be seen everywhere. Check again before you change anything a second time.
Will connecting the domain break my email?
Not if you leave the MX and TXT records alone. Website records and email records are separate, so only edit the A, AAAA or CNAME records that point at the website.
Why does the browser show a certificate warning?
Usually the certificate has not been issued yet, or the DNS still points to the wrong place. Confirm the records, wait for propagation and check again.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Start your website the right way
Register a domain, add SSL and set up business email from one place.
.com registration from $18.81 for the first year
Start with a domainKeep reading

Website Guides
How to Connect Your Own Domain to an Astro Site
A practical guide to connecting a custom domain to an Astro project, covering static and server builds, DNS records, the site setting and common problems.
10 min read

Website Guides
How to Connect a Custom Domain to Notion Sites
Turn a published Notion page into a site on your own address. Learn which DNS record to add, how verification works and what to check afterwards.
9 min read

Website Guides
How to Connect Your Own Domain to a Laravel App
A practical walk-through for pointing a custom domain at a Laravel app, from DNS records and the public folder to APP_URL, proxy settings and troubleshooting.
10 min read