How to Connect a Domain to Cloudways (DNS and A Record)

Affiliate disclosure v3.1
Affiliate disclosure v3.2 (mobile)

I set up the Cloudways domain connection with cw.testpilotweb.com, a subdomain of a test domain. Simply adding a domain registers it as an alias (Alias), and the WordPress site address only changes to the new domain once you set it as Primary.

I have summarized the steps in order — setting up the A record, adding the domain and setting it as Primary — based on the console as of October 2026.

1️⃣ Check the Server IP and Set Up the A Record

In the top menu, open the [Applications] tab and select the application you want to connect the domain to.

Cloudways Applications tab, list of applications to connect the domain to

Scroll down the application’s first screen, [Access Details], to find the server IP under [Public IP] in [Application Credentials].

Public IP under Application Credentials at the bottom of Cloudways Access Details

Add an A record where the domain’s DNS is managed. For a subdomain, enter only the first part (cw) in Hostname and the IP above in the IPv4 address field. Below is the Bunny DNS screen, with the TTL set to 5 minutes (5m).

Bunny DNS Add DNS record window, Hostname cw · Type A · TTL 5m · IPv4 address

If you use the DNS of the company where you bought the domain, such as Namecheap, add the A record the same way.

You can check whether the record has taken effect with the command [dig +short A cw.testpilotweb.com]; once it returns the server IP, move on to the next step.

2️⃣ Add a Domain in Cloudways

In the application’s left menu, click [Domain Management], and you will see a single temporary address created by Cloudways registered as Primary. The site can also be reached at the temporary address, so you can work on the site before connecting a domain.

Cloudways Domain Management with a single temporary address as Primary

Click [Add Domain], enter the domain to connect in [Domain name], and click [Add Domain(s)]. For a multisite that uses several subdomains, check [Add as WildCard].

Cloudways Add Domain window, domain name entered with Cloudflare unchecked, total $0
The Cloudflare option is an add-on at $4.99 per domain per month ($0 for the first month); if you leave it unchecked, only the domain is registered at no extra cost.

When the addition finishes, a [Domain added successfully] notice appears and the new domain is listed as an alias without the Primary label.

Cloudways Domain List, added domain registered as an alias without the Primary label

3️⃣ Set the Primary Domain

Click [⋮] at the end of the added domain’s row and select [Make Primary].

Menu at the end of a Cloudways domain row: Make Primary · Enable Cloudflare · Delete Domain

The confirmation window says that the current Primary domain will become an alias and that a Search & replace will run to change the domain name in the WordPress database. Click [Set as Primary].

Cloudways Set as Primary Domain confirmation window, notice about Search & replace in the WordPress database

The [Please wait while domain is being updated] screen took about 2 minutes. When it finished, the new domain had the Primary label and the temporary address remained as an alias.

Cloudways Domain List, new domain with the Primary label and the Domain has been updated successfully notice

The [Application URL] and [Admin Panel] addresses in [Access Details] also change to the new domain, and the connection is complete once the site appears when you open the new domain in a browser. The SSL certificate is issued for the new domain from the [SSL Certificate] menu.

ℹ️ Affiliate Disclosure
This site's content contains affiliate links. When a visitor buys a product or service through one of them, the site receives a commission from the seller. The amount the buyer pays(it goes down during event discounts ↓)does not go up. Posted prices, discounts, and stock reflect the time of writing and may differ, so confirm with the seller before buying. Products are chosen and reviewed by our own standards, and commissions do not affect the order or content of reviews.

Leave a Reply

Your email address will not be published. Required fields are marked *

Prove your humanity: 5   +   6   =