- How to add a subdomain in Cloudflare on PC
- How to add a subdomain in Cloudflare on an iPhone
- How to add a subdomain in Cloudflare on an Android device
- Frequently asked questions
- How can I test to make sure I have set up my subdomain correctly?
- How do I redirect a subdomain to the root domain?
- Are my subdomains protected with an SSL Certificate?
- Can I customize the behavior of my Cloudflare subdomain?
- You don’t need to add subdomains from your web server, do it on Cloudflare
Device links
So, you’ve been using Cloudflare for a while and have had a good experience. He is happy with everything they have to offer and their website has not had any issues. But now you want to update your website by adding subdomains. Cloudflare is not a web hosting company, so what do you do?

Can I add subdomains with Cloudflare and if so, how do I do it? If you have asked yourself these questions, then this article is for you. Here we will explain how to add a subdomain on Cloudflare on PC, iPhone, and Android device. Fortunately, adding a subdomain is a simple process. Continue reading to learn more.
How to add a subdomain in Cloudflare on PC
Adding a subdomain on Cloudflare is not done the same way as with a traditional web hosting company. Instead of adding an A record, as you normally would with Cloudflare, you’ll need to add the CNAME record that points to your registered domain. To learn how to add a subdomain in Cloudflare on PC, follow the steps below.
- Go to your Cloudflare dashboard.

- Go to the domain and click subdomain.
- In the top menu, select “DNS.”

- Under DNS records, click the “Add Records” button.

- In the far left window, for “Type”, select “CNAME” from the drop-down menu.

- Next, type the name of the subdomain in the window labeled “Name.”

- In the window labeled “Destination,” type your registered domain name.

- Click Save.”

You have now added a subdomain on Cloudflare. Edits on Cloudflare update quickly and your new subdomain should be available within a couple of minutes. You can then perform a test to see if it works correctly. See our FAQ to learn how to run a simple proxy test.
How to add a subdomain in Cloudflare on an iPhone
With the Cloudflare iPhone app, you can do what you need as if you were working on a PC. You can add a subdomain; but with Cloudflare it is not done in the same way as with traditional web hosting companies. Instead of adding an A record to add a subdomain, you’ll need to add the CNAME record that points to your registered domain. To learn how to add a subdomain in Cloudflare on an iPhone, follow the steps below.
- Navigate to your Cloudflare dashboard.

- Tap the domain you want to add a subdomain to.
- In the top menu, select “DNS.”
- Under DNS records, tap the “Add Records” button.
- On the far left, for “Type”, select “CNAME” from the drop-down menu.
- Next, in the window labeled “Name,” type the name of the subdomain.
- In the window labeled “Destination,” type your registered domain name.
- Click Save.”
You have now added a subdomain on Cloudflare. The new subdomain will be available in a couple of minutes. If you wish, you can perform a test to see if it works correctly. See our FAQ to learn how to run a simple proxy test.
How to add a subdomain in Cloudflare on an Android device
You can use the Cloudflare app for Android and do everything you can do on a PC. You will be able to add a subdomain, but with Cloudflare it is not done in the same way as with traditional web hosting companies. It will not add an A record to add a subdomain. You will need to add the CNAME record that points to your registered domain. To learn how to add a subdomain in Cloudflare on an Android device, follow the steps below.
- Go to your Cloudflare dashboard.

- Click the domain to which you want to add a subdomain.
- In the top menu, select “DNS.”
- Under DNS records, tap the “Add Records” button.
- On the far left, for “Type”, select “CNAME” from the drop-down menu.
- In the window labeled “Name,” type the name of the subdomain.
- Type your registered domain name in the window labeled “Destination.”
- Select “Save.”
You have now added a subdomain on Cloudflare. Edits take very little time and your new subdomain should be available within a couple of minutes. You can then perform a test to see if it works correctly. See our FAQ to learn how to run a simple proxy test.
Frequently asked questions
How can I test to make sure I have set up my subdomain correctly?
An easy way to test if your new subdomain is representing your traffic is to configure a firewall rule and check if the firewall is working. You can create a new Cloudflare firewall rule that blocks your new subdomain. For the hostname, use the exact address of the new subdomain and block all visits. Save this firewall rule and use an Internet browser to visit your subdomain. If it works correctly, you will receive an error message when you try to visit the subdomain. After testing, be sure to delete the new firewall rule. If you don’t do this, all visits to your new subdomain will be blocked.
How do I redirect a subdomain to the root domain?
If you want to redirect traffic from a subdomain to the root domain, you will need to create a DNS To proxy record for the subdomain. The A record can point to any IP address because all traffic is already redirected before reaching the address.
You can also use bulk redirects. You will need to use subpath matching and preserve the matching suffix to ensure that traffic is routed correctly.
Are my subdomains protected with an SSL Certificate?
As long as your root domain uses Cloudflare’s Universal SSL Certificate, the answer is yes. The certificate covers all top-level subdomains. For deeper level subdomains, you can purchase Cloudflare Advanced Certificate Manager, which covers more than one level of a subdomain.
Can I customize the behavior of my Cloudflare subdomain?
Yes. If you are a Cloudflare Enterprise customer, you can configure custom settings and access specific subdomains with Cloudflare. Subdomain support. All other clients must configure domain-specific page rules. Details can be found here. If you want a subdomain setup to be managed by someone without access to Cloudflare, you can find detailed information here.
You don’t need to add subdomains from your web server, do it on Cloudflare
By simply adding the CNAME record that points to your registered domain, you can add a subdomain directly from Cloudflare. With this simple method, you don’t need to do anything with your web hosting company. Your subdomains are also protected with an SSL Certificate, giving you security and peace of mind that your website is safe from threats.