Want to create a subdomain in Cloudflare?

want-to-create-a-subdomain-in-Cloudflare
Spread the love:

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.

Read More Article: Popular eCommerce WordPress Themes

Spread the love:
Growmek Team, WordPress website and SEO Expert experts led by Sabbir Hossain. Growmek means a strong "Freelancer Team"

2 Comments

  • Davey Duarte April 20, 2022

    Great idea to allow people a few minutes to add subdomain in Cloudflare.:)
    Thanks for sharing.

    • Growmek Team April 20, 2022

      It was an amazing resource! I really appreciate your sharing this resource with the readers. I am sure it will help them a lot, I enjoyed reading it a lot.

Leave a Reply

Your email address will not be published.