Many companies have registered their domains using Cloudflare. Cloudflare is in the market for almost a decade and many startups are opting to it for its reasonable pricing and interactive dashboard. Some companies on Cloud flare are Discord, Zendesk, GitHub.

Unlike how you create a subdomain in GoDaddy by simply adding A record to the existing domain name. Cloudflare has a different way of doing it. It requires you to add the CNAME record pointing to your registered domain.

Go to your Cloudflare account, click on the domain in which you need to create this subdomain.

  • Along the top menu, click on DNS
  • Under DNS records, click on add record
  • Select CNAME from the options
  • Enter the subdomain as the name (you would put your subdomain here)
  • In the target, select your domain name which is registered example xyz.com
  • Click save.

Add a CNAME DNS Record
In your Cloudflare dashboard, go to the DNS tab and click the blue “Add Record” button. Then add your subdomain like this.

dns-record-in-cloudflare

When I try and visit the subdomain in my browser, it’s blocked by Cloud-flare as expected. This means that the traffic is being proxies through Cloudflare. Now remove the firewall rule, and create one that’s more in line with your needs :).

Simply repeat the above process for each subdomain you have. When using a service like Cloudflare, it’s important to catch all your website properties that share the same set of resources – as is typical on a shared hosting server. This way, you can ensure that bad behavior on one site won’t cause slowdowns on all the others.

Cloudflare is quick you should be able to reach the domain as soon as you add it, you can further get more details by performing dig.

Conclusion

Still, having some confusion? Or need any kind of help with website building? Then, please comment below. We’ll be happy to help you.

We hope this article helped you know about “create a subdomain in Cloudflare”. If you like this article, then please share it with your friends and colleagues.

Don’t forget to subscribe to our YouTube Channel for WordPress video tutorials & PHP script demos. You can also find us on Twitter and Facebook.

Thanks for visiting Growmek and reading this article! We highly appreciate it!

Similar Posts

Leave a Reply

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

4 Comments